diff options
Diffstat (limited to 'lib-src/ebrowse.c')
| -rw-r--r-- | lib-src/ebrowse.c | 24 |
1 files changed, 7 insertions, 17 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 7395f2c8fdd..056ed471fde 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -1,6 +1,6 @@ | |||
| 1 | /* ebrowse.c --- parsing files for the ebrowse C++ browser | 1 | /* ebrowse.c --- parsing files for the ebrowse C++ browser |
| 2 | 2 | ||
| 3 | Copyright (C) 1992-2011 Free Software Foundation, Inc. | 3 | Copyright (C) 1992-2012 Free Software Foundation, Inc. |
| 4 | 4 | ||
| 5 | This file is part of GNU Emacs. | 5 | This file is part of GNU Emacs. |
| 6 | 6 | ||
| @@ -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 |
| @@ -463,10 +458,6 @@ static struct member *add_member (struct sym *, char *, int, int, unsigned); | |||
| 463 | static void class_definition (struct sym *, int, int, int); | 458 | static void class_definition (struct sym *, int, int, int); |
| 464 | static char *operator_name (int *); | 459 | static char *operator_name (int *); |
| 465 | static void parse_qualified_param_ident_or_type (char **); | 460 | static void parse_qualified_param_ident_or_type (char **); |
| 466 | static void usage (int) NO_RETURN; | ||
| 467 | static void version (void) NO_RETURN; | ||
| 468 | |||
| 469 | |||
| 470 | 461 | ||
| 471 | /*********************************************************************** | 462 | /*********************************************************************** |
| 472 | Utilities | 463 | Utilities |
| @@ -981,7 +972,7 @@ make_namespace (char *name, struct sym *context) | |||
| 981 | } | 972 | } |
| 982 | 973 | ||
| 983 | 974 | ||
| 984 | /* Find the symbol for namespace NAME. If not found, retrun NULL */ | 975 | /* Find the symbol for namespace NAME. If not found, return NULL */ |
| 985 | 976 | ||
| 986 | static struct sym * | 977 | static struct sym * |
| 987 | check_namespace (char *name, struct sym *context) | 978 | check_namespace (char *name, struct sym *context) |
| @@ -3421,7 +3412,7 @@ add_search_path (char *path_list) | |||
| 3421 | char *start = path_list; | 3412 | char *start = path_list; |
| 3422 | struct search_path *p; | 3413 | struct search_path *p; |
| 3423 | 3414 | ||
| 3424 | while (*path_list && *path_list != PATH_LIST_SEPARATOR) | 3415 | while (*path_list && *path_list != SEPCHAR) |
| 3425 | ++path_list; | 3416 | ++path_list; |
| 3426 | 3417 | ||
| 3427 | p = (struct search_path *) xmalloc (sizeof *p); | 3418 | p = (struct search_path *) xmalloc (sizeof *p); |
| @@ -3438,7 +3429,7 @@ add_search_path (char *path_list) | |||
| 3438 | else | 3429 | else |
| 3439 | search_path = search_path_tail = p; | 3430 | search_path = search_path_tail = p; |
| 3440 | 3431 | ||
| 3441 | while (*path_list == PATH_LIST_SEPARATOR) | 3432 | while (*path_list == SEPCHAR) |
| 3442 | ++path_list; | 3433 | ++path_list; |
| 3443 | } | 3434 | } |
| 3444 | } | 3435 | } |
| @@ -3507,7 +3498,7 @@ Usage: ebrowse [options] {files}\n\ | |||
| 3507 | --version display version info\n\ | 3498 | --version display version info\n\ |
| 3508 | " | 3499 | " |
| 3509 | 3500 | ||
| 3510 | static void | 3501 | static _Noreturn void |
| 3511 | usage (int error) | 3502 | usage (int error) |
| 3512 | { | 3503 | { |
| 3513 | puts (USAGE); | 3504 | puts (USAGE); |
| @@ -3522,11 +3513,10 @@ usage (int error) | |||
| 3522 | # define VERSION "21" | 3513 | # define VERSION "21" |
| 3523 | #endif | 3514 | #endif |
| 3524 | 3515 | ||
| 3525 | static void | 3516 | static _Noreturn void |
| 3526 | version (void) | 3517 | version (void) |
| 3527 | { | 3518 | { |
| 3528 | /* Makes it easier to update automatically. */ | 3519 | char emacs_copyright[] = COPYRIGHT; |
| 3529 | char emacs_copyright[] = "Copyright (C) 2011 Free Software Foundation, Inc."; | ||
| 3530 | 3520 | ||
| 3531 | printf ("ebrowse %s\n", VERSION); | 3521 | printf ("ebrowse %s\n", VERSION); |
| 3532 | puts (emacs_copyright); | 3522 | puts (emacs_copyright); |