Many small improvements in tagging accuracy and capability,
commit0af4fd0dce1a1cbe1603ef9919298529e1a183fc
authorFrancesco Potortì <pot@gnu.org>
Thu, 25 Jan 2001 18:19:57 +0000 (25 18:19 +0000)
committerFrancesco Potortì <pot@gnu.org>
Thu, 25 Jan 2001 18:19:57 +0000 (25 18:19 +0000)
treedca16a7c18b4d7a2fc82cd35694d47c813a90cdf
parenta6ff749179acd8989f09c68f693fa0d6696a803f
Many small improvements in tagging accuracy and capability,
better tagging of DEFUNs, code cleanups.

2001-01-25  Francesco Potorti`  <pot@potorti.it>

* etags.c (struct tok): Renamed from struct token.
(token): Renamed from tok.
(structtype): Make it a local variable.
[DEBUG]: Use assert.
(xrnew): Change the synopsis.
(typedefs_or_cplusplus): Renamed from typedefs_and_cplusplus.
(grow_linebuffer): Don't call xrnew when not needed.
(token): buffer renamed to line.
(C_entries): Three calls to inibuffer moved here from main.
(C_entries): Removed all references to var methodlen, delete it.
(linebuffer_setlen): Was grow_buffer, now also sets len.
(consider_token, C_entries, Pascal_functions): Use it.
(C_entries): Preventing problems relative to extern "C".
(C_entries): Can tag more than one variable or func separated by
comma when --declarations is used.
(C_entries): More accurate tagging of members and declarations.
(yacc_rules): Was global, made local to C_entries.
(next_token_is_func): Removed.
(fvdef): New constants fdefunkey, fdefunname.
(consider_token, C_entries): Use them.
(C_entries): Build proper lisp names for Emacs DEFUNs.
lib-src/etags.c