From: erik quanstrom <quanstro@quanstro.net>
To: comeau@comeaucomputing.com, 9fans@9fans.net
Subject: Re: [9fans] porting help please (gcc void pointer handling)
Date: Thu, 10 Sep 2009 05:40:26 -0400 [thread overview]
Message-ID: <70b5b1273ae7de483a60caac79c1bb68@quanstro.net> (raw)
In-Reply-To: <h88j22$svp$1@panix3.panix.com>
On Thu Sep 10 05:37:12 EDT 2009, comeau@panix.com wrote:
> In article <ce56ea3d797a84d83b7c83620832b8c0@quanstro.net>,
> erik quanstrom <quanstro@quanstro.net> wrote:
> >> gcc happily compiles a definition like
> >> #define CT_v249 ((void*)startLabel+464)
> >>
> >
> >no it doesn't.
> >
> >$ cat > x.c
> >char *startlab;
> >long long offset = (void*)startlab+464;
> >[...]
> >$ gcc -Wall x.c
> >x.c:2: error: initializer element is not constant
>
> That also has the issue of converting a void * to a long long,
sorry. my mouse license has been revoked. that
was actually void*.
- erik
next prev parent reply other threads:[~2009-09-10 9:40 UTC|newest]
Thread overview: 16+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-09-09 15:03 Fernan Bolando
2009-09-09 15:35 ` erik quanstrom
2009-09-09 15:49 ` roger peppe
2009-09-10 9:30 ` Greg Comeau
2009-09-10 9:29 ` Greg Comeau
2009-09-10 9:40 ` erik quanstrom [this message]
2009-09-09 15:41 ` Charles Forsyth
[not found] ` <1745bc1073a021783cf2ff8658d7ce47@quanstro.net>
2009-09-09 15:43 ` Fernan Bolando
2009-09-10 9:30 ` Greg Comeau
2009-09-09 16:08 ` Charles Forsyth
[not found] ` <ace1f791830bf1d3f9d8c1e5cea17c14@terzarima.net>
2009-09-09 16:27 ` Fernan Bolando
2009-09-09 16:54 ` Charles Forsyth
2009-09-09 18:17 ` ron minnich
2009-09-11 1:45 ` Fernan Bolando
2009-09-10 9:31 ` Greg Comeau
2009-09-10 9:29 ` Greg Comeau
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=70b5b1273ae7de483a60caac79c1bb68@quanstro.net \
--to=quanstro@quanstro.net \
--cc=9fans@9fans.net \
--cc=comeau@comeaucomputing.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).