diff options
author | Paul Smith <psmith@gnu.org> | 2023-01-15 18:04:36 -0500 |
---|---|---|
committer | Paul Smith <psmith@gnu.org> | 2023-01-15 18:04:36 -0500 |
commit | ceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a (patch) | |
tree | 393f7ba17b97fd53cc0933fd3d0203583553adcf /gl/lib/glob.c | |
parent | d4692df20de2db10c186d981ee04ce20487a79c3 (diff) | |
download | make-git-ceb52b5d1b10ce0f5a1ab090e1911cdde6f7d98a.tar.gz |
Rename VMS macro to MK_OS_VMS
* src/makeint.h: Set MK_OS_VMS to 1 if we're on VMS.
* src/*: Convert all #if references to VMS, to use MK_OS_VMS.
* gl/lib/*: Ditto.
Diffstat (limited to 'gl/lib/glob.c')
-rw-r--r-- | gl/lib/glob.c | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/gl/lib/glob.c b/gl/lib/glob.c index 271a2d1c..a18c8942 100644 --- a/gl/lib/glob.c +++ b/gl/lib/glob.c @@ -71,7 +71,7 @@ USA. */ # endif #endif -#if !defined _AMIGA && !defined VMS && !defined WINDOWS32 +#if !defined _AMIGA && !MK_OS_VMS && !defined WINDOWS32 # include <pwd.h> #endif @@ -518,13 +518,13 @@ glob (const char *pattern, int flags, oldcount = pglob->gl_pathc; -#ifndef VMS +#if !MK_OS_VMS if ((flags & (GLOB_TILDE|GLOB_TILDE_CHECK)) && dirname[0] == '~') { if (dirname[1] == '\0' || dirname[1] == '/') { /* Look up home directory. */ -#ifdef VMS +#if MK_OS_VMS /* This isn't obvious, RTLs of DECC and VAXC know about "HOME" */ const char *home_dir = getenv ("SYS$LOGIN"); #else @@ -538,7 +538,7 @@ glob (const char *pattern, int flags, if (home_dir == NULL || home_dir[0] == '\0') home_dir = "c:/users/default"; /* poor default */ # else -# ifdef VMS +# if MK_OS_VMS /* Again, this isn't obvious, if "HOME" isn't known "SYS$LOGIN" should be set */ if (home_dir == NULL || home_dir[0] == '\0') home_dir = "SYS$DISK:[]"; @@ -601,7 +601,7 @@ glob (const char *pattern, int flags, else home_dir = "~"; /* No luck. */ } -# endif /* VMS */ +# endif /* MK_OS_VMS */ # endif /* WINDOWS32 */ # endif /* Now construct the full directory. */ @@ -622,7 +622,7 @@ glob (const char *pattern, int flags, dirname = newp; } } -# if !defined _AMIGA && !defined WINDOWS32 && !defined VMS +# if !defined _AMIGA && !defined WINDOWS32 && !MK_OS_VMS else { char *end_name = strchr (dirname, '/'); @@ -702,9 +702,9 @@ glob (const char *pattern, int flags, home directory. */ return GLOB_NOMATCH; } -# endif /* Not Amiga && not WINDOWS32 && not VMS. */ +# endif /* Not Amiga && not WINDOWS32 && not MK_OS_VMS. */ } -#endif /* Not VMS. */ +#endif /* Not MK_OS_VMS. */ /* Now test whether we looked for "~" or "~NAME". In this case we can give the answer now. */ @@ -1124,7 +1124,7 @@ glob_in_dir (const char *pattern, const char *directory, int flags, int meta; int save; -#ifdef VMS +#if MK_OS_VMS if (*directory == 0) directory = "[]"; #endif |