aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorFrancesco Potortì1995-05-29 16:49:24 +0000
committerFrancesco Potortì1995-05-29 16:49:24 +0000
commit0ff74d81c3ed95d1b7632cfbd8557f94f56797ec (patch)
tree9804795d8e25a17da733c4087b68bd4e155fe1ee /lib-src
parenta4be31c695d56b000b5bf33505df83889627bee1 (diff)
downloademacs-0ff74d81c3ed95d1b7632cfbd8557f94f56797ec.tar.gz
emacs-0ff74d81c3ed95d1b7632cfbd8557f94f56797ec.zip
* etags.c (etags_getcwd): Undo the /bin/pwd change. It may raise
compatibility problems.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/etags.c14
1 files changed, 6 insertions, 8 deletions
diff --git a/lib-src/etags.c b/lib-src/etags.c
index 15648bb5047..c31366d56d0 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -32,7 +32,7 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */
32 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer. 32 * Francesco Potorti` (pot@cnuce.cnr.it) is the current maintainer.
33 */ 33 */
34 34
35char pot_etags_version[] = "@(#) pot revision number is 11.29"; 35char pot_etags_version[] = "@(#) pot revision number is 11.30";
36 36
37#define TRUE 1 37#define TRUE 1
38#define FALSE 0 38#define FALSE 0
@@ -3661,8 +3661,8 @@ concat (s1, s2, s3)
3661 guess buffer size in advance. */ 3661 guess buffer size in advance. */
3662char * 3662char *
3663etags_getcwd () 3663etags_getcwd ()
3664#ifdef DOS_NT
3665{ 3664{
3665#ifdef DOS_NT
3666 char *p, path[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */ 3666 char *p, path[MAXPATHLEN + 1]; /* Fixed size is safe on MSDOS. */
3667 3667
3668 getwd (path); 3668 getwd (path);
@@ -3674,9 +3674,8 @@ etags_getcwd ()
3674 *p++ = tolower (*p); 3674 *p++ = tolower (*p);
3675 3675
3676 return strdup (path); 3676 return strdup (path);
3677} 3677#else /* not DOS_NT */
3678#elif HAVE_GETCWD /* not DOS_NT */ 3678#if HAVE_GETCWD
3679{
3680 int bufsize = 200; 3679 int bufsize = 200;
3681 char *path = xnew (bufsize, char); 3680 char *path = xnew (bufsize, char);
3682 3681
@@ -3689,9 +3688,7 @@ etags_getcwd ()
3689 } 3688 }
3690 3689
3691 return path; 3690 return path;
3692}
3693#else /* not DOS_NT and not HAVE_GETCWD */ 3691#else /* not DOS_NT and not HAVE_GETCWD */
3694{
3695 struct linebuffer path; 3692 struct linebuffer path;
3696 FILE *pipe; 3693 FILE *pipe;
3697 3694
@@ -3702,8 +3699,9 @@ etags_getcwd ()
3702 pclose (pipe); 3699 pclose (pipe);
3703 3700
3704 return path.buffer; 3701 return path.buffer;
3702#endif /* not HAVE_GETCWD */
3703#endif /* not DOS_NT */
3705} 3704}
3706#endif /* not DOS_NT and not HAVE_GETCWD */
3707 3705
3708/* Return a newly allocated string containing the filename 3706/* Return a newly allocated string containing the filename
3709 of FILE relative to the absolute directory DIR (which 3707 of FILE relative to the absolute directory DIR (which