mirror of
git://git.sv.gnu.org/emacs.git
synced 2026-01-15 07:41:09 -08:00
(file_name_as_directory, Ffile_name_directory)
(Ffile_name_nondirectory): Delete special MSDOG code now covered by macros.
This commit is contained in:
parent
e01ac82c3e
commit
dffb28c7ca
1 changed files with 0 additions and 10 deletions
10
src/fileio.c
10
src/fileio.c
|
|
@ -306,9 +306,6 @@ on VMS, perhaps instead a string ending in `:', `]' or `>'.")
|
|||
#ifdef VMS
|
||||
&& p[-1] != ':' && p[-1] != ']' && p[-1] != '>'
|
||||
#endif /* VMS */
|
||||
#ifdef MSDOS
|
||||
&& p[-1] != ':' && p[-1] != '\\'
|
||||
#endif
|
||||
) p--;
|
||||
|
||||
if (p == beg)
|
||||
|
|
@ -372,9 +369,6 @@ or the entire name if it contains no slash.")
|
|||
#ifdef VMS
|
||||
&& p[-1] != ':' && p[-1] != ']' && p[-1] != '>'
|
||||
#endif /* VMS */
|
||||
#ifdef MSDOS
|
||||
&& p[-1] != ':'
|
||||
#endif
|
||||
) p--;
|
||||
|
||||
return make_string (p, end - p);
|
||||
|
|
@ -470,15 +464,11 @@ file_name_as_directory (out, in)
|
|||
}
|
||||
#else /* not VMS */
|
||||
/* For Unix syntax, Append a slash if necessary */
|
||||
#ifdef MSDOS
|
||||
if (out[size] != ':' && out[size] != '/' && out[size] != '\\')
|
||||
#else /* not MSDOS */
|
||||
if (!IS_ANY_SEP (out[size]))
|
||||
{
|
||||
out[size + 1] = DIRECTORY_SEP;
|
||||
out[size + 2] = '\0';
|
||||
}
|
||||
#endif /* not MSDOS */
|
||||
#endif /* not VMS */
|
||||
return out;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue