This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] useless code in symtab.c
On Wed, 23 Oct 2002 18:32:32 -0400, Elena Zannoni <ezannoni@redhat.com> said:
> Can you also knock out the one at:
> linespec.c:38:extern char *find_template_name_end (char *);
That one gets used by decode_line_1. (One of these days, I'll try to
understand what that function is doing, but I'm not feeling quite that
masochistic yet.) Though I don't see any compelling reason not to
just #include "parser-defs.h" there instead of declaring that one
function specially; should I go ahead and do that?
(Looking through ChangeLogs, I see that code in linespec.c used to be
in symtab.c; that explains why the prototype was in symtab.c.)
David Carlton
carlton@math.stanford.edu