X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f Date: Fri, 13 Aug 2004 01:19:09 -0400 Message-Id: <200408130519.i7D5J9sU013440@envy.delorie.com> From: DJ Delorie To: djgpp-workers AT delorie DOT com In-reply-to: <411C4D77.A09F108B@yahoo.com> (message from CBFalconer on Fri, 13 Aug 2004 01:11:19 -0400) Subject: Re: Fix for environ pollution References: <10408121516 DOT AA22369 AT clio DOT rice DOT edu> <411C4D77 DOT A09F108B AT yahoo DOT com> Reply-To: djgpp-workers AT delorie DOT com Errors-To: nobody AT delorie DOT com X-Mailing-List: djgpp-workers AT delorie DOT com X-Unsubscribes-To: listserv AT delorie DOT com Precedence: bulk > The point is that 'environ' is not in static storage, it is only > in the parameter list of main, under any name you like. Or not. I think you're missing the point that "environ" *is* defined to be a global symbol in the runtime, not just a parameter to main(). It happens to be passed to main (at which point it is effectively nameless as far as the runtime is concerned), but for historic reasons we must provide a global symbol "environ" as well, even without any #includes. The only way to do this cleanly is with PROVIDE.