[Info-vax] Announcing Ghostscript v9.05 for VMS
hb
end.of at inter.net
Tue Aug 7 12:38:53 EDT 2012
On 08/07/12 16:50, Philippe.vouters at laposte.net wrote:
> while (decc_feature = decc$feature_get_name(index)){
> value = decc$feature_get_value(index,__FEATURE_MODE_DEFVAL);
> decc$feature_set_value(index++,1,value);
> }
Isn't decc$feature_set_value(index++,0,anything); enough?
> Works great even outside a LIB$INITIALIZE section.
I'm sure it works for you. Outside init code is somewhere down from main
(or whatever your main entry point was assigned to). That means, that
the features set by any shareable image your image depends on are reset.
That means, that the features set by logicals, very likely by
define/user, and which were evaluated in the crtl's decc$main code,
which runs before your main entry point is called, are reset. That also
means, that anything which was initialized in decc$main depending on any
of the then enabled features is not affected (an obvious but not really
harmful example is argv).
Although I can't find anything documented I think to remember someone
stating that setting DECC features should be done before decc$main runs.
Again, this may not affect the feature you want to use or reset, but be
aware that (re-)setting DECC features from main will not always work as
expected.
More information about the Info-vax
mailing list