diff options
| author | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
|---|---|---|
| committer | Stefan Monnier | 2012-03-25 16:37:21 -0400 |
| commit | 699c782b7668c44d0fa4446331b0590a6d5dac82 (patch) | |
| tree | 5dcce364741d0761920a3d274b0fc8aba4103d45 /lib-src/ebrowse.c | |
| parent | 98fb480ee31bf74cf554044f60f21df16566dd7f (diff) | |
| parent | e99a9b8bdccadded1f6fae88ee7a2a93dfd4eacf (diff) | |
| download | emacs-pending.tar.gz emacs-pending.zip | |
Merge from trunkpending
Diffstat (limited to 'lib-src/ebrowse.c')
| -rw-r--r-- | lib-src/ebrowse.c | 24 |
1 files changed, 10 insertions, 14 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 7871a804997..a1fe10b863a 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 | ||
| @@ -20,11 +20,7 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 20 | 20 | ||
| 21 | #include <config.h> | 21 | #include <config.h> |
| 22 | #include <stdio.h> | 22 | #include <stdio.h> |
| 23 | |||
| 24 | #ifdef HAVE_STDLIB_H | ||
| 25 | #include <stdlib.h> | 23 | #include <stdlib.h> |
| 26 | #endif | ||
| 27 | |||
| 28 | #include <string.h> | 24 | #include <string.h> |
| 29 | #include <ctype.h> | 25 | #include <ctype.h> |
| 30 | #include <assert.h> | 26 | #include <assert.h> |
| @@ -49,16 +45,16 @@ along with GNU Emacs. If not, see <http://www.gnu.org/licenses/>. */ | |||
| 49 | 45 | ||
| 50 | /* The character used as a separator in path lists (like $PATH). */ | 46 | /* The character used as a separator in path lists (like $PATH). */ |
| 51 | 47 | ||
| 52 | #if defined(__MSDOS__) | 48 | #if defined (__MSDOS__) |
| 53 | #define PATH_LIST_SEPARATOR ';' | 49 | #define PATH_LIST_SEPARATOR ';' |
| 54 | #define FILENAME_EQ(X,Y) (strcasecmp(X,Y) == 0) | 50 | #define FILENAME_EQ(X,Y) (strcasecmp (X,Y) == 0) |
| 55 | #else | 51 | #else |
| 56 | #if defined(WINDOWSNT) | 52 | #if defined (WINDOWSNT) |
| 57 | #define PATH_LIST_SEPARATOR ';' | 53 | #define PATH_LIST_SEPARATOR ';' |
| 58 | #define FILENAME_EQ(X,Y) (stricmp(X,Y) == 0) | 54 | #define FILENAME_EQ(X,Y) (stricmp (X,Y) == 0) |
| 59 | #else | 55 | #else |
| 60 | #define PATH_LIST_SEPARATOR ':' | 56 | #define PATH_LIST_SEPARATOR ':' |
| 61 | #define FILENAME_EQ(X,Y) (streq(X,Y)) | 57 | #define FILENAME_EQ(X,Y) (streq (X,Y)) |
| 62 | #endif | 58 | #endif |
| 63 | #endif | 59 | #endif |
| 64 | /* The default output file name. */ | 60 | /* The default output file name. */ |
| @@ -985,7 +981,7 @@ make_namespace (char *name, struct sym *context) | |||
| 985 | } | 981 | } |
| 986 | 982 | ||
| 987 | 983 | ||
| 988 | /* Find the symbol for namespace NAME. If not found, retrun NULL */ | 984 | /* Find the symbol for namespace NAME. If not found, return NULL */ |
| 989 | 985 | ||
| 990 | static struct sym * | 986 | static struct sym * |
| 991 | check_namespace (char *name, struct sym *context) | 987 | check_namespace (char *name, struct sym *context) |
| @@ -2515,7 +2511,7 @@ member (struct sym *cls, int vis) | |||
| 2515 | 2511 | ||
| 2516 | /* A function or class may follow. */ | 2512 | /* A function or class may follow. */ |
| 2517 | case TEMPLATE: | 2513 | case TEMPLATE: |
| 2518 | MATCH(); | 2514 | MATCH (); |
| 2519 | SET_FLAG (flags, F_TEMPLATE); | 2515 | SET_FLAG (flags, F_TEMPLATE); |
| 2520 | /* Skip over template argument list */ | 2516 | /* Skip over template argument list */ |
| 2521 | SKIP_MATCHING_IF ('<'); | 2517 | SKIP_MATCHING_IF ('<'); |
| @@ -2934,7 +2930,7 @@ parse_qualified_ident_or_type (char **last_id) | |||
| 2934 | } | 2930 | } |
| 2935 | 2931 | ||
| 2936 | while (enter--) | 2932 | while (enter--) |
| 2937 | leave_namespace(); | 2933 | leave_namespace (); |
| 2938 | 2934 | ||
| 2939 | return cls; | 2935 | return cls; |
| 2940 | } | 2936 | } |
| @@ -3530,7 +3526,7 @@ static void | |||
| 3530 | version (void) | 3526 | version (void) |
| 3531 | { | 3527 | { |
| 3532 | /* Makes it easier to update automatically. */ | 3528 | /* Makes it easier to update automatically. */ |
| 3533 | char emacs_copyright[] = "Copyright (C) 2011 Free Software Foundation, Inc."; | 3529 | char emacs_copyright[] = "Copyright (C) 2012 Free Software Foundation, Inc."; |
| 3534 | 3530 | ||
| 3535 | printf ("ebrowse %s\n", VERSION); | 3531 | printf ("ebrowse %s\n", VERSION); |
| 3536 | puts (emacs_copyright); | 3532 | puts (emacs_copyright); |