emacs-diffs
[Top][All Lists]
Advanced

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

[Emacs-diffs] /srv/bzr/emacs/trunk r109349: Move definitions of director


From: Glenn Morris
Subject: [Emacs-diffs] /srv/bzr/emacs/trunk r109349: Move definitions of directory and device separators to configure
Date: Tue, 31 Jul 2012 21:43:08 -0400
User-agent: Bazaar (2.5.0)

------------------------------------------------------------
revno: 109349
committer: Glenn Morris <address@hidden>
branch nick: trunk
timestamp: Tue 2012-07-31 21:43:08 -0400
message:
  Move definitions of directory and device separators to configure
  
  * configure.ac (DEVICE_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP, IS_ANY_SEP):
  Move here from src/lisp.h.
  
  * src/lisp.h (IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
  Move to configure.ac.
modified:
  ChangeLog
  configure.ac
  src/ChangeLog
  src/lisp.h
=== modified file 'ChangeLog'
--- a/ChangeLog 2012-08-01 00:29:59 +0000
+++ b/ChangeLog 2012-08-01 01:43:08 +0000
@@ -1,3 +1,8 @@
+2012-08-01  Glenn Morris  <address@hidden>
+
+       * configure.ac (DEVICE_SEP, IS_DEVICE_SEP, IS_DIRECTORY_SEP)
+       (IS_ANY_SEP): Move here from src/lisp.h.
+
 2012-08-01  Juanma Barranquero  <address@hidden>
 
        * lib/makefile.w32-in (CONFIG_H): Update dependencies.

=== modified file 'configure.ac'
--- a/configure.ac      2012-07-31 23:20:25 +0000
+++ b/configure.ac      2012-08-01 01:43:08 +0000
@@ -3158,6 +3158,20 @@
 AC_DEFINE(USER_FULL_NAME, [pw->pw_gecos], [How to get a user's full name.])
 
 
+dnl Only used on MS platforms.
+AH_TEMPLATE(DEVICE_SEP, [Character that separates a device in a file name.])
+
+AC_DEFINE(IS_DEVICE_SEP(_c_), 0,
+  [Returns true if character is a device separator.])
+
+AC_DEFINE(IS_DIRECTORY_SEP(_c_), [((_c_) == DIRECTORY_SEP)],
+  [Returns true if character is a directory separator.])
+
+dnl On MS, this also accepts IS_DEVICE_SEP.
+AC_DEFINE(IS_ANY_SEP(_c_), [(IS_DIRECTORY_SEP (_c_))],
+  [Returns true if character is any form of separator.])
+
+
 AH_TEMPLATE(NO_EDITRES, [Define if XEditRes should not be used.])
 
 case $opsys in

=== modified file 'src/ChangeLog'
--- a/src/ChangeLog     2012-08-01 00:29:59 +0000
+++ b/src/ChangeLog     2012-08-01 01:43:08 +0000
@@ -1,3 +1,8 @@
+2012-08-01  Glenn Morris  <address@hidden>
+
+       * lisp.h (IS_DIRECTORY_SEP, IS_DEVICE_SEP, IS_ANY_SEP):
+       Move to configure.ac.
+
 2012-08-01  Juanma Barranquero  <address@hidden>
 
        * makefile.w32-in (CONFIG_H): Update dependencies.

=== modified file 'src/lisp.h'
--- a/src/lisp.h        2012-07-31 12:36:19 +0000
+++ b/src/lisp.h        2012-08-01 01:43:08 +0000
@@ -3305,24 +3305,7 @@
 /* Set up the name of the machine we're running on.  */
 extern void init_system_name (void);
 
-/* Some systems (e.g., NT) use a different path separator than Unix,
-   in addition to a device separator.  Set the path separator
-   to '/', and don't test for a device separator in IS_ANY_SEP.  */
-
 static char const DIRECTORY_SEP = '/';
-#ifndef IS_DIRECTORY_SEP
-#define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP)
-#endif
-#ifndef IS_DEVICE_SEP
-#ifndef DEVICE_SEP
-#define IS_DEVICE_SEP(_c_) 0
-#else
-#define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP)
-#endif
-#endif
-#ifndef IS_ANY_SEP
-#define IS_ANY_SEP(_c_) (IS_DIRECTORY_SEP (_c_))
-#endif
 
 /* Use this to suppress gcc's warnings.  */
 #ifdef lint


reply via email to

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