diff options
| author | Thien-Thi Nguyen | 2005-03-04 21:57:21 +0000 |
|---|---|---|
| committer | Thien-Thi Nguyen | 2005-03-04 21:57:21 +0000 |
| commit | ad204e956ac4821908cbb4a53270ba52523ae2e3 (patch) | |
| tree | 4ddca45d28d83cd11448e1e2679f0838a5913c68 /src | |
| parent | f17bb0913a82da0eac22de39ff772fb8f960dd57 (diff) | |
| download | emacs-ad204e956ac4821908cbb4a53270ba52523ae2e3.tar.gz emacs-ad204e956ac4821908cbb4a53270ba52523ae2e3.zip | |
(Fexpand_file_name) [VMS]:
Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
Diffstat (limited to 'src')
| -rw-r--r-- | src/fileio.c | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/src/fileio.c b/src/fileio.c index ee03e63cc14..7f73a55bce9 100644 --- a/src/fileio.c +++ b/src/fileio.c | |||
| @@ -1222,23 +1222,23 @@ See also the function `substitute-in-file-name'. */) | |||
| 1222 | slash = p; | 1222 | slash = p; |
| 1223 | } | 1223 | } |
| 1224 | if (p[0] == '-') | 1224 | if (p[0] == '-') |
| 1225 | #ifndef VMS4_4 | 1225 | #ifdef NO_HYPHENS_IN_FILENAMES |
| 1226 | /* VMS pre V4.4,convert '-'s in filenames. */ | ||
| 1227 | if (lbrack == rbrack) | 1226 | if (lbrack == rbrack) |
| 1228 | { | 1227 | { |
| 1229 | if (dots < 2) /* this is to allow negative version numbers */ | 1228 | /* Avoid clobbering negative version numbers. */ |
| 1229 | if (dots < 2) | ||
| 1230 | p[0] = '_'; | 1230 | p[0] = '_'; |
| 1231 | } | 1231 | } |
| 1232 | else | 1232 | else |
| 1233 | #endif /* VMS4_4 */ | 1233 | #endif /* NO_HYPHENS_IN_FILENAMES */ |
| 1234 | if (lbrack > rbrack && | 1234 | if (lbrack > rbrack && |
| 1235 | ((p[-1] == '.' || p[-1] == '[' || p[-1] == '<') && | 1235 | ((p[-1] == '.' || p[-1] == '[' || p[-1] == '<') && |
| 1236 | (p[1] == '.' || p[1] == ']' || p[1] == '>'))) | 1236 | (p[1] == '.' || p[1] == ']' || p[1] == '>'))) |
| 1237 | lose = 1; | 1237 | lose = 1; |
| 1238 | #ifndef VMS4_4 | 1238 | #ifdef NO_HYPHENS_IN_FILENAMES |
| 1239 | else | 1239 | else |
| 1240 | p[0] = '_'; | 1240 | p[0] = '_'; |
| 1241 | #endif /* VMS4_4 */ | 1241 | #endif /* NO_HYPHENS_IN_FILENAMES */ |
| 1242 | /* count open brackets, reset close bracket pointer */ | 1242 | /* count open brackets, reset close bracket pointer */ |
| 1243 | if (p[0] == '[' || p[0] == '<') | 1243 | if (p[0] == '[' || p[0] == '<') |
| 1244 | lbrack++, brack = 0; | 1244 | lbrack++, brack = 0; |
| @@ -1618,12 +1618,12 @@ See also the function `substitute-in-file-name'. */) | |||
| 1618 | } | 1618 | } |
| 1619 | else | 1619 | else |
| 1620 | { | 1620 | { |
| 1621 | #ifndef VMS4_4 | 1621 | #ifdef NO_HYPHENS_IN_FILENAMES |
| 1622 | if (*p == '-' && | 1622 | if (*p == '-' && |
| 1623 | o[-1] != '[' && o[-1] != '<' && o[-1] != '.' && | 1623 | o[-1] != '[' && o[-1] != '<' && o[-1] != '.' && |
| 1624 | p[1] != ']' && p[1] != '>' && p[1] != '.') | 1624 | p[1] != ']' && p[1] != '>' && p[1] != '.') |
| 1625 | *p = '_'; | 1625 | *p = '_'; |
| 1626 | #endif /* VMS4_4 */ | 1626 | #endif /* NO_HYPHENS_IN_FILENAMES */ |
| 1627 | *o++ = *p++; | 1627 | *o++ = *p++; |
| 1628 | } | 1628 | } |
| 1629 | #else /* not VMS */ | 1629 | #else /* not VMS */ |