delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/04/26/09:35:05

Message-ID: <3EAA7D27.E14BD900@yahoo.com>
Date: Sat, 26 Apr 2003 08:35:51 -0400
From: CBFalconer <cbfalconer AT yahoo DOT com>
Organization: Ched Research
X-Mailer: Mozilla 4.75 [en] (Win98; U)
X-Accept-Language: en
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: nmalloc revisited
References: <10304252113 DOT AA21892 AT clio DOT rice DOT edu> <3EA9EBED DOT E8ADB007 AT yahoo DOT com> <9628-Sat26Apr2003113504+0300-eliz AT elta DOT co DOT il>
Reply-To: djgpp-workers AT delorie DOT com

Eli Zaretskii wrote:
> 
> > Date: Fri, 25 Apr 2003 22:16:13 -0400
> > From: CBFalconer <cbfalconer AT yahoo DOT com>
> >
> > And that is the point.  -ansi -pedantic HAS to exclude it.
> > Otherwise the system is non-compliant.
> 
> We already have the machinery in the headers to deal with that.  See
> those "#ifndef __STRICT_ANSI__" and "#ifndef _POSIX_SOURCE" thingies
> that signal non-ANSI and non-Posix parts?  GCC defines __STRICT_ANSI__
> when given the -ansi -predantic switches, so it never sees those parts
> in that case.
> 
> Therefore, there's no need to worry about this.

In my particular case it wouldn't work cleanly.  I have gcc set up
to automatically use -W -Wall -ansi -pedantic (via a 4dos alias). 
However I can still access those things with a #include
<malldbg.h> for compilation from the command line, thus overriding
the -pedantic for those things alone.  IIRC make ignores the
alias, probably by simulating bash.

It is no big deal as long as someone else does the integration
into stdlib.h, but I consider it easier to keep them separate. 
The less I poke my nose into the less damage I will do :-)

Can you make that .txh I sent work correctly and send it back, so
I can edit it again?  I plan to split the malldbg section off from
the malloc section, so only the new stuff gets altered.  I need
the proper outline of things, so I just fill in the blanks.

-- 
Chuck F (cbfalconer AT yahoo DOT com) (cbfalconer AT worldnet DOT att DOT net)
   Available for consulting/temporary embedded and systems.
   <http://cbfalconer.home.att.net>  USE worldnet address!


- Raw text -


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