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 /lib-src | |
| 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).
Diffstat (limited to 'lib-src')
| -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 |
4 files changed, 15 insertions, 35 deletions
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 |