diff options
author | Craig A. Berry <craigberry@mac.com> | 2012-11-11 08:45:28 -0600 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2012-11-11 08:45:28 -0600 |
commit | 0c4f95ed2536f9279c6434cb8d6f3bf980e98a40 (patch) | |
tree | 09f4d8fbc99bf79417ff5b2288fc410667d4fb49 /vms | |
parent | 6d1b7e1c32a986371a5c86564510eba53512052d (diff) | |
download | perl-0c4f95ed2536f9279c6434cb8d6f3bf980e98a40.tar.gz |
Set feature logical names in VMS init code.
When setting a CRTL feature, also record the setting in a user-mode
logical name since historically checking the environment is the only
way a Perl program can check a particular setting (otherwise we'd
need the currently vaporware VMS::Feature extension).
Diffstat (limited to 'vms')
-rw-r--r-- | vms/vms.c | 7 |
1 files changed, 6 insertions, 1 deletions
@@ -104,7 +104,12 @@ static int set_feature_default(const char *name, int value) return -1; } -return 0; + /* Various things may check for an environment setting + * rather than the feature directly, so set that too. + */ + vmssetuserlnm(name, value ? "ENABLE" : "DISABLE"); + + return 0; } #endif |