delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2004/08/10/19:02:31

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: sandmann AT clio DOT rice DOT edu (Charles Sandmann)
Message-Id: <10408102240.AA89930@clio.rice.edu>
Subject: Re: Fix for environ pollution
To: djgpp-workers AT delorie DOT com
Date: Tue, 10 Aug 2004 17:40:06 -0500 (CDT)
In-Reply-To: <Pine.OSF.4.58.0408101319280.24206@sirppi.helsinki.fi> from "Esa A E Peuha" at Aug 10, 2004 01:59:24 PM
X-Mailer: ELM [version 2.5 PL2]
Mime-Version: 1.0
X-Virus-Scanned: by amavis-20030616-p6 at mail.rice.edu
X-DCC--Metrics: handler4.mail.rice.edu 1066; Body=1 Fuz1=1 Fuz2=1
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

> As Brian Ingals noticed, the variable environ currently pollutes the
> namespace.  The solution is obvious: change all references to environ
> to _environ in the library, and move its declaration from crt1.c to
> djgpp.djl which can then provide environ to those programs that expect
> it.  Here's a patch to do it:

Instead of putting environ in djgpp.djl, could we use a define statement
in a header outside the ansi and posix definitions? 

I am not familiar with the pros and cons of PROVIDE.

There were some other symbols listed in a later email also which were
also in the namespace

- Raw text -


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