[Info-vax] Announcing Ghostscript v9.05 for VMS

Stephen Hoffman seaohveh at hoffmanlabs.invalid
Wed Aug 8 09:33:21 EDT 2012


On 2012-08-07 14:50:26 +0000, Philippe.vouters at laposte.net said:

> If bothered by users DECC$ logical settings prior to activating your C 
> code, here is a small while loop which resets all DECC logicals to 
> their default values....
> then you may set your own DECC features according to the requirements 
> of your code. It happens many HP or non HP originated C codes do not 
> use such a simple VMS/CRTL documented way. I just tested this on a code 
> of mine which attempts to indifferently handle Unix and pure VMS 
> filespecs. Works great even outside a LIB$INITIALIZE section.
> 

That C code won't work reliably outside of a lib$initialize section 
(for some settings), as the initialize psect is the only place where 
the settings reset can be done for some of what those pesky logical 
names control.

I've posted a block of BSD-licensed C code that has the initialize 
psect and the rest of the baggage within the NEWUSER source code 
<http://labs.hoffmanlabs.com/node/1260>; unlike Phillipe's, mine is 
entirely brute-force, but it also allows you to select the particular 
feature settings your code might require.

-- 
Pure Personal Opinion | HoffmanLabs LLC




More information about the Info-vax mailing list