- To: gcc-help <gcc-help@xxxxxxxxxxx>
- Subject: Global Definition Vs Global Declaration
- From: zahed khurasani <sdzahed@xxxxxxxxx>
- Date: Wed, 4 Apr 2012 12:49:25 -0400
- Comment: DKIM? See http://www.dkim.org
- Comment: DomainKeys? See http://antispam.yahoo.com/domainkeys
Hi,
How can I distinguish between the following two declarations (both
appear outside any function at file scope)?
extern int i;
int i;
Both show up as VAR_DECL nodes in the BLOCK_VARS of the
TRANSLATION_UNIT_DECL. Moreover, both return true for DECL_EXTERNAL. I
need a way to say which is which in my plugin code.
Thanks for the help.
Zahed
[Linux C Programming]
[Linux Kernel]
[eCos]
[Fedora Development]
[Fedora Announce]
[Autoconf]
[The DWARVES Debugging Tools]
[Yosemite Campsites]
[Yosemite News]
[Linux GCC]