diff options
| author | Glenn Morris | 2012-08-09 19:53:07 -0400 |
|---|---|---|
| committer | Glenn Morris | 2012-08-09 19:53:07 -0400 |
| commit | 35656638797b4643e7d3ed942ded9fa43429cadc (patch) | |
| tree | ffef3653243864498e4743d866d0b018ad43427c /lib-src | |
| parent | 31673780356f219c7a26251b2f79fb00c8e29f0b (diff) | |
| download | emacs-35656638797b4643e7d3ed942ded9fa43429cadc.tar.gz emacs-35656638797b4643e7d3ed942ded9fa43429cadc.zip | |
* lib-src/ebrowse.c (PATH_LIST_SEPARATOR): Remove
Replace with SEPCHAR from config.h.
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/ebrowse.c | 9 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 28232c1abc4..33022de1a29 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,8 @@ | |||
| 1 | 2012-08-09 Glenn Morris <rgm@gnu.org> | ||
| 2 | |||
| 3 | * ebrowse.c (PATH_LIST_SEPARATOR): | ||
| 4 | Remove, and replace with SEPCHAR from config.h. | ||
| 5 | |||
| 1 | 2012-08-03 Juanma Barranquero <lekktu@gmail.com> | 6 | 2012-08-03 Juanma Barranquero <lekktu@gmail.com> |
| 2 | 7 | ||
| 3 | * makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT, | 8 | * makefile.w32-in (LOCAL_FLAGS): Remove WINDOWSNT and DOS_NT, |
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 1c43bc6a4f1..f8569fe3747 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -43,17 +43,12 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 43 | 43 | ||
| 44 | #define READ_CHUNK_SIZE (100 * 1024) | 44 | #define READ_CHUNK_SIZE (100 * 1024) |
| 45 | 45 | ||
| 46 | /* The character used as a separator in path lists (like $PATH). */ | ||
| 47 | |||
| 48 | #if defined (__MSDOS__) | 46 | #if defined (__MSDOS__) |
| 49 | #define PATH_LIST_SEPARATOR ';' | ||
| 50 | #define FILENAME_EQ(X,Y) (strcasecmp (X,Y) == 0) | 47 | #define FILENAME_EQ(X,Y) (strcasecmp (X,Y) == 0) |
| 51 | #else | 48 | #else |
| 52 | #if defined (WINDOWSNT) | 49 | #if defined (WINDOWSNT) |
| 53 | #define PATH_LIST_SEPARATOR ';' | ||
| 54 | #define FILENAME_EQ(X,Y) (stricmp (X,Y) == 0) | 50 | #define FILENAME_EQ(X,Y) (stricmp (X,Y) == 0) |
| 55 | #else | 51 | #else |
| 56 | #define PATH_LIST_SEPARATOR ':' | ||
| 57 | #define FILENAME_EQ(X,Y) (streq (X,Y)) | 52 | #define FILENAME_EQ(X,Y) (streq (X,Y)) |
| 58 | #endif | 53 | #endif |
| 59 | #endif | 54 | #endif |
| @@ -3417,7 +3412,7 @@ add_search_path (char *path_list) | |||
| 3417 | char *start = path_list; | 3412 | char *start = path_list; |
| 3418 | struct search_path *p; | 3413 | struct search_path *p; |
| 3419 | 3414 | ||
| 3420 | while (*path_list && *path_list != PATH_LIST_SEPARATOR) | 3415 | while (*path_list && *path_list != SEPCHAR) |
| 3421 | ++path_list; | 3416 | ++path_list; |
| 3422 | 3417 | ||
| 3423 | p = (struct search_path *) xmalloc (sizeof *p); | 3418 | p = (struct search_path *) xmalloc (sizeof *p); |
| @@ -3434,7 +3429,7 @@ add_search_path (char *path_list) | |||
| 3434 | else | 3429 | else |
| 3435 | search_path = search_path_tail = p; | 3430 | search_path = search_path_tail = p; |
| 3436 | 3431 | ||
| 3437 | while (*path_list == PATH_LIST_SEPARATOR) | 3432 | while (*path_list == SEPCHAR) |
| 3438 | ++path_list; | 3433 | ++path_list; |
| 3439 | } | 3434 | } |
| 3440 | } | 3435 | } |