Mail Archives: djgpp-workers/2003/04/26/09:35:05
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 -