www.delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/08/13/01:19:15

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 <dj AT delorie DOT com>
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

> 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.

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019