delorie.com/archives/browse.cgi   search  
Mail Archives: djgpp-workers/2003/11/09/14:57:35

X-Authentication-Warning: delorie.com: mail set sender to djgpp-workers-bounces using -f
From: Kbwms AT aol DOT com
Message-ID: <78.4a151563.2cdff625@aol.com>
Date: Sun, 9 Nov 2003 14:57:25 EST
Subject: Re: C99 Functions Under Development and Checkout
To: djgpp-workers AT delorie DOT com
MIME-Version: 1.0
X-Mailer: 8.0 for Windows sub 6021
Reply-To: djgpp-workers AT delorie DOT com

--part1_78.4a151563.2cdff625_boundary
Content-Type: text/plain; charset="US-ASCII"
Content-Transfer-Encoding: 7bit

In a message dated 11/8/2003 7:09:46 AM Eastern Standard Time, 
rich AT phekda DOT freeserve DOT co DOT uk writes:

> This are functions internal to libc. They should be prefixed with "__", to
> avoid polluting the global namespace. They should also go in the not-ANSI,
> not-POSIX section of <math.h>.
> 
> I'd also suggest that set_errno and raise_except are renamed. 

Here are the new names of the functions in errhndlr.c:

int         __set_math_errhandling(int Value);
int         __get_math_errhandling(void);
void          __math_set_errno(int Value);
int         __fp_raise_except(int Value);


KB Williams

--part1_78.4a151563.2cdff625_boundary
Content-Type: text/html; charset="US-ASCII"
Content-Transfer-Encoding: quoted-printable

<HTML><FONT FACE=3Darial,helvetica><FONT  SIZE=3D3 FAMILY=3D"SERIF" FACE=3D"=
Georgia" LANG=3D"0">In a message dated 11/8/2003 7:09:46 AM Eastern Standard=
 Time, rich AT phekda DOT freeserve DOT co DOT uk writes:<BR>
<BR>
<BLOCKQUOTE TYPE=3DCITE style=3D"BORDER-LEFT: #0000ff 2px solid; MARGIN-LEFT=
: 5px; MARGIN-RIGHT: 0px; PADDING-LEFT: 5px"></FONT><FONT  COLOR=3D"#000000"=
 style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D2 FAMILY=3D"SANSSERIF" FACE=3D"A=
rial" LANG=3D"0">This are functions internal to libc. They should be prefixe=
d with "__", to<BR>
avoid polluting the global namespace. They should also go in the not-ANSI,<B=
R>
not-POSIX section of &lt;math.h&gt;.<BR>
<BR>
I'd also suggest that set_errno and raise_except are renamed. </BLOCKQUOTE><=
BR>
</FONT><FONT  COLOR=3D"#000000" style=3D"BACKGROUND-COLOR: #ffffff" SIZE=3D3=
 FAMILY=3D"SERIF" FACE=3D"Georgia" LANG=3D"0"><BR>
Here are the new names of the functions in errhndlr.c:<BR>
<BR>
int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  __set_math_errhandling(int Value);=
<BR>
int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  __get_math_errhandling(void);<BR>
void&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; __math_set_errno(=
int Value);<BR>
int &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;  __fp_raise_except(int Value);<BR>
<BR>
<BR>
KB Williams<BR>
</FONT></HTML>
--part1_78.4a151563.2cdff625_boundary--

- Raw text -


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