delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/08/30/10:36:07

Sender: rich AT phekda DOT freeserve DOT co DOT uk
Message-ID: <3F50B64F.F5AC9380@phekda.freeserve.co.uk>
Date: Sat, 30 Aug 2003 15:35:59 +0100
From: Richard Dawe <rich AT phekda DOT freeserve DOT co DOT uk>
X-Mailer: Mozilla 4.77 [en] (X11; U; Linux 2.2.23 i586)
X-Accept-Language: de,fr
MIME-Version: 1.0
To: djgpp-workers AT delorie DOT com
Subject: Re: <math.h> and <libm/math.h>
References: <1cd DOT fda5102 DOT 2c7e5b12 AT aol DOT com>
Reply-To: djgpp-workers AT delorie DOT com

Hello.

[snip]
> Attached is a version of math.h that I use regularly with my long double
> stuff. It contains #ifdefs that avoid conflicts with ieeefp.h.  Perhaps
> that would be of some help.
[snip]
> /* ------------------- */
> /* FUNCTION PROTOTYPES */
> /* ------------------- */
> # if !defined __F
> # if defined(__STDC__)
> #       define  __F( P )  P
> # else
> #       define  __F( P )  ()
> # endif
> # endif
[snip]

I think we can assume standard C for DJGPP. This __F() stuff is horrible.

But if you want to keep it, you could use __P() from <sys/cdefs.h>. This is
what <libm/math.h> uses at the moment.

Why don't we move everything from <libm/math.h> into <math.h> and make
<libm/math.h> just include <math.h>? I know people have suggested doing it the
other way round, but this way seems to make more sense to me. <math.h> will
then be the One True Header for maths.

Bye, Rich =]

-- 
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]

- Raw text -


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