Mercurial > emacs
changeset 11992:e550e0d13e83
* etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
compatibility problems.
author | Francesco Potortì <pot@gnu.org> |
---|---|
date | Mon, 29 May 1995 16:49:24 +0000 |
parents | 9a069c7526b1 |
children | 25aed301d8f7 |
files | lib-src/etags.c |
diffstat | 1 files changed, 6 insertions(+), 8 deletions(-) [+] |
line wrap: on
line diff
--- a/lib-src/etags.c Mon May 29 13:20:51 1995 +0000 +++ b/lib-src/etags.c Mon May 29 16:49:24 1995 +0000 @@ -32,7 +32,7 @@ * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. */ -char pot_etags_version[] = "@(#) pot revision number is 11.29"; +char pot_etags_version[] = "@(#) pot revision number is 11.30"; #define TRUE 1 #define FALSE 0 @@ -3661,8 +3661,8 @@ guess buffer size in advance. */ char * etags_getcwd () +{ #ifdef DOS_NT -{ char *p, path[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */ getwd (path); @@ -3674,9 +3674,8 @@ *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 @@ } return path; -} #else /* not DOS_NT and not HAVE_GETCWD */ -{ struct linebuffer path; FILE *pipe; @@ -3702,8 +3699,9 @@ 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