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

Philippe.vouters at laposte.net Philippe.vouters at laposte.net
Tue Aug 7 10:50:26 EDT 2012


Dear Marc and all others,

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.

#include <unixlib.h>
{
  char *decc_feature;
  index index=0;
  int value;

  while (decc_feature = decc$feature_get_name(index)){
        value = decc$feature_get_value(index,__FEATURE_MODE_DEFVAL);
        decc$feature_set_value(index++,1,value);
 }      
}
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.

Yours truly,
Philippe



More information about the Info-vax mailing list