diff options
author | Craig A. Berry <craigberry@mac.com> | 2012-11-11 08:50:47 -0600 |
---|---|---|
committer | Craig A. Berry <craigberry@mac.com> | 2012-11-11 08:50:47 -0600 |
commit | 4ddecfe92904fcff233811d773011e5b263b227f (patch) | |
tree | 21aafc07e9b65e10b017083bec4b1332dc6c13b9 /vms/vms.c | |
parent | 0c4f95ed2536f9279c6434cb8d6f3bf980e98a40 (diff) | |
download | perl-4ddecfe92904fcff233811d773011e5b263b227f.tar.gz |
Move VMS feature-setting function to an appropriate place.
It was in the middle of the includes at the top of the file. Move
it close to its only use and, more importantly, after the includes,
some of which it now depends on.
Diffstat (limited to 'vms/vms.c')
-rw-r--r-- | vms/vms.c | 57 |
1 files changed, 29 insertions, 28 deletions
@@ -85,34 +85,6 @@ struct item_list_3 { }; #pragma member_alignment restore -#if __CRTL_VER >= 70300000 && !defined(__VAX) - -static int set_feature_default(const char *name, int value) -{ - int status; - int index; - - index = decc$feature_get_index(name); - - status = decc$feature_set_value(index, 1, value); - if (index == -1 || (status == -1)) { - return -1; - } - - status = decc$feature_get_value(index, 1); - if (status != value) { - return -1; - } - - /* 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 - /* Older versions of ssdef.h don't have these */ #ifndef SS$_INVFILFOROP # define SS$_INVFILFOROP 3930 @@ -13895,6 +13867,35 @@ int Perl_vms_case_tolerant(void) /* Start of DECC RTL Feature handling */ +#if __CRTL_VER >= 70300000 && !defined(__VAX) + +static int +set_feature_default(const char *name, int value) +{ + int status; + int index; + + index = decc$feature_get_index(name); + + status = decc$feature_set_value(index, 1, value); + if (index == -1 || (status == -1)) { + return -1; + } + + status = decc$feature_get_value(index, 1); + if (status != value) { + return -1; + } + + /* 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 + /* C RTL Feature settings */ |