[Info-vax] C99 stuff (Re: The Road to V9.0)

John Reagan xyzzy1959 at gmail.com
Thu Jun 6 22:31:24 EDT 2019


On Thursday, June 6, 2019 at 7:44:46 PM UTC-4, Steven Schweda wrote:
> > [...] I get tired of dragging around my own home-grown
> > versions of stdint.h 
> 
>    I know the feeling.  Is there any chance of a C macro in
> some place like <inttypes.h> or <[decc$]types.h> (or
> somewhere) which would reveal the existence of <stdint.h> at
> compile time?  Or will some __DECC_VER value be the clue?

<inttypes.h> now includes <stdint.h> as per the standard

"7.8 Format conversion of integer types <inttypes.h>

1 The header <inttypes.h> includes the header <stdint.h> and extends it with
additional facilities provided by hosted implementations."

You can include <inttypes.h> and do an #if defined on the stdint guard symbol or one of the names from <stdint.h>.  __DECC_VER is the version of the compiler which is independent of the RTL which is somewhat independent of the headers.  I'll make sure the release notes give guidance on how to check for the existence of the new headers.

We are planning an ECO kit which would include a new Math RTL, a new CRTL, and a new DECC$RTLDEF.TLB file.



More information about the Info-vax mailing list