X-Authentication-Warning: delorie.com: mail set sender to djgpp-bounces using -f X-Trace-PostClient-IP: 68.147.131.211 From: Brian Inglis Newsgroups: comp.os.msdos.djgpp Subject: Re: Environment Variables Organization: Systematic Software Message-ID: <026sh0tku7humumni5m2td732n4pko9oft@4ax.com> 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> <86p1xifjnyj DOT fsf AT sirppi DOT helsinki DOT fi> <411e140a$0$173$cc7c7865 AT news DOT luth DOT se> X-Newsreader: Forte Agent 1.93/32.576 English (American) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit Lines: 37 Date: Sat, 14 Aug 2004 13:59:44 GMT NNTP-Posting-Host: 24.71.223.147 X-Complaints-To: abuse AT shaw DOT ca X-Trace: pd7tw3no 1092491984 24.71.223.147 (Sat, 14 Aug 2004 07:59:44 MDT) NNTP-Posting-Date: Sat, 14 Aug 2004 07:59:44 MDT To: djgpp AT delorie DOT com DJ-Gateway: from newsgroup comp.os.msdos.djgpp Reply-To: djgpp AT delorie DOT com On 14 Aug 2004 13:30:50 GMT in comp.os.msdos.djgpp, Martin Str|mberg wrote: >Brian Inglis wrote: >> Looks like you're correct about -Cg not being entirely truthful about >> globals without leading _. The revised list of non-Standard globals >> from a dummy program with no #includes compiled with -ansi -pedantic >> are: > >> T _close close * >> D _edata edata >... > >Can you give me the exact way you generate this list of pollution. I >ask because I see a humongous amount of polluting symbols, like >memset, malloc, qsort. Or are the symbols ANSI define ok being there? The process is described below. Standard identifiers are okay, it's only the global non-standard identifiers that look like standard identifiers (have a single leading _) that pollute the namespace. $ cat a.c int main( void ) { return 0; } $ gcc -ansi -pedantic a.c $ nm -g a.exe | cut -c10- | grep '^.._[^_]' > dg Edit dg and manually delete all the Standard C identifiers. Paste into post and edit to taste. -- Thanks. Take care, Brian Inglis Calgary, Alberta, Canada Brian DOT Inglis AT CSi DOT com (Brian dot Inglis at SystematicSw dot ab dot ca) fake address use address above to reply