Many small improvements in tagging accuracy and capability,
commitb2521b0abb548d8c60f68a61989dfd5c15166a14
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)
tree4710bd1dcc5ffe9570466d536bcdd36f2003380f
parentd22a24fa26ce2ac0cd91c19bd0e2f7e95feee9f3
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