diff options
| author | Miles Bader | 2007-05-20 23:29:14 +0000 |
|---|---|---|
| committer | Miles Bader | 2007-05-20 23:29:14 +0000 |
| commit | 7be1c21aedb2f8e7b7831d494e065a31afe13146 (patch) | |
| tree | a998f949002bf05307fe6b59969e6ebfb0c88b8d /lib-src | |
| parent | 3c28868aeb2d445830019837294e96f432456754 (diff) | |
| parent | 26114bc08f03789f30f0acca925955f2139df690 (diff) | |
| download | emacs-7be1c21aedb2f8e7b7831d494e065a31afe13146.tar.gz emacs-7be1c21aedb2f8e7b7831d494e065a31afe13146.zip | |
Merged from emacs--devo--0
Patches applied:
* emacs@sv.gnu.org/emacs--devo--0--patch-744
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-745
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-746
Merge from emacs--rel--22
* emacs@sv.gnu.org/emacs--devo--0--patch-747
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-748
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-749
Merge from gnus--rel--5.10
* emacs@sv.gnu.org/emacs--devo--0--patch-750
Merge from emacs--rel--22
* emacs@sv.gnu.org/emacs--devo--0--patch-751
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-752
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-753
Merge from emacs--rel--22
* emacs@sv.gnu.org/emacs--devo--0--patch-754
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-755
Merge from emacs--rel--22
* emacs@sv.gnu.org/emacs--devo--0--patch-756
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-757
Update from CVS: lisp/textmodes/sgml-mode.el: Revert last change.
* emacs@sv.gnu.org/emacs--devo--0--patch-758
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-759
Merge from emacs--rel--22
* emacs@sv.gnu.org/emacs--devo--0--patch-760
Update from CVS
* emacs@sv.gnu.org/emacs--devo--0--patch-761
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-14
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-15
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-16
Update from CVS: src/xterm.c (XTread_socket): Revert last change.
* emacs@sv.gnu.org/emacs--rel--22--patch-17
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-18
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-19
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-20
Update from CVS
* emacs@sv.gnu.org/emacs--rel--22--patch-21
Update from CVS
* emacs@sv.gnu.org/gnus--rel--5.10--patch-221
Update from CVS
Revision: emacs@sv.gnu.org/emacs--multi-tty--0--patch-12
Creator: Karoly Lorentey <karoly@lorentey.hu>
Diffstat (limited to 'lib-src')
| -rw-r--r-- | lib-src/ChangeLog | 8 | ||||
| -rw-r--r-- | lib-src/etags.c | 39 |
2 files changed, 32 insertions, 15 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog index 6a414120641..e14679ad820 100644 --- a/lib-src/ChangeLog +++ b/lib-src/ChangeLog | |||
| @@ -1,3 +1,11 @@ | |||
| 1 | 2007-05-18 Francesco Potort,Al(B <pot@gnu.org> | ||
| 2 | |||
| 3 | * etags.c: Extern definitions of some more pointer functions for | ||
| 4 | standalone compilation, especially important for 64bit platforms. | ||
| 5 | (main, print_help): --members is now the default for etags. | ||
| 6 | (C_entries): Parse start of C comment as a space == end of token. | ||
| 7 | This is not necessary for C++ comment, already parsed as newline. | ||
| 8 | |||
| 1 | 2007-04-26 Glenn Morris <rgm@gnu.org> | 9 | 2007-04-26 Glenn Morris <rgm@gnu.org> |
| 2 | 10 | ||
| 3 | * makefile.w32-in (VERSION): Increase to 22.1.50. | 11 | * makefile.w32-in (VERSION): Increase to 22.1.50. |
diff --git a/lib-src/etags.c b/lib-src/etags.c index 1d1f16ddf28..b85ec8d57a9 100644 --- a/lib-src/etags.c +++ b/lib-src/etags.c | |||
| @@ -60,10 +60,10 @@ University of California, as described above. */ | |||
| 60 | 60 | ||
| 61 | /* | 61 | /* |
| 62 | * Authors: | 62 | * Authors: |
| 63 | * Ctags originally by Ken Arnold. | 63 | * 1983 Ctags originally by Ken Arnold. |
| 64 | * Fortran added by Jim Kleckner. | 64 | * 1984 Fortran added by Jim Kleckner. |
| 65 | * Ed Pelegri-Llopart added C typedefs. | 65 | * 1984 Ed Pelegri-Llopart added C typedefs. |
| 66 | * Gnu Emacs TAGS format and modifications by RMS? | 66 | * 1985 Emacs TAGS format by Richard Stallman. |
| 67 | * 1989 Sam Kendall added C++. | 67 | * 1989 Sam Kendall added C++. |
| 68 | * 1992 Joseph B. Wells improved C and C++ parsing. | 68 | * 1992 Joseph B. Wells improved C and C++ parsing. |
| 69 | * 1993 Francesco Potort́ reorganised C and C++. | 69 | * 1993 Francesco Potort́ reorganised C and C++. |
| @@ -80,7 +80,7 @@ University of California, as described above. */ | |||
| 80 | * configuration file containing regexp definitions for etags. | 80 | * configuration file containing regexp definitions for etags. |
| 81 | */ | 81 | */ |
| 82 | 82 | ||
| 83 | char pot_etags_version[] = "@(#) pot revision number is 17.26"; | 83 | char pot_etags_version[] = "@(#) pot revision number is 17.31"; |
| 84 | 84 | ||
| 85 | #define TRUE 1 | 85 | #define TRUE 1 |
| 86 | #define FALSE 0 | 86 | #define FALSE 0 |
| @@ -159,7 +159,14 @@ char pot_etags_version[] = "@(#) pot revision number is 17.26"; | |||
| 159 | # include <stdlib.h> | 159 | # include <stdlib.h> |
| 160 | # include <string.h> | 160 | # include <string.h> |
| 161 | # else /* no standard C headers */ | 161 | # else /* no standard C headers */ |
| 162 | extern char *getenv (); | 162 | extern char *getenv (); |
| 163 | extern char *strcpy (); | ||
| 164 | extern char *strncpy (); | ||
| 165 | extern char *strcat (); | ||
| 166 | extern char *strncat (); | ||
| 167 | extern unsigned long strlen (); | ||
| 168 | extern PTR malloc (); | ||
| 169 | extern PTR realloc (); | ||
| 163 | # ifdef VMS | 170 | # ifdef VMS |
| 164 | # define EXIT_SUCCESS 1 | 171 | # define EXIT_SUCCESS 1 |
| 165 | # define EXIT_FAILURE 0 | 172 | # define EXIT_FAILURE 0 |
| @@ -483,7 +490,7 @@ static char | |||
| 483 | *midtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$0123456789"; | 490 | *midtk = "ABCDEFGHIJKLMNOPQRSTUVWXYZ_abcdefghijklmnopqrstuvwxyz$0123456789"; |
| 484 | 491 | ||
| 485 | static bool append_to_tagfile; /* -a: append to tags */ | 492 | static bool append_to_tagfile; /* -a: append to tags */ |
| 486 | /* The next four default to TRUE for etags, but to FALSE for ctags. */ | 493 | /* The next five default to TRUE for etags, but to FALSE for ctags. */ |
| 487 | static bool typedefs; /* -t: create tags for C and Ada typedefs */ | 494 | static bool typedefs; /* -t: create tags for C and Ada typedefs */ |
| 488 | static bool typedefs_or_cplusplus; /* -T: create tags for C typedefs, level */ | 495 | static bool typedefs_or_cplusplus; /* -T: create tags for C typedefs, level */ |
| 489 | /* 0 struct/enum/union decls, and C++ */ | 496 | /* 0 struct/enum/union decls, and C++ */ |
| @@ -875,7 +882,7 @@ etags --help --lang=ada."); | |||
| 875 | # define EMACS_NAME "standalone" | 882 | # define EMACS_NAME "standalone" |
| 876 | #endif | 883 | #endif |
| 877 | #ifndef VERSION | 884 | #ifndef VERSION |
| 878 | # define VERSION "version" | 885 | # define VERSION "17.31" |
| 879 | #endif | 886 | #endif |
| 880 | static void | 887 | static void |
| 881 | print_version () | 888 | print_version () |
| @@ -969,7 +976,11 @@ Relative ones are stored relative to the output file's directory.\n"); | |||
| 969 | puts ("--no-globals\n\ | 976 | puts ("--no-globals\n\ |
| 970 | Do not create tag entries for global variables in some\n\ | 977 | Do not create tag entries for global variables in some\n\ |
| 971 | languages. This makes the tags file smaller."); | 978 | languages. This makes the tags file smaller."); |
| 972 | puts ("--no-members\n\ | 979 | if (CTAGS) |
| 980 | puts ("--members\n\ | ||
| 981 | Create tag entries for members of structures in some languages."); | ||
| 982 | else | ||
| 983 | puts ("--no-members\n\ | ||
| 973 | Do not create tag entries for members of structures\n\ | 984 | Do not create tag entries for members of structures\n\ |
| 974 | in some languages."); | 985 | in some languages."); |
| 975 | 986 | ||
| @@ -1215,7 +1226,7 @@ main (argc, argv) | |||
| 1215 | if (!CTAGS) | 1226 | if (!CTAGS) |
| 1216 | { | 1227 | { |
| 1217 | typedefs = typedefs_or_cplusplus = constantypedefs = TRUE; | 1228 | typedefs = typedefs_or_cplusplus = constantypedefs = TRUE; |
| 1218 | globals = TRUE; | 1229 | globals = members = TRUE; |
| 1219 | } | 1230 | } |
| 1220 | 1231 | ||
| 1221 | /* When the optstring begins with a '-' getopt_long does not rearrange the | 1232 | /* When the optstring begins with a '-' getopt_long does not rearrange the |
| @@ -3397,17 +3408,15 @@ C_entries (c_ext, inf) | |||
| 3397 | case '/': | 3408 | case '/': |
| 3398 | if (*lp == '*') | 3409 | if (*lp == '*') |
| 3399 | { | 3410 | { |
| 3400 | lp++; | ||
| 3401 | incomm = TRUE; | 3411 | incomm = TRUE; |
| 3402 | continue; | 3412 | lp++; |
| 3413 | c = ' '; | ||
| 3403 | } | 3414 | } |
| 3404 | else if (/* cplpl && */ *lp == '/') | 3415 | else if (/* cplpl && */ *lp == '/') |
| 3405 | { | 3416 | { |
| 3406 | c = '\0'; | 3417 | c = '\0'; |
| 3407 | break; | ||
| 3408 | } | 3418 | } |
| 3409 | else | 3419 | break; |
| 3410 | break; | ||
| 3411 | case '%': | 3420 | case '%': |
| 3412 | if ((c_ext & YACC) && *lp == '%') | 3421 | if ((c_ext & YACC) && *lp == '%') |
| 3413 | { | 3422 | { |