1
0
mirror of https://git.savannah.gnu.org/git/emacs.git synced 2024-11-25 07:28:20 +00:00

(etags_getcwd): Don't use #elif.

Have just one function body.
This commit is contained in:
Karl Heuer 1995-05-27 00:26:00 +00:00
parent 5e228a3925
commit 153e4de000

View File

@ -3661,8 +3661,8 @@ concat (s1, s2, s3)
guess buffer size in advance. */
char *
etags_getcwd ()
#ifdef DOS_NT
{
#ifdef DOS_NT
char *p, path[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */
getwd (path);
@ -3674,9 +3674,8 @@ etags_getcwd ()
*p++ = tolower (*p);
return strdup (path);
}
#elif HAVE_GETCWD /* not DOS_NT */
{
#else /* not DOS_NT */
#if HAVE_GETCWD
int bufsize = 200;
char *path = xnew (bufsize, char);
@ -3689,9 +3688,7 @@ etags_getcwd ()
}
return path;
}
#else /* not DOS_NT and not HAVE_GETCWD */
{
struct linebuffer path;
FILE *pipe;
@ -3702,8 +3699,9 @@ etags_getcwd ()
pclose (pipe);
return path.buffer;
#endif /* not HAVE_GETCWD */
#endif /* not DOS_NT */
}
#endif /* not DOS_NT and not HAVE_GETCWD */
/* Return a newly allocated string containing the filename
of FILE relative to the absolute directory DIR (which