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

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Fri Jun 7 10:26:40 EDT 2019


On 2019-06-06 23:44:44 +0000, Steven Schweda said:

>> 
>> [...] 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?

I'd hope it'd be the expected __STDC_VERSION__ >= 199901L for this 
check, but that ship may well have already sailed.

The compiler itself has been C99 since the ~millennium.

It's been the RTL and the headers that have lagged C99.

And as I've suggested before, I'd prefer to make the folks that don't 
want to update their code have to take some minor steps—setting some 
system parameter, tweaking a compiler CLD, defining some logical name 
(gag), whatever other LTS-enable scheme—to re-establish the old 
defaults for the old and unmodified compilations, and leave the 
defaults to be the most current compiler support available.  Drag this 
old mess forward best speed, and don't make those of us that are 
maintaining and updating our code pay extra and forever, versus not 
making the folks that aren't maintaining and updating pay even a little 
bit just once.




-- 
Pure Personal Opinion | HoffmanLabs LLC 




More information about the Info-vax mailing list