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: Jason Rumney
Subject: [Emacs-diffs] Changes to emacs/src/w32.c
Date: Tue, 19 Oct 2004 15:16:27 -0400

Index: emacs/src/w32.c
diff -c emacs/src/w32.c:1.88 emacs/src/w32.c:1.89
*** emacs/src/w32.c:1.88        Mon May 17 21:33:16 2004
--- emacs/src/w32.c     Tue Oct 19 19:08:58 2004
***************
*** 1005,1010 ****
--- 1005,1036 ----
          _snprintf (buf, sizeof(buf)-1, "emacs_dir=%s", modname);
          _putenv (strdup (buf));
        }
+       /* Handle running emacs from the build directory: src/oo-spd/i386/  */
+ 
+       /* FIXME: should use substring of get_emacs_configuration ().
+        But I don't think the Windows build supports alpha, mips etc
+          anymore, so have taken the easy option for now.  */
+       else if (p && stricmp (p, "\\i386") == 0)
+       {
+         *p = 0;
+         p = strrchr (modname, '\\');
+         if (p != NULL)
+           {
+             *p = 0;
+             p = strrchr (modname, '\\');
+             if (p && stricmp (p, "\\src") == 0)
+               {
+                 char buf[SET_ENV_BUF_SIZE];
+ 
+                 *p = 0;
+                 for (p = modname; *p; p++)
+                   if (*p == '\\') *p = '/';
+ 
+                 _snprintf (buf, sizeof(buf)-1, "emacs_dir=%s", modname);
+                 _putenv (strdup (buf));
+               }
+           }
+       }
      }
  
      for (i = 0; i < (sizeof (env_vars) / sizeof (env_vars[0])); i++)




reply via email to

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