diff options
| author | Glenn Morris | 2012-08-09 20:02:10 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-09 20:02:10 -0400 |
| commit | 9374581a2448ff52315bc9a5037dcec504167702 (patch) | |
| tree | 017f604281be58c739d51347c5b4a7397b0b6eda | |
| parent | 59a428eb3f1accfe9da6212d2695870d63037bbe (diff) | |
| download | emacs-9374581a2448ff52315bc9a5037dcec504167702.tar.gz emacs-9374581a2448ff52315bc9a5037dcec504167702.zip | |
Move DIRECTORY_SEP from lisp.h to config.h
* configure.ac (DIRECTORY_SEP): Move here from src/lisp.h.
* src/lisp.h (DIRECTORY_SEP): Let configure set it.
* nt/config.nt (DIRECTORY_SEP): Move here from src/lisp.h.
* lib-src/movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP):
* lib-src/emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP):
Remove (they are in config.h now).
| -rw-r--r-- | ChangeLog | 4 | ||||
| -rw-r--r-- | configure.ac | 3 | ||||
| -rw-r--r-- | lib-src/ChangeLog | 7 | ||||
| -rw-r--r-- | lib-src/emacsclient.c | 18 | ||||
| -rw-r--r-- | lib-src/make-docfile.c | 18 | ||||
| -rw-r--r-- | lib-src/movemail.c | 7 | ||||
| -rw-r--r-- | nt/ChangeLog | 4 | ||||
| -rw-r--r-- | nt/config.nt | 6 | ||||
| -rw-r--r-- | src/ChangeLog | 4 | ||||
| -rw-r--r-- | src/lisp.h | 2 |
10 files changed, 34 insertions, 39 deletions
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * configure.ac (DIRECTORY_SEP): Move here from src/lisp.h. | ||
| 4 | |||
| 1 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2012-08-08 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 6 | ||
| 3 | * configure.ac (--disable-features): Rename to --without-all. | 7 | * configure.ac (--disable-features): Rename to --without-all. |
diff --git a/configure.ac b/configure.ac index 51dd8a375ca..54ce94fef7a 100644 --- a/configure.ac +++ b/configure.ac | |||
| @@ -3185,6 +3185,9 @@ AC_DEFINE(subprocesses, 1, [Define to enable asynchronous subprocesses.]) | |||
| 3185 | AC_DEFINE(USER_FULL_NAME, [pw->pw_gecos], [How to get a user's full name.]) | 3185 | AC_DEFINE(USER_FULL_NAME, [pw->pw_gecos], [How to get a user's full name.]) |
| 3186 | 3186 | ||
| 3187 | 3187 | ||
| 3188 | AC_DEFINE(DIRECTORY_SEP, ['/'], | ||
| 3189 | [Character that separates directories in a file name.]) | ||
| 3190 | |||
| 3188 | dnl Only used on MS platforms. | 3191 | dnl Only used on MS platforms. |
| 3189 | AH_TEMPLATE(DEVICE_SEP, [Character that separates a device in a file name.]) | 3192 | AH_TEMPLATE(DEVICE_SEP, [Character that separates a device in a file name.]) |
| 3190 | 3193 | ||
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 33022de1a29..1262c917a4a 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,4 +1,9 @@ | |||
| 1 | 2012-08-09 Glenn Morris <rgm@gnu.org> | 1 | 2012-08-10 Glenn Morris <rgm@gnu.org> |
| 2 | |||
| 3 | * movemail.c (DIRECTORY_SEP, IS_DIRECTORY_SEP): | ||
| 4 | * make-docfile.c (DIRECTORY_SEP, IS_DIRECTORY_SEP): | ||
| 5 | * emacsclient.c (DIRECTORY_SEP, IS_DIRECTORY_SEP, IS_DEVICE_SEP): | ||
| 6 | Remove (they are in config.h now). | ||
| 2 | 7 | ||
| 3 | * ebrowse.c (PATH_LIST_SEPARATOR): | 8 | * ebrowse.c (PATH_LIST_SEPARATOR): |
| 4 | Remove, and replace with SEPCHAR from config.h. | 9 | Remove, and replace with SEPCHAR from config.h. |
diff --git a/lib-src/emacsclient.c b/lib-src/emacsclient.c index 0ba6535b79d..ef9bc9c6afd 100644 --- a/lib-src/emacsclient.c +++ b/lib-src/emacsclient.c | |||
| @@ -1,5 +1,6 @@ | |||
| 1 | /* Client process that communicates with GNU Emacs acting as server. | 1 | /* Client process that communicates with GNU Emacs acting as server. |
| 2 | Copyright (C) 1986-1987, 1994, 1999-2012 Free Software Foundation, Inc. | 2 | |
| 3 | Copyright (C) 1986-1987, 1994, 1999-2012 Free Software Foundation, Inc. | ||
| 3 | 4 | ||
| 4 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 5 | 6 | ||
| @@ -213,21 +214,6 @@ xmalloc (size_t size) | |||
| 213 | /* From sysdep.c */ | 214 | /* From sysdep.c */ |
| 214 | #if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME) | 215 | #if !defined (HAVE_GET_CURRENT_DIR_NAME) || defined (BROKEN_GET_CURRENT_DIR_NAME) |
| 215 | 216 | ||
| 216 | /* From lisp.h */ | ||
| 217 | #ifndef DIRECTORY_SEP | ||
| 218 | #define DIRECTORY_SEP '/' | ||
| 219 | #endif | ||
| 220 | #ifndef IS_DIRECTORY_SEP | ||
| 221 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) | ||
| 222 | #endif | ||
| 223 | #ifndef IS_DEVICE_SEP | ||
| 224 | #ifndef DEVICE_SEP | ||
| 225 | #define IS_DEVICE_SEP(_c_) 0 | ||
| 226 | #else | ||
| 227 | #define IS_DEVICE_SEP(_c_) ((_c_) == DEVICE_SEP) | ||
| 228 | #endif | ||
| 229 | #endif | ||
| 230 | |||
| 231 | char *get_current_dir_name (void); | 217 | char *get_current_dir_name (void); |
| 232 | 218 | ||
| 233 | /* Return the current working directory. Returns NULL on errors. | 219 | /* Return the current working directory. Returns NULL on errors. |
diff --git a/lib-src/make-docfile.c b/lib-src/make-docfile.c index bd87b5b6524..c2ac8ed63f6 100644 --- a/lib-src/make-docfile.c +++ b/lib-src/make-docfile.c | |||
| @@ -1,6 +1,7 @@ | |||
| 1 | /* Generate doc-string file for GNU Emacs from source files. | 1 | /* Generate doc-string file for GNU Emacs from source files. |
| 2 | Copyright (C) 1985-1986, 1992-1994, 1997, 1999-2012 | 2 | |
| 3 | Free Software Foundation, Inc. | 3 | Copyright (C) 1985-1986, 1992-1994, 1997, 1999-2012 |
| 4 | Free Software Foundation, Inc. | ||
| 4 | 5 | ||
| 5 | This file is part of GNU Emacs. | 6 | This file is part of GNU Emacs. |
| 6 | 7 | ||
| @@ -36,12 +37,13 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 36 | #include <config.h> | 37 | #include <config.h> |
| 37 | 38 | ||
| 38 | /* Defined to be emacs_main, sys_fopen, etc. in config.h. */ | 39 | /* Defined to be emacs_main, sys_fopen, etc. in config.h. */ |
| 40 | /* FIXME Not for ages? */ | ||
| 39 | #undef main | 41 | #undef main |
| 40 | #undef fopen | 42 | #undef fopen |
| 41 | #undef chdir | 43 | #undef chdir |
| 42 | 44 | ||
| 43 | #include <stdio.h> | 45 | #include <stdio.h> |
| 44 | #include <stdlib.h> | 46 | #include <stdlib.h> /* FIXME config.h unconditionally includes this */ |
| 45 | #ifdef MSDOS | 47 | #ifdef MSDOS |
| 46 | #include <fcntl.h> | 48 | #include <fcntl.h> |
| 47 | #endif /* MSDOS */ | 49 | #endif /* MSDOS */ |
| @@ -58,14 +60,6 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 58 | #define READ_BINARY "r" | 60 | #define READ_BINARY "r" |
| 59 | #endif /* not DOS_NT */ | 61 | #endif /* not DOS_NT */ |
| 60 | 62 | ||
| 61 | #ifndef DIRECTORY_SEP | ||
| 62 | #define DIRECTORY_SEP '/' | ||
| 63 | #endif | ||
| 64 | |||
| 65 | #ifndef IS_DIRECTORY_SEP | ||
| 66 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) | ||
| 67 | #endif | ||
| 68 | |||
| 69 | /* Use this to suppress gcc's `...may be used before initialized' warnings. */ | 63 | /* Use this to suppress gcc's `...may be used before initialized' warnings. */ |
| 70 | #ifdef lint | 64 | #ifdef lint |
| 71 | # define IF_LINT(Code) Code | 65 | # define IF_LINT(Code) Code |
| @@ -79,6 +73,8 @@ static int scan_c_file (char *filename, const char *mode); | |||
| 79 | static void start_globals (void); | 73 | static void start_globals (void); |
| 80 | static void write_globals (void); | 74 | static void write_globals (void); |
| 81 | 75 | ||
| 76 | /* FIXME msdos does not define this any more, and in any case we | ||
| 77 | undefined it for everyone just above. */ | ||
| 82 | #ifdef MSDOS | 78 | #ifdef MSDOS |
| 83 | /* s/msdos.h defines this as sys_chdir, but we're not linking with the | 79 | /* s/msdos.h defines this as sys_chdir, but we're not linking with the |
| 84 | file where that function is defined. */ | 80 | file where that function is defined. */ |
diff --git a/lib-src/movemail.c b/lib-src/movemail.c index df1c1137df5..3ea4f4521c1 100644 --- a/lib-src/movemail.c +++ b/lib-src/movemail.c | |||
| @@ -275,13 +275,6 @@ main (int argc, char **argv) | |||
| 275 | else | 275 | else |
| 276 | #endif | 276 | #endif |
| 277 | { | 277 | { |
| 278 | #ifndef DIRECTORY_SEP | ||
| 279 | #define DIRECTORY_SEP '/' | ||
| 280 | #endif | ||
| 281 | #ifndef IS_DIRECTORY_SEP | ||
| 282 | #define IS_DIRECTORY_SEP(_c_) ((_c_) == DIRECTORY_SEP) | ||
| 283 | #endif | ||
| 284 | |||
| 285 | /* Use a lock file named after our first argument with .lock appended: | 278 | /* Use a lock file named after our first argument with .lock appended: |
| 286 | If it exists, the mail file is locked. */ | 279 | If it exists, the mail file is locked. */ |
| 287 | /* Note: this locking mechanism is *required* by the mailer | 280 | /* Note: this locking mechanism is *required* by the mailer |
diff --git a/nt/ChangeLog b/nt/ChangeLog index 46a425b60c6..7ad4231b611 100644 --- a/nt/ChangeLog +++ b/nt/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * config.nt (DIRECTORY_SEP): Move here from src/lisp.h. | ||
| 4 | |||
| 1 | 2012-08-07 Juanma Barranquero <lekktu@gmail.com> | 5 | 2012-08-07 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 6 | ||
| 3 | * config.nt: Sync with autogen/config.nt. | 7 | * config.nt: Sync with autogen/config.nt. |
diff --git a/nt/config.nt b/nt/config.nt index fe21f15f2fb..c1e7a917d82 100644 --- a/nt/config.nt +++ b/nt/config.nt | |||
| @@ -1,7 +1,6 @@ | |||
| 1 | /* GNU Emacs site configuration template file. | 1 | /* GNU Emacs site configuration template file. |
| 2 | 2 | ||
| 3 | Copyright (C) 1988, 1993-1994, 2001-2012 | 3 | Copyright (C) 1988, 1993-1994, 2001-2012 Free Software Foundation, Inc. |
| 4 | Free Software Foundation, Inc. | ||
| 5 | 4 | ||
| 6 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 7 | 6 | ||
| @@ -131,6 +130,9 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 131 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ | 130 | /* Define to 1 for DGUX with <sys/dg_sys_info.h>. */ |
| 132 | #undef DGUX | 131 | #undef DGUX |
| 133 | 132 | ||
| 133 | /* Character that separates directories in a file name. */ | ||
| 134 | #define DIRECTORY_SEP '/' | ||
| 135 | |||
| 134 | /* Define if dispnew.c should include stdio_ext.h. */ | 136 | /* Define if dispnew.c should include stdio_ext.h. */ |
| 135 | #undef DISPNEW_NEEDS_STDIO_EXT | 137 | #undef DISPNEW_NEEDS_STDIO_EXT |
| 136 | 138 | ||
diff --git a/src/ChangeLog b/src/ChangeLog index 2d65dcb0860..3427f449586 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,7 @@ | |||
| 1 | 2012-08-10 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * lisp.h (DIRECTORY_SEP): Let configure set it. | ||
| 4 | |||
| 1 | 2012-08-09 Dmitry Antipov <dmantipov@yandex.ru> | 5 | 2012-08-09 Dmitry Antipov <dmantipov@yandex.ru> |
| 2 | 6 | ||
| 3 | Use TSET for write access to Lisp_Object slots of struct terminal. | 7 | Use TSET for write access to Lisp_Object slots of struct terminal. |
diff --git a/src/lisp.h b/src/lisp.h index 025736e7fb5..4f1a8931e99 100644 --- a/src/lisp.h +++ b/src/lisp.h | |||
| @@ -3418,8 +3418,6 @@ extern char *egetenv (const char *); | |||
| 3418 | /* Set up the name of the machine we're running on. */ | 3418 | /* Set up the name of the machine we're running on. */ |
| 3419 | extern void init_system_name (void); | 3419 | extern void init_system_name (void); |
| 3420 | 3420 | ||
| 3421 | static char const DIRECTORY_SEP = '/'; | ||
| 3422 | |||
| 3423 | /* Use this to suppress gcc's warnings. */ | 3421 | /* Use this to suppress gcc's warnings. */ |
| 3424 | #ifdef lint | 3422 | #ifdef lint |
| 3425 | 3423 | ||