diff options
| author | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
|---|---|---|
| committer | Stefan Monnier | 2010-09-13 16:40:48 +0200 |
| commit | cc390e46c7ba95b76ea133d98fd386214cd01709 (patch) | |
| tree | ead4400d22bd07214b782ff7e46e79d473fac419 /lib-src/ebrowse.c | |
| parent | c566235d981eba73c88bbff00b6a1d88360b6e9f (diff) | |
| parent | c5fe4acb5fb456d6e8e147d8bc7981ce56c5c03d (diff) | |
| download | emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.tar.gz emacs-cc390e46c7ba95b76ea133d98fd386214cd01709.zip | |
Merge from trunk
Diffstat (limited to 'lib-src/ebrowse.c')
| -rw-r--r-- | lib-src/ebrowse.c | 36 |
1 files changed, 18 insertions, 18 deletions
diff --git a/lib-src/ebrowse.c b/lib-src/ebrowse.c index 40e72939429..1fcbb8662f5 100644 --- a/lib-src/ebrowse.c +++ b/lib-src/ebrowse.c | |||
| @@ -249,10 +249,10 @@ struct member | |||
| 249 | int vis; /* Visibility (public, ...). */ | 249 | int vis; /* Visibility (public, ...). */ |
| 250 | int flags; /* See F_* above. */ | 250 | int flags; /* See F_* above. */ |
| 251 | char *regexp; /* Matching regular expression. */ | 251 | char *regexp; /* Matching regular expression. */ |
| 252 | char *filename; /* Don't free this shared string. */ | 252 | const char *filename; /* Don't free this shared string. */ |
| 253 | int pos; /* Buffer position of occurrence. */ | 253 | int pos; /* Buffer position of occurrence. */ |
| 254 | char *def_regexp; /* Regular expression matching definition. */ | 254 | char *def_regexp; /* Regular expression matching definition. */ |
| 255 | char *def_filename; /* File name of definition. */ | 255 | const char *def_filename; /* File name of definition. */ |
| 256 | int def_pos; /* Buffer position of definition. */ | 256 | int def_pos; /* Buffer position of definition. */ |
| 257 | char name[1]; /* Member name. */ | 257 | char name[1]; /* Member name. */ |
| 258 | }; | 258 | }; |
| @@ -294,8 +294,8 @@ struct sym | |||
| 294 | struct member *types; /* List of local types. */ | 294 | struct member *types; /* List of local types. */ |
| 295 | char *regexp; /* Matching regular expression. */ | 295 | char *regexp; /* Matching regular expression. */ |
| 296 | int pos; /* Buffer position. */ | 296 | int pos; /* Buffer position. */ |
| 297 | char *filename; /* File in which it can be found. */ | 297 | const char *filename; /* File in which it can be found. */ |
| 298 | char *sfilename; /* File in which members can be found. */ | 298 | const char *sfilename; /* File in which members can be found. */ |
| 299 | struct sym *namesp; /* Namespace in which defined. . */ | 299 | struct sym *namesp; /* Namespace in which defined. . */ |
| 300 | char name[1]; /* Name of the class. */ | 300 | char name[1]; /* Name of the class. */ |
| 301 | }; | 301 | }; |
| @@ -353,7 +353,7 @@ int yyline; | |||
| 353 | 353 | ||
| 354 | /* The name of the current input file. */ | 354 | /* The name of the current input file. */ |
| 355 | 355 | ||
| 356 | char *filename; | 356 | const char *filename; |
| 357 | 357 | ||
| 358 | /* Three character class vectors, and macros to test membership | 358 | /* Three character class vectors, and macros to test membership |
| 359 | of characters. */ | 359 | of characters. */ |
| @@ -444,7 +444,7 @@ int tk = -1; | |||
| 444 | 444 | ||
| 445 | struct kw | 445 | struct kw |
| 446 | { | 446 | { |
| 447 | char *name; /* Spelling. */ | 447 | const char *name; /* Spelling. */ |
| 448 | int tk; /* Token value. */ | 448 | int tk; /* Token value. */ |
| 449 | struct kw *next; /* Next in collision chain. */ | 449 | struct kw *next; /* Next in collision chain. */ |
| 450 | }; | 450 | }; |
| @@ -470,10 +470,10 @@ struct search_path *search_path_tail; | |||
| 470 | int yylex (void); | 470 | int yylex (void); |
| 471 | void yyparse (void); | 471 | void yyparse (void); |
| 472 | void re_init_parser (void); | 472 | void re_init_parser (void); |
| 473 | char *token_string (int); | 473 | const char *token_string (int); |
| 474 | char *matching_regexp (void); | 474 | char *matching_regexp (void); |
| 475 | void init_sym (void); | 475 | void init_sym (void); |
| 476 | struct sym *add_sym (char *, struct sym *); | 476 | struct sym *add_sym (const char *, struct sym *); |
| 477 | void add_link (struct sym *, struct sym *); | 477 | void add_link (struct sym *, struct sym *); |
| 478 | void add_member_defn (struct sym *, char *, char *, | 478 | void add_member_defn (struct sym *, char *, char *, |
| 479 | int, unsigned, int, int, int); | 479 | int, unsigned, int, int, int); |
| @@ -489,7 +489,7 @@ void mark_inherited_virtual (void); | |||
| 489 | void leave_namespace (void); | 489 | void leave_namespace (void); |
| 490 | void enter_namespace (char *); | 490 | void enter_namespace (char *); |
| 491 | void register_namespace_alias (char *, struct link *); | 491 | void register_namespace_alias (char *, struct link *); |
| 492 | void insert_keyword (char *, int); | 492 | void insert_keyword (const char *, int); |
| 493 | void re_init_scanner (void); | 493 | void re_init_scanner (void); |
| 494 | void init_scanner (void); | 494 | void init_scanner (void); |
| 495 | void process_file (char *); | 495 | void process_file (char *); |
| @@ -517,7 +517,7 @@ struct sym *parse_classname (void); | |||
| 517 | struct sym *parse_qualified_ident_or_type (char **); | 517 | struct sym *parse_qualified_ident_or_type (char **); |
| 518 | void parse_qualified_param_ident_or_type (char **); | 518 | void parse_qualified_param_ident_or_type (char **); |
| 519 | int globals (int); | 519 | int globals (int); |
| 520 | void yyerror (char *, char *); | 520 | void yyerror (const char *, const char *); |
| 521 | void usage (int) NO_RETURN; | 521 | void usage (int) NO_RETURN; |
| 522 | void version (void) NO_RETURN; | 522 | void version (void) NO_RETURN; |
| 523 | 523 | ||
| @@ -531,7 +531,7 @@ void version (void) NO_RETURN; | |||
| 531 | name and line number. */ | 531 | name and line number. */ |
| 532 | 532 | ||
| 533 | void | 533 | void |
| 534 | yyerror (char *format, char *s) | 534 | yyerror (const char *format, const char *s) |
| 535 | { | 535 | { |
| 536 | fprintf (stderr, "%s:%d: ", filename, yyline); | 536 | fprintf (stderr, "%s:%d: ", filename, yyline); |
| 537 | fprintf (stderr, format, s); | 537 | fprintf (stderr, format, s); |
| @@ -605,11 +605,11 @@ init_sym (void) | |||
| 605 | create a new symbol and set it to default values. */ | 605 | create a new symbol and set it to default values. */ |
| 606 | 606 | ||
| 607 | struct sym * | 607 | struct sym * |
| 608 | add_sym (char *name, struct sym *nested_in_class) | 608 | add_sym (const char *name, struct sym *nested_in_class) |
| 609 | { | 609 | { |
| 610 | struct sym *sym; | 610 | struct sym *sym; |
| 611 | unsigned h; | 611 | unsigned h; |
| 612 | char *s; | 612 | const char *s; |
| 613 | struct sym *scope = nested_in_class ? nested_in_class : current_namespace; | 613 | struct sym *scope = nested_in_class ? nested_in_class : current_namespace; |
| 614 | 614 | ||
| 615 | for (s = name, h = 0; *s; ++s) | 615 | for (s = name, h = 0; *s; ++s) |
| @@ -1975,7 +1975,7 @@ matching_regexp (void) | |||
| 1975 | 1975 | ||
| 1976 | /* Return a printable representation of token T. */ | 1976 | /* Return a printable representation of token T. */ |
| 1977 | 1977 | ||
| 1978 | char * | 1978 | const char * |
| 1979 | token_string (int t) | 1979 | token_string (int t) |
| 1980 | { | 1980 | { |
| 1981 | static char b[3]; | 1981 | static char b[3]; |
| @@ -2111,9 +2111,9 @@ re_init_scanner (void) | |||
| 2111 | table. */ | 2111 | table. */ |
| 2112 | 2112 | ||
| 2113 | void | 2113 | void |
| 2114 | insert_keyword (char *name, int tk) | 2114 | insert_keyword (const char *name, int tk) |
| 2115 | { | 2115 | { |
| 2116 | char *s; | 2116 | const char *s; |
| 2117 | unsigned h = 0; | 2117 | unsigned h = 0; |
| 2118 | struct kw *k = (struct kw *) xmalloc (sizeof *k); | 2118 | struct kw *k = (struct kw *) xmalloc (sizeof *k); |
| 2119 | 2119 | ||
| @@ -2839,7 +2839,7 @@ operator_name (int *sc) | |||
| 2839 | { | 2839 | { |
| 2840 | static int id_size = 0; | 2840 | static int id_size = 0; |
| 2841 | static char *id = NULL; | 2841 | static char *id = NULL; |
| 2842 | char *s; | 2842 | const char *s; |
| 2843 | int len; | 2843 | int len; |
| 2844 | 2844 | ||
| 2845 | MATCH (); | 2845 | MATCH (); |
| @@ -3680,7 +3680,7 @@ main (int argc, char **argv) | |||
| 3680 | { | 3680 | { |
| 3681 | int i; | 3681 | int i; |
| 3682 | int any_inputfiles = 0; | 3682 | int any_inputfiles = 0; |
| 3683 | static char *out_filename = DEFAULT_OUTFILE; | 3683 | static const char *out_filename = DEFAULT_OUTFILE; |
| 3684 | static char **input_filenames = NULL; | 3684 | static char **input_filenames = NULL; |
| 3685 | static int input_filenames_size = 0; | 3685 | static int input_filenames_size = 0; |
| 3686 | static int n_input_files; | 3686 | static int n_input_files; |