From: "Fco. J. Ballesteros" <nemo@lsub.org>
To: 9fans@9fans.net
Subject: [9fans] type signatures
Date: Mon, 2 Mar 2009 16:40:03 +0100 [thread overview]
Message-ID: <eb68e942a5f9e5f9dd549e486a7206b0@lsub.org> (raw)
In-Reply-To: <307e6ea2aed293668f8a7caacb1b5e2b@quintile.net>
Isn't this what
#pragma incomplete
is for?
> From: steve@quintile.net
> To: 9fans@9fans.net
> Reply-To: 9fans@9fans.net
> Date: Mon Mar 2 16:24:23 CET 2009
> Subject: [9fans] type signatures
>
> Hi,
>
> I get a different type sygnature depending on weather the arg to a function
> contains members which are in scope or not - is this expected or a bug?
>
> for example:
>
> /* junk.c */
> typedef struct unknown unknown;
> #ifdef DEF
> struct unknown {
> int a;
> };
> #endif
>
> typedef struct arg arg;
> struct arg {
> unknown *u; // Note pointer, not instance
> };
>
> void
> func(arg a)
> {
> USED(a);
> }
>
> larch% 8c -T t.c && nm -T junk.8
> b0b8ed37 T func
> larch% 8c -T -DDEF t.c && nm -T junk.8
> 763b103c T func
>
> -Steve
next prev parent reply other threads:[~2009-03-02 15:40 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-03-02 15:23 Steve Simon
2009-03-02 15:40 ` Fco. J. Ballesteros [this message]
2009-03-02 20:05 ` Steve Simon
2009-03-03 0:42 ` Charles Forsyth
-- strict thread matches above, loose matches on Subject: below --
2008-01-19 0:45 erik quanstrom
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=eb68e942a5f9e5f9dd549e486a7206b0@lsub.org \
--to=nemo@lsub.org \
--cc=9fans@9fans.net \
/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).