X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f Message-ID: <411354D9.22487D1D@yahoo.com> From: CBFalconer Organization: Ched Research X-Mailer: Mozilla 4.75 [en] (Win98; U) X-Accept-Language: en MIME-Version: 1.0 Newsgroups: comp.os.msdos.djgpp 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> <7494-Fri06Aug2004121205+0300-eliz AT gnu DOT org> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 33 Date: Fri, 06 Aug 2004 09:53:39 GMT NNTP-Posting-Host: 12.76.134.192 X-Complaints-To: abuse AT worldnet DOT att DOT net X-Trace: bgtnsc04-news.ops.worldnet.att.net 1091786019 12.76.134.192 (Fri, 06 Aug 2004 09:53:39 GMT) NNTP-Posting-Date: Fri, 06 Aug 2004 09:53:39 GMT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com Eli Zaretskii wrote: > > > 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. Since it seems to appear on Cygwin also it is not peculiar to DJGPP. I just wanted the DJGPP group to be aware of the bug. I should have set followups on that post, to avoid all the other fooferaw. -- "The most amazing achievement of the computer software industry is its continuing cancellation of the steady and staggering gains made by the computer hardware industry..." - Petroski