aboutsummaryrefslogtreecommitdiffstats
path: root/lib-src
diff options
context:
space:
mode:
authorPaul Eggert2011-11-19 18:29:42 -0800
committerPaul Eggert2011-11-19 18:29:42 -0800
commite1dbe924b53c541fdf238a5a722b7177d5c8760b (patch)
treecef637ee7849fac3160c668f88e0f761305f87d3 /lib-src
parent7fb18e9ef9edb3b47cf463babe83922f9310a473 (diff)
downloademacs-e1dbe924b53c541fdf238a5a722b7177d5c8760b.tar.gz
emacs-e1dbe924b53c541fdf238a5a722b7177d5c8760b.zip
Spelling fixes.
Diffstat (limited to 'lib-src')
-rw-r--r--lib-src/ChangeLog52
-rw-r--r--lib-src/etags.c12
2 files changed, 32 insertions, 32 deletions
diff --git a/lib-src/ChangeLog b/lib-src/ChangeLog
index d043f41962e..983754eb1c3 100644
--- a/lib-src/ChangeLog
+++ b/lib-src/ChangeLog
@@ -2032,7 +2032,7 @@
2032 * etags.c [ETAGS_REGEXPS]: Now is unconditionally defined. 2032 * etags.c [ETAGS_REGEXPS]: Now is unconditionally defined.
2033 [LONG_OPTIONS]: Changed to NO_LONG_OPTIONS, which is undefined. 2033 [LONG_OPTIONS]: Changed to NO_LONG_OPTIONS, which is undefined.
2034 (Objc_suffixes): Suggest using --lang=c for full help. 2034 (Objc_suffixes): Suggest using --lang=c for full help.
2035 (C_entries): Initialise savetoken to 0 to shut up the compiler. 2035 (C_entries): Initialize savetoken to 0 to shut up the compiler.
2036 2036
20372006-07-20 Andreas Schwab <schwab@suse.de> 20372006-07-20 Andreas Schwab <schwab@suse.de>
2038 2038
@@ -2738,7 +2738,7 @@
2738 (add_regex, regex_tag_multiline, readline): Use it. 2738 (add_regex, regex_tag_multiline, readline): Use it.
2739 (main): Free some global structures. 2739 (main): Free some global structures.
2740 (fdesc): New member `written'. 2740 (fdesc): New member `written'.
2741 (readline, process_file): Initialise it. 2741 (readline, process_file): Initialize it.
2742 (put_entries): Set it. 2742 (put_entries): Set it.
2743 (main): Use it to create entries for files without tags. 2743 (main): Use it to create entries for files without tags.
2744 (total_size_of_entries): Do not count invalid tags. 2744 (total_size_of_entries): Do not count invalid tags.
@@ -2849,7 +2849,7 @@
2849 (find_entries): Rewind unconditionally. 2849 (find_entries): Rewind unconditionally.
2850 (find_entries): Do not call language functions directly, now calls 2850 (find_entries): Do not call language functions directly, now calls
2851 itself. 2851 itself.
2852 (find_entries): Do general initialisations here. 2852 (find_entries): Do general initializations here.
2853 (CNL_SAVE_DEFINEDEF, C_entries, LOOP_ON_INPUT_LINES, F_getit) 2853 (CNL_SAVE_DEFINEDEF, C_entries, LOOP_ON_INPUT_LINES, F_getit)
2854 (Ada_getit, Pascal_functions, Pascal_functions) 2854 (Ada_getit, Pascal_functions, Pascal_functions)
2855 (prolog_skip_comment): Do not do them here. 2855 (prolog_skip_comment): Do not do them here.
@@ -3085,7 +3085,7 @@
3085 (TeX_commands): Name tags. Correction of old disabled code. 3085 (TeX_commands): Name tags. Correction of old disabled code.
3086 3086
3087 * etags.c (curfiledir, curtagfname): New global variables. 3087 * etags.c (curfiledir, curtagfname): New global variables.
3088 (process_file): Initialise them. 3088 (process_file): Initialize them.
3089 (readline): Canonicalize the name found in #line directive. 3089 (readline): Canonicalize the name found in #line directive.
3090 3090
30912002-03-06 Jason Rumney <jasonr@gnu.org> 30912002-03-06 Jason Rumney <jasonr@gnu.org>
@@ -3175,7 +3175,7 @@
3175 (L_getit): Simplify by using get_tag. 3175 (L_getit): Simplify by using get_tag.
3176 (Perl_functions, Postscript_functions, erlang_attribute): Use the 3176 (Perl_functions, Postscript_functions, erlang_attribute): Use the
3177 modified LOOKING_AT. 3177 modified LOOKING_AT.
3178 (notinname): Remove '[' and added ')' to the recognised chars. 3178 (notinname): Remove '[' and added ')' to the recognized chars.
3179 (LOOKING_AT, get_tag, PHP_functions): Use notinname. 3179 (LOOKING_AT, get_tag, PHP_functions): Use notinname.
3180 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions): 3180 (Ada_getit, Ada_funcs, Python_functions, Scheme_functions):
3181 Clarified, using strneq or notinname. 3181 Clarified, using strneq or notinname.
@@ -3242,7 +3242,7 @@
3242 (Scheme_functions, Texinfo_nodes): Use it. 3242 (Scheme_functions, Texinfo_nodes): Use it.
3243 (Perl_functions): Use strneq. 3243 (Perl_functions): Use strneq.
3244 (prolog_pred): Rename to prolog_pr. 3244 (prolog_pred): Rename to prolog_pr.
3245 (prolog_pr): Recognise Prolog rules in addition to predicates. 3245 (prolog_pr): Recognize Prolog rules in addition to predicates.
3246 [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent 3246 [ETAGS_REGEXPS] [!HAVE_CONFIG_H] [__CYGWIN__]: Prevent
3247 unmodified compile, as Cygwin's regex.h is incompatible with us. 3247 unmodified compile, as Cygwin's regex.h is incompatible with us.
3248 [!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string. 3248 [!HAVE_CONFIG_H] [!__STDC__]: #define const as the empty string.
@@ -3516,7 +3516,7 @@
3516 * etags.c (enum sym_type): New label st_C_template. 3516 * etags.c (enum sym_type): New label st_C_template.
3517 (gperf input): Use it for switching to C++ from C. 3517 (gperf input): Use it for switching to C++ from C.
3518 (consider_token): Do it. 3518 (consider_token): Do it.
3519 (C_entries): Initialise typdefcblev to quiet compilers. 3519 (C_entries): Initialize typdefcblev to quiet compilers.
3520 [!HAVE_CONFIG_H] [!__STDC__]: #define static as nothing. 3520 [!HAVE_CONFIG_H] [!__STDC__]: #define static as nothing.
3521 3521
35222001-02-22 Andrew Innes <andrewi@gnu.org> 35222001-02-22 Andrew Innes <andrewi@gnu.org>
@@ -3967,7 +3967,7 @@
3967 3967
3968 * etags.c (C_entries, consider_token): C++ `operator' now is 3968 * etags.c (C_entries, consider_token): C++ `operator' now is
3969 tagged in most cases. 3969 tagged in most cases.
3970 As before, :: is not recognised if surrounded by spaces. 3970 As before, :: is not recognized if surrounded by spaces.
3971 3971
3972 * etags.c (relative_filename): Account for DOS file names such 3972 * etags.c (relative_filename): Account for DOS file names such
3973 that is impossible to make one relative to another. 3973 that is impossible to make one relative to another.
@@ -4576,7 +4576,7 @@
4576 * etags.c (C_entries): Use "." instead of "::" for Java. 4576 * etags.c (C_entries): Use "." instead of "::" for Java.
4577 (consider_token): is_func renamed to is_func_or_var. 4577 (consider_token): is_func renamed to is_func_or_var.
4578 (C_entries): is_func renamed to funorvar. 4578 (C_entries): is_func renamed to funorvar.
4579 (C_entries): Initialise tok.named. 4579 (C_entries): Initialize tok.named.
4580 (sym_type, C_stab_entry, consider_token): st_C_ignore is used to 4580 (sym_type, C_stab_entry, consider_token): st_C_ignore is used to
4581 get rid of "import", "package" and "friend". 4581 get rid of "import", "package" and "friend".
4582 (fvdef): Rename from funcdef. Also some constants renamed. 4582 (fvdef): Rename from funcdef. Also some constants renamed.
@@ -4630,7 +4630,7 @@
4630 (lang_names): Add Java. 4630 (lang_names): Add Java.
4631 (sym_type): Add st_C_javastruct for Java. 4631 (sym_type): Add st_C_javastruct for Java.
4632 (C_stab_entry): Add `extends' and `implements' keywords. 4632 (C_stab_entry): Add `extends' and `implements' keywords.
4633 (consider_token, C_entries): Recognise Java structures. 4633 (consider_token, C_entries): Recognize Java structures.
4634 4634
46351997-05-12 Francesco Potortì <F.Potorti@cnuce.cnr.it> 46351997-05-12 Francesco Potortì <F.Potorti@cnuce.cnr.it>
4636 4636
@@ -4678,7 +4678,7 @@
4678 4678
4679 * etags.c (xnew): Add support for debugging with chkmalloc. 4679 * etags.c (xnew): Add support for debugging with chkmalloc.
4680 (error): Use this instead of printf whenever possible. 4680 (error): Use this instead of printf whenever possible.
4681 (main): Only call xnew after having initialised progname. 4681 (main): Only call xnew after having initialized progname.
4682 (substitute): Bad memory corruption error corrected. 4682 (substitute): Bad memory corruption error corrected.
4683 4683
46841997-04-08 Francesco Potortì <F.Potorti@cnuce.cnr.it> 46841997-04-08 Francesco Potortì <F.Potorti@cnuce.cnr.it>
@@ -5596,8 +5596,8 @@
5596 5596
55971995-02-22 Francesco Potortì (pot@cnuce.cnr.it) 55971995-02-22 Francesco Potortì (pot@cnuce.cnr.it)
5598 5598
5599 * etags.c (C_entries): token_saved removed. Initialise tok.valid and 5599 * etags.c (C_entries): token_saved removed. Initialize tok.valid and
5600 savetok.valid. Mark token as valid when it is initialised. 5600 savetok.valid. Mark token as valid when it is initialized.
5601 (make_tag): Make token only if token is valid and reset validity. 5601 (make_tag): Make token only if token is valid and reset validity.
5602 (CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved. 5602 (CNL_SAVE_DEFINEDEF): Test for savetok.valid instead of token_saved.
5603 (TOKEN): Add a new member: valid. 5603 (TOKEN): Add a new member: valid.
@@ -5609,15 +5609,15 @@
5609 5609
56101995-02-14 Francesco Potortì (pot@cnuce.cnr.it) 56101995-02-14 Francesco Potortì (pot@cnuce.cnr.it)
5611 5611
5612 * etags.c (C_entries): Initialise the new members of TOKEN. 5612 * etags.c (C_entries): Initialize the new members of TOKEN.
5613 (C_entries): Do not allocate a new space for each token found by 5613 (C_entries): Do not allocate a new space for each token found by
5614 consider_token. Let make_tag do that instead. 5614 consider_token. Let make_tag do that instead.
5615 (make_tag): Since now TOKEN has memory of where it is taken from, 5615 (make_tag): Since now TOKEN has memory of where it is taken from,
5616 this new macro substitutes both make_tag_from_new_lb and 5616 this new macro substitutes both make_tag_from_new_lb and
5617 make_tag_from_oth_lb. All callers changed. 5617 make_tag_from_oth_lb. All callers changed.
5618 (TOKEN): Add linepos and buffer members. 5618 (TOKEN): Add linepos and buffer members.
5619 (main): Initialise token_str. 5619 (main): Initialize token_str.
5620 (lang_extensions): Recognise .c++ and .h++ as C++ file suffixes. 5620 (lang_extensions): Recognize .c++ and .h++ as C++ file suffixes.
5621 (token_str): New global variable used by C_entries. 5621 (token_str): New global variable used by C_entries.
5622 5622
56231995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu> 56231995-02-07 Richard Stallman <rms@pogo.gnu.ai.mit.edu>
@@ -5626,7 +5626,7 @@
5626 5626
56271995-02-01 Francesco Potortì (pot@cnuce.cnr.it) 56271995-02-01 Francesco Potortì (pot@cnuce.cnr.it)
5628 5628
5629 * etags.c (pfnote): Initialise been_warned in the node. 5629 * etags.c (pfnote): Initialize been_warned in the node.
5630 (C_entries): Remove a speed hack for the sake of clarity. 5630 (C_entries): Remove a speed hack for the sake of clarity.
5631 5631
56321995-01-18 Francesco Potortì (pot@cnuce.cnr.it) 56321995-01-18 Francesco Potortì (pot@cnuce.cnr.it)
@@ -5911,8 +5911,8 @@
5911 5911
59121994-09-29 Francesco Potortì (pot@cnuce.cnr.it) 59121994-09-29 Francesco Potortì (pot@cnuce.cnr.it)
5913 5913
5914 * etags.c (C_entries): Recognise typedef of ANSI style functions. 5914 * etags.c (C_entries): Recognize typedef of ANSI style functions.
5915 (C_entries): Recognise #define inside a struct. 5915 (C_entries): Recognize #define inside a struct.
5916 (C_entries): ANSI tells that preprocessor commands do not have to 5916 (C_entries): ANSI tells that preprocessor commands do not have to
5917 start on the first column. 5917 start on the first column.
5918 (print_help): Documentation corrected for -d and -D. 5918 (print_help): Documentation corrected for -d and -D.
@@ -6026,7 +6026,7 @@
6026 6026
60271994-07-08 Dave Love (d.love@dl.ac.uk) 60271994-07-08 Dave Love (d.love@dl.ac.uk)
6028 6028
6029 * etags.c (takeprec): Recognise `character*(*) function'. 6029 * etags.c (takeprec): Recognize `character*(*) function'.
6030 6030
60311994-07-08 Francesco Potortì (pot@cnuce.cnr.it) 60311994-07-08 Francesco Potortì (pot@cnuce.cnr.it)
6032 6032
@@ -6219,7 +6219,7 @@
6219 TeX_functions, Prolog_functions. 6219 TeX_functions, Prolog_functions.
6220 (inf): No more a global variable. 6220 (inf): No more a global variable.
6221 (C_entries): Take 2nd parameter `inf' instead of using the global one. 6221 (C_entries): Take 2nd parameter `inf' instead of using the global one.
6222 (find_entries): Add the cp1 var for optimisation. 6222 (find_entries): Add the cp1 var for optimization.
6223 (find_entries): Add more suffixes for assembler files. 6223 (find_entries): Add more suffixes for assembler files.
6224 (Asm_funcs): Now finds labels even without an ending colon. 6224 (Asm_funcs): Now finds labels even without an ending colon.
6225 6225
@@ -6247,7 +6247,7 @@
6247 functions added to compute filenames in tags files. 6247 functions added to compute filenames in tags files.
6248 (process_file): Filenames in tags file are relative to the 6248 (process_file): Filenames in tags file are relative to the
6249 directory where the tags file is (useful with the -o option). 6249 directory where the tags file is (useful with the -o option).
6250 (main): Initialise the outfiledir var. 6250 (main): Initialize the outfiledir var.
6251 (TYPEDST): Add the `tignore' value. 6251 (TYPEDST): Add the `tignore' value.
6252 (C_entries): Corrected various small bugs. 6252 (C_entries): Corrected various small bugs.
6253 6253
@@ -6553,7 +6553,7 @@
6553 6553
65541993-09-20 Francesco Potortì (pot@fly) 65541993-09-20 Francesco Potortì (pot@fly)
6555 6555
6556 * etags.c (C_entries): is_func is initialised here instead of in 6556 * etags.c (C_entries): is_func is initialized here instead of in
6557 consider_token for the sake of the yacc rules section. 6557 consider_token for the sake of the yacc rules section.
6558 (C_entries): Now class, struct, enum, union and typedef produce 6558 (C_entries): Now class, struct, enum, union and typedef produce
6559 named tags. 6559 named tags.
@@ -6607,7 +6607,7 @@
6607 6607
66081993-08-04 Francesco Potortì (pot@spiff.gnu.ai.mit.edu) 66081993-08-04 Francesco Potortì (pot@spiff.gnu.ai.mit.edu)
6609 6609
6610 * etags.c (L_isdef, L_isquote, L_getit): Small optimisations. 6610 * etags.c (L_isdef, L_isquote, L_getit): Small optimizations.
6611 (L_funcs): The (foo::defmumble stuff now should work. 6611 (L_funcs): The (foo::defmumble stuff now should work.
6612 (consider_token): Function returned random value--corrected. 6612 (consider_token): Function returned random value--corrected.
6613 (C_entries): Corrected == versus = typo. 6613 (C_entries): Corrected == versus = typo.
@@ -6629,7 +6629,7 @@
6629 (C_entries, consider_token): Make use of fignore. 6629 (C_entries, consider_token): Make use of fignore.
6630 (consider_token): Reset funcdef when next_token_is_func: when in 6630 (consider_token): Reset funcdef when next_token_is_func: when in
6631 ctags mode makes DEFVAR and others work better. 6631 ctags mode makes DEFVAR and others work better.
6632 (L_isquote): Function that recognises the "(quote" string. 6632 (L_isquote): Function that recognizes the "(quote" string.
6633 (L_getit): Ignore quoting via "'" or "(quote". Useful for defalias. 6633 (L_getit): Ignore quoting via "'" or "(quote". Useful for defalias.
6634 6634
66351993-07-29 Paul Eggert (eggert@twinsun.com) 66351993-07-29 Paul Eggert (eggert@twinsun.com)
@@ -6976,7 +6976,7 @@
6976 (TOKEN): Member linestart removed. 6976 (TOKEN): Member linestart removed.
6977 (linepos, prev_linepos, lb1): Deleted. 6977 (linepos, prev_linepos, lb1): Deleted.
6978 (main): Call initbuffer on lbs array instead of lb1. 6978 (main): Call initbuffer on lbs array instead of lb1.
6979 (init): Remove the initialisation of the logical _gd array. 6979 (init): Remove the initialization of the logical _gd array.
6980 (find_entries): A .sa suffix means assembler file. 6980 (find_entries): A .sa suffix means assembler file.
6981 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec. 6981 (C_create_stab): "auto", "void", "extern", "static" are st_C_typespec.
6982 All C state machines rewritten. 6982 All C state machines rewritten.
diff --git a/lib-src/etags.c b/lib-src/etags.c
index df505b0ef56..30d90e9d911 100644
--- a/lib-src/etags.c
+++ b/lib-src/etags.c
@@ -1862,10 +1862,10 @@ find_entries (FILE *inf)
1862 1862
1863 assert (parser != NULL); 1863 assert (parser != NULL);
1864 1864
1865 /* Generic initialisations before reading from file. */ 1865 /* Generic initializations before reading from file. */
1866 linebuffer_setlen (&filebuf, 0); /* reset the file buffer */ 1866 linebuffer_setlen (&filebuf, 0); /* reset the file buffer */
1867 1867
1868 /* Generic initialisations before parsing file with readline. */ 1868 /* Generic initializations before parsing file with readline. */
1869 lineno = 0; /* reset global line number */ 1869 lineno = 0; /* reset global line number */
1870 charno = 0; /* reset global char number */ 1870 charno = 0; /* reset global char number */
1871 linecharno = 0; /* reset global char number of line start */ 1871 linecharno = 0; /* reset global char number of line start */
@@ -1895,7 +1895,7 @@ find_entries (FILE *inf)
1895 * 4. the character, if any, immediately after NAME in LINESTART must 1895 * 4. the character, if any, immediately after NAME in LINESTART must
1896 * also be a character in NONAM. 1896 * also be a character in NONAM.
1897 * 1897 *
1898 * The implementation uses the notinname() macro, which recognises the 1898 * The implementation uses the notinname() macro, which recognizes the
1899 * characters stored in the string `nonam'. 1899 * characters stored in the string `nonam'.
1900 * etags.el needs to use the same characters that are in NONAM. 1900 * etags.el needs to use the same characters that are in NONAM.
1901 */ 1901 */
@@ -3057,7 +3057,7 @@ make_C_tag (int isfun)
3057 make_tag (token_name.buffer, token_name.len, isfun, token.line, 3057 make_tag (token_name.buffer, token_name.len, isfun, token.line,
3058 token.offset+token.length+1, token.lineno, token.linepos); 3058 token.offset+token.length+1, token.lineno, token.linepos);
3059 else if (DEBUG) 3059 else if (DEBUG)
3060 { /* this branch is optimised away if !DEBUG */ 3060 { /* this branch is optimized away if !DEBUG */
3061 make_tag (concat ("INVALID TOKEN:-->", token_name.buffer, ""), 3061 make_tag (concat ("INVALID TOKEN:-->", token_name.buffer, ""),
3062 token_name.len + 17, isfun, token.line, 3062 token_name.len + 17, isfun, token.line,
3063 token.offset+token.length+1, token.lineno, token.linepos); 3063 token.offset+token.length+1, token.lineno, token.linepos);
@@ -3304,7 +3304,7 @@ C_entries (int c_ext, FILE *inf)
3304 if (c == ':' && *lp == ':' && begtoken (lp[1])) 3304 if (c == ':' && *lp == ':' && begtoken (lp[1]))
3305 /* This handles :: in the middle, 3305 /* This handles :: in the middle,
3306 but not at the beginning of an identifier. 3306 but not at the beginning of an identifier.
3307 Also, space-separated :: is not recognised. */ 3307 Also, space-separated :: is not recognized. */
3308 { 3308 {
3309 if (c_ext & C_AUTO) /* automatic detection of C++ */ 3309 if (c_ext & C_AUTO) /* automatic detection of C++ */
3310 c_ext = (c_ext | C_PLPL) & ~C_AUTO; 3310 c_ext = (c_ext | C_PLPL) & ~C_AUTO;
@@ -5900,7 +5900,7 @@ regex_tag_multiline (void)
5900 if (!rp->multi_line) 5900 if (!rp->multi_line)
5901 continue; /* skip normal regexps */ 5901 continue; /* skip normal regexps */
5902 5902
5903 /* Generic initialisations before parsing file from memory. */ 5903 /* Generic initializations before parsing file from memory. */
5904 lineno = 1; /* reset global line number */ 5904 lineno = 1; /* reset global line number */
5905 charno = 0; /* reset global char number */ 5905 charno = 0; /* reset global char number */
5906 linecharno = 0; /* reset global char number of line start */ 5906 linecharno = 0; /* reset global char number of line start */