Re: __private_extern__
Re: __private_extern__
- Subject: Re: __private_extern__
- From: stephane sudre <email@hidden>
- Date: Mon, 11 Oct 2004 17:21:06 +0200
On Oct 11, 2004, at 5:13 PM, Brian Bergstrand wrote:
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1
Stephane,
Are you assigning an initial value to the var definition in your.c
file? If not, then the compiler will treat the definition as a
declaration, and no storage will be allocated.
.h
__private_extern__ int foo;
.c
__private_extern__ int foo = 0; // Allocate storage for foo.
That's definitely my case (no initial value). I would never have
suspected this.
Thanks.
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Darwin-kernel mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden