Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
emacs
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
1
Issues
1
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Packages & Registries
Packages & Registries
Container Registry
Analytics
Analytics
CI / CD
Repository
Value Stream
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
emacs
emacs
Commits
ad204e95
Commit
ad204e95
authored
Mar 04, 2005
by
Thien-Thi Nguyen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
(Fexpand_file_name) [VMS]:
Use NO_HYPHENS_IN_FILENAMES, not VMS4_4.
parent
f17bb091
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
8 deletions
+8
-8
src/fileio.c
src/fileio.c
+8
-8
No files found.
src/fileio.c
View file @
ad204e95
...
...
@@ -1222,23 +1222,23 @@ See also the function `substitute-in-file-name'. */)
slash = p;
}
if (p[0] == '-')
#ifndef VMS4_4
/* VMS pre V4.4,convert '-'s in filenames. */
#ifdef NO_HYPHENS_IN_FILENAMES
if (lbrack == rbrack)
{
if (dots < 2) /* this is to allow negative version numbers */
/* Avoid clobbering negative version numbers. */
if (dots < 2)
p[0] = '_';
}
else
#endif /*
VMS4_4
*/
#endif /*
NO_HYPHENS_IN_FILENAMES
*/
if (lbrack > rbrack &&
((p[-1] == '.' || p[-1] == '[' || p[-1] == '<') &&
(p[1] == '.' || p[1] == ']' || p[1] == '>')))
lose = 1;
#if
ndef VMS4_4
#if
def NO_HYPHENS_IN_FILENAMES
else
p[0] = '_';
#endif /*
VMS4_4
*/
#endif /*
NO_HYPHENS_IN_FILENAMES
*/
/* count open brackets, reset close bracket pointer */
if (p[0] == '[' || p[0] == '<')
lbrack++, brack = 0;
...
...
@@ -1618,12 +1618,12 @@ See also the function `substitute-in-file-name'. */)
}
else
{
#if
ndef VMS4_4
#if
def NO_HYPHENS_IN_FILENAMES
if (*p == '-' &&
o[-1] != '[' && o[-1] != '<' && o[-1] != '.' &&
p[1] != ']' && p[1] != '>' && p[1] != '.')
*p = '_';
#endif /*
VMS4_4
*/
#endif /*
NO_HYPHENS_IN_FILENAMES
*/
*o++ = *p++;
}
#else /* not VMS */
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment