[Info-vax] C99 stuff (Re: The Road to V9.0)
John Reagan
xyzzy1959 at gmail.com
Thu Jun 6 22:24:56 EDT 2019
On Thursday, June 6, 2019 at 7:13:53 PM UTC-4, Craig A. Berry wrote:
> On 6/6/19 10:53 AM, John Reagan wrote:
> > The C99-compliant headers (new <stdint.h>, moved stuff from
> > <inttypes.h> into <stdint.h> as they belong, new directives for
> > printf/sprintf/strftime/etc.) are checked in.
>
> Excellent news. There have been similar mix-ups between <float.h> and
> <math.h>. Is any of this going to be available pre-9.x? I can see that
> the format specifiers are really an interface change and might be
> considered CRTL version-specific, and CRTL versions have always followed
> OS versions in the past. But a lot of stdint.h is just names for
> integers of various sizes that are already available but that now have
> standard names. I get tired of dragging around my own home-grown
> versions of stdint.h
Yes, we moved stuff around in between <float.h> and <math.h> to match what you see on FreeBSD for example.
Since the new format specifiers are processed at run-time, there is nothing to guard in the headers. The only new routines are a bunch of new MATH$ routines.
People who have been testing the cross-compilers with these new headers have already bumped into compile errors since they didn't guard their homegrown definitions in anticipation of these finally showing up 20 years later.
More information about the Info-vax
mailing list