aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorMiles Bader2007-12-06 00:46:18 +0000
committerMiles Bader2007-12-06 00:46:18 +0000
commite5e76c04310d287a56675876dd83e1089faba215 (patch)
treea4b4f1cc134e4fd5af42671ec6689e07afe48ff2 /lib-src
parentb890d447fb56bfe9f2e4742eda4b3ab4b5f4b32a (diff)
parenta2afc99dbad3fa9a3170ad72c578451c3aea58a4 (diff)
downloademacs-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/ChangeLog5
-rw-r--r--lib-src/etags.c14
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
182007-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
182007-11-15 Francesco Potort,Al(B <pot@gnu.org> 232007-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 */
514static bool vgrind_style; /* -v: create vgrind style index output */ 514static bool vgrind_style; /* -v: create vgrind style index output */
515static bool no_warnings; /* -w: suppress warnings (undocumented) */ 515static bool no_warnings; /* -w: suppress warnings (undocumented) */
516static bool cxref_style; /* -x: create cxref style output */ 516static bool cxref_style; /* -x: create cxref style output */
517static bool cplusplus; /* .[hc] means C++, not C */ 517static bool cplusplus; /* .[hc] means C++, not C (undocumented) */
518static bool ignoreindent; /* -I: ignore indentation in C */ 518static bool ignoreindent; /* -I: ignore indentation in C */
519static bool packages_only; /* --packages-only: in Ada, only tag packages*/ 519static 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. */
626static char *default_C_suffixes [] = 626static char *default_C_suffixes [] =
627 { "c", "h", NULL }; 627 { "c", "h", NULL };
628#if CTAGS /* C help for Ctags */
629static char default_C_help [] =
630"In C code, any C function is a tag. Use -t to tag typedefs.\n\
631Use -T to tag definitions of `struct', `union' and `enum'.\n\
632Use -d to tag `#define' macro definitions and `enum' constants.\n\
633Use --globals to tag global variables.\n\
634You can tag function declarations and external variables by\n\
635using `--declarations', and struct members by using `--members'.";
636#else /* C help for Etags */
628static char default_C_help [] = 637static 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\
630definitions of `struct', `union' and `enum'. `#define' macro\n\ 639definitions 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\
636You can tag function declarations and external variables by\n\ 645You can tag function declarations and external variables by\n\
637using `--declarations'."; 646using `--declarations'.";
647#endif /* C help for Ctags and Etags */
638 648
639static char *Cplusplus_suffixes [] = 649static 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",