| www.delorie.com/archives/browse.cgi | search |
| X-Authentication-Warning: | delorie.com: mail set sender to djgpp-bounces using -f |
| X-Trace-PostClient-IP: | 68.147.131.211 |
| From: | Brian Inglis <Brian DOT Inglis AT SystematicSw DOT Invalid> |
| Newsgroups: | comp.os.msdos.djgpp |
| Subject: | Re: Environment Variables |
| Organization: | Systematic Software |
| Message-ID: | <026sh0tku7humumni5m2td732n4pko9oft@4ax.com> |
| References: | <cepqfs$jts AT odak26 DOT prod DOT google DOT com> <vY6Qc.33228$vX4 DOT 11673 AT cyclops DOT nntpserver DOT com> <41115A5F DOT 7DDC6318 AT yahoo DOT com> <bNtQc.58210$vX4 DOT 56203 AT cyclops DOT nntpserver DOT com> <41127AF9 DOT 26DEA37C AT yahoo DOT com> <4112BE04 DOT 3B151CA1 AT yahoo DOT com> <7494-Fri06Aug2004121205+0300-eliz AT gnu DOT org> <ufn7h0p3s00qq4vqmq3odgnt67i4hisdfn AT 4ax DOT com> <86p1xifjnyj DOT fsf AT sirppi DOT helsinki DOT fi> <k8oih0hl2p0410fn9oobcrnvfp28dhhv01 AT 4ax DOT com> <411e140a$0$173$cc7c7865 AT news DOT luth DOT se> |
| X-Newsreader: | Forte Agent 1.93/32.576 English (American) |
| MIME-Version: | 1.0 |
| 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
<ams AT speedy DOT ludd DOT ltu DOT se> wrote:
>Brian Inglis <Brian DOT Inglis AT systematicsw DOT invalid> 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
| webmaster | delorie software privacy |
| Copyright © 2019 by DJ Delorie | Updated Jul 2019 |