[Info-vax] C99 updates to CRTL

Craig A. Berry craig.a.berry at gmail.com
Mon Jul 29 14:20:45 EDT 2019


On Monday, July 29, 2019 at 12:50:56 PM UTC-5, John Reagan wrote:
> On Monday, July 29, 2019 at 12:21:28 PM UTC-4, Stephen Hoffman wrote:
> > On 2019-07-27 20:45:09 +0000, Simon Clubley said:
> > 
> > > Arne, are you _trying_ to trigger Stephen ? :-)
> > > 
> > > It's bad enough using logicals to alter behaviour at runtime, but at 
> > > compile time as well ? :-)
> > 
> > There's already at least one logical name around that effects the 
> > compile-time behavior.
> > 
> > One existing logical name effects the compile-time resolution of the 
> > external references within the compiler.
> > 
> > Yes.  Really.


> Do you have a reference?  I just searched the frontend(s) and driver(s) looking for uses of "getenv".  I see many to provide fine control over certain optimizations, lots looking for things like "TMPDIR", etc.  The only one that looks even remotely VMS'ish (ie, has a prefix) is a DECCXX$MACH_LIST_NODEMANGLE logical.
> 
> I also looked for "$TRNLNM" and only see it used for things like DECC$USER_INCLUDE, DECC$SYSTEM_INCLUDE, DECC$LIBRARY_INCLUDE, DECC$TEXT_LIBRARY, and the like.  See "$HELP CC /INCLUDE" for the full list.
> 
> That said, since the C compiler calls DECC$TO_VMS/DECC$FROM_VMS to deal with #include directives that use Unix-style filenames, any DECC$ feature logicals that would impact those filename translations will change the behavior.

That was going to be my guess, e.g., you might have to have DECC$EFS_CHARSET in order to do #include <foo.bar.h> or something like that.



More information about the Info-vax mailing list