Mail Archives: djgpp/1999/02/09/11:05:56
Paul Derbyshire wrote:
> I don't seem to have "limits" in $DJDIR$/lang/cxx. It must be missing from
> the lgp281b distribution I have.
If you mean <climits> (the c language <limits.h> file) it's there, and called
climits.
If you mean the c++ standard <limits> file which contains the numeric_limits<T>
template class, then no. It isn't part of the distribution for gcc 2.81.
I don't believe that it's part of gcc, at least I don't see it in the Solaris
port I use here. I have a <limits> that I hacked together, but it's
incomplete. Particularly, the information for long double is wrong, since I
took it from MSVC++. MSVC++ only uses 64-bit values for long double, instead of
djgpp's 80-bit values. I got some additional information from an old version of
QuickC for DOS that used 80-bit long doubles, but I haven't incorporated it
yet. And I have no values for the long double versions of INF and NaN.
If you're interested, send me an email and I'll send it to you. It works well
enough for my purposes, but it's not ready for distribution, IMO. And I really
need to check with the developers of gcc to find out why they didn't include
it--assuming the reason goes beyond the obvious name conflict introduced by the
GNU header file convention.
Charles
--
Charles Krug, Jr.
Application Engineer
Pentek Corp
1 Park Way
Upper Saddle River, NJ 07458
- Raw text -