diff options
| author | Miles Bader | 2007-12-06 00:46:18 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-12-06 00:46:18 +0000 |
| commit | e5e76c04310d287a56675876dd83e1089faba215 (patch) | |
| tree | a4b4f1cc134e4fd5af42671ec6689e07afe48ff2 /lib-src | |
| parent | b890d447fb56bfe9f2e4742eda4b3ab4b5f4b32a (diff) | |
| parent | a2afc99dbad3fa9a3170ad72c578451c3aea58a4 (diff) | |
| download | emacs-e5e76c04310d287a56675876dd83e1089faba215.tar.gz emacs-e5e76c04310d287a56675876dd83e1089faba215.zip | |
Merge from emacs--rel--22
Revision: emacs@sv.gnu.org/emacs--devo--0--patch-943
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 5 | ||||
| -rw-r--r-- | lib-src/etags.c | 14 |
2 files changed, 17 insertions, 2 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 3e8cb73c605..2cc37d49dd4 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -15,6 +15,11 @@ | |||
| 15 | 15 | ||
| 16 | * pop.c (socket_connection): Use getaddrinfo if available. | 16 | * pop.c (socket_connection): Use getaddrinfo if available. |
| 17 | 17 | ||
| 18 | 2007-11-22 Francesco Potort,Al(B <pot@gnu.org> | ||
| 19 | |||
| 20 | * etags.c (default_C_help) [CTAGS]: differentiate the help string, | ||
| 21 | as the defaults in ctags are different from etags. | ||
| 22 | |||
| 18 | 2007-11-15 Francesco Potort,Al(B <pot@gnu.org> | 23 | 2007-11-15 Francesco Potort,Al(B <pot@gnu.org> |
| 19 | 24 | ||
| 20 | * etags.c: Make prototypes for extern definitions, and add all | 25 | * etags.c: Make prototypes for extern definitions, and add all |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 280399868d1..23527171e48 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -514,7 +514,7 @@ static bool update; /* -u: update tags */ | |||
| 514 | static bool vgrind_style; /* -v: create vgrind style index output */ | 514 | static bool vgrind_style; /* -v: create vgrind style index output */ |
| 515 | static bool no_warnings; /* -w: suppress warnings (undocumented) */ | 515 | static bool no_warnings; /* -w: suppress warnings (undocumented) */ |
| 516 | static bool cxref_style; /* -x: create cxref style output */ | 516 | static bool cxref_style; /* -x: create cxref style output */ |
| 517 | static bool cplusplus; /* .[hc] means C++, not C */ | 517 | static bool cplusplus; /* .[hc] means C++, not C (undocumented) */ |
| 518 | static bool ignoreindent; /* -I: ignore indentation in C */ | 518 | static bool ignoreindent; /* -I: ignore indentation in C */ |
| 519 | static bool packages_only; /* --packages-only: in Ada, only tag packages*/ | 519 | static bool packages_only; /* --packages-only: in Ada, only tag packages*/ |
| 520 | 520 | ||
| @@ -621,10 +621,19 @@ followed by a colon, are tags."; | |||
| 621 | 621 | ||
| 622 | 622 | ||
| 623 | /* Note that .c and .h can be considered C++, if the --c++ flag was | 623 | /* Note that .c and .h can be considered C++, if the --c++ flag was |
| 624 | given, or if the `class' or `template' keyowrds are met inside the file. | 624 | given, or if the `class' or `template' keywords are met inside the file. |
| 625 | That is why default_C_entries is called for these. */ | 625 | That is why default_C_entries is called for these. */ |
| 626 | static char *default_C_suffixes [] = | 626 | static char *default_C_suffixes [] = |
| 627 | { "c", "h", NULL }; | 627 | { "c", "h", NULL }; |
| 628 | #if CTAGS /* C help for Ctags */ | ||
| 629 | static char default_C_help [] = | ||
| 630 | "In C code, any C function is a tag. Use -t to tag typedefs.\n\ | ||
| 631 | Use -T to tag definitions of `struct', `union' and `enum'.\n\ | ||
| 632 | Use -d to tag `#define' macro definitions and `enum' constants.\n\ | ||
| 633 | Use --globals to tag global variables.\n\ | ||
| 634 | You can tag function declarations and external variables by\n\ | ||
| 635 | using `--declarations', and struct members by using `--members'."; | ||
| 636 | #else /* C help for Etags */ | ||
| 628 | static char default_C_help [] = | 637 | static char default_C_help [] = |
| 629 | "In C code, any C function or typedef is a tag, and so are\n\ | 638 | "In C code, any C function or typedef is a tag, and so are\n\ |
| 630 | definitions of `struct', `union' and `enum'. `#define' macro\n\ | 639 | definitions of `struct', `union' and `enum'. `#define' macro\n\ |
| @@ -635,6 +644,7 @@ definitions and `enum' constants are tags unless you specify\n\ | |||
| 635 | `--no-members' can make the tags table file much smaller.\n\ | 644 | `--no-members' can make the tags table file much smaller.\n\ |
| 636 | You can tag function declarations and external variables by\n\ | 645 | You can tag function declarations and external variables by\n\ |
| 637 | using `--declarations'."; | 646 | using `--declarations'."; |
| 647 | #endif /* C help for Ctags and Etags */ | ||
| 638 | 648 | ||
| 639 | static char *Cplusplus_suffixes [] = | 649 | static char *Cplusplus_suffixes [] = |
| 640 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", | 650 | { "C", "c++", "cc", "cpp", "cxx", "H", "h++", "hh", "hpp", "hxx", |