emacs-diffs
[Top][All Lists]
Advanced

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

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


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

Index: emacs/src/w32.c
diff -c emacs/src/w32.c:1.68 emacs/src/w32.c:1.69
*** emacs/src/w32.c:1.68        Thu Oct 11 23:26:20 2001
--- emacs/src/w32.c     Wed Dec 19 13:56:44 2001
***************
*** 875,880 ****
--- 875,895 ----
    init_user_info ();
  }
  
+ char *
+ emacs_root_dir (void)
+ {
+   static char root_dir[FILENAME_MAX];
+   const char *p;
+ 
+   p = getenv ("emacs_dir");
+   if (p == NULL)
+     abort ();
+   strcpy (root_dir, p);
+   root_dir[parse_root (root_dir, NULL)] = '\0';
+   dostounix_filename (root_dir);
+   return root_dir;
+ }
+ 
  /* We don't have scripts to automatically determine the system configuration
     for Emacs before it's compiled, and we don't want to have to make the
     user enter it, so we define EMACS_CONFIGURATION to invoke this runtime



reply via email to

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