Mail Archives: djgpp-workers/2003/11/09/14:57:35
--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 <math.h>.<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 __set_math_errhandling(int Value);=
<BR>
int __get_math_errhandling(void);<BR>
void __math_set_errno(=
int Value);<BR>
int __fp_raise_except(int Value);<BR>
<BR>
<BR>
KB Williams<BR>
</FONT></HTML>
--part1_78.4a151563.2cdff625_boundary--
- Raw text -