X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Date: Fri, 06 Aug 2004 12:12:06 +0300 From: "Eli Zaretskii" Sender: halo1 AT zahav DOT net DOT il To: djgpp AT delorie DOT com Message-Id: <7494-Fri06Aug2004121205+0300-eliz@gnu.org> X-Mailer: emacs 21.3.50 (via feedmail 8 I) and Blat ver 1.8.9 In-reply-to: <4112BE04.3B151CA1@yahoo.com> (message from CBFalconer on Thu, 05 Aug 2004 23:27:28 GMT) Subject: Re: Environment Variables References: <41115A5F DOT 7DDC6318 AT yahoo DOT com> <41127AF9 DOT 26DEA37C AT yahoo DOT com> <4112BE04 DOT 3B151CA1 AT yahoo DOT com> Reply-To: djgpp AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > From: CBFalconer > Newsgroups: comp.lang.c,comp.os.msdos.djgpp > Date: Thu, 05 Aug 2004 23:27:28 GMT > > Changing the 'environ' name makes things become correct. gcc > seems to be creating a parameter to main, which is being accessed > by the identifier environ, even though the parameters are > specified to be void. gcc -E creates no reference to 'environ'. `environ' is a symbol that comes from the library. It is a pointer to an array of char *, where each array element is a string of the form "foo=bar": these are the environment variables and their values. I guess if this happens even under "-ansi -pedantic", it's a bug that we pollute the ANSI namespace with a non-ANSI symbol that doesn't bgin with an underscore. But given that Unix programs expect that symbol, I'm not sure we can change that. If you want to discuss possible solutions, please take this to djgpp-workers AT delorie DOT com.