emacs-diffs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Emacs-diffs] Changes to emacs/src/msdos.c


From: Eli Zaretskii
Subject: [Emacs-diffs] Changes to emacs/src/msdos.c
Date: Wed, 19 Dec 2001 13:56:00 -0500

Index: emacs/src/msdos.c
diff -c emacs/src/msdos.c:1.158 emacs/src/msdos.c:1.159
*** emacs/src/msdos.c:1.158     Tue Dec 11 01:22:23 2001
--- emacs/src/msdos.c   Wed Dec 19 13:56:00 2001
***************
*** 38,43 ****
--- 38,44 ----
  #include <string.h>    /* for bzero and string functions */
  #include <sys/stat.h>    /* for _fixpath */
  #include <unistd.h>    /* for chdir, dup, dup2, etc. */
+ #include <dir.h>       /* for getdisk */
  #if __DJGPP__ >= 2
  #include <fcntl.h>
  #include <io.h>                /* for setmode */
***************
*** 4116,4121 ****
--- 4117,4132 ----
  
    errno = e;
    return 1;
+ }
+ 
+ char *
+ emacs_root_dir (void)
+ {
+   static char root_dir[4];
+ 
+   sprintf (root_dir, "%c:/", 'A' + getdisk ());
+   root_dir[0] = tolower (root_dir[0]);
+   return root_dir;
  }
  
  /* Remove all CR's that are followed by a LF.  */



reply via email to

[Prev in Thread] Current Thread [Next in Thread]