From: Elena Zannoni <ezannoni@redhat.com>
To: David Carlton <carlton@math.stanford.edu>
Cc: gdb-patches@sources.redhat.com,
Elena Zannoni <ezannoni@redhat.com>, Jim Blandy <jimb@redhat.com>
Subject: Re: [patch] useless code in symtab.c
Date: Wed, 23 Oct 2002 15:35:00 -0000 [thread overview]
Message-ID: <15799.9088.601916.908293@localhost.redhat.com> (raw)
In-Reply-To: <ro11y6g4wqc.fsf@jackfruit.Stanford.EDU>
David Carlton writes:
> In my eternal quest to understand symtab.c, I found an unnecessary
> declaration and a function that is never called; here's a patch to
> delete them. I have no idea what was up with the
> find_template_name_end declaration, but nobody in symtab.c calls it
> any more; and cplusplus_hint's functionality has been moved into
> cplusplus_error.
>
that's a coincidence, I was just looking at this code myself, and wondering.
> No new regressions. This patch seems obvious; I'll commit it in a
> couple of days unless somebody complains.
>
yes. Can you also knock out the one at:
linespec.c:38:extern char *find_template_name_end (char *);
Thanks
Elena
> David Carlton
> carlton@math.stanford.edu
>
> 2002-10-23 David Carlton <carlton@math.stanford.edu>
>
> * symtab.c: Delete cplusplus_hint.
> Delete prototype for find_template_name_end.
>
> Index: symtab.c
> ===================================================================
> RCS file: /cvs/src/src/gdb/symtab.c,v
> retrieving revision 1.70
> diff -u -p -r1.70 symtab.c
> --- symtab.c 20 Sep 2002 14:58:58 -0000 1.70
> +++ symtab.c 23 Oct 2002 21:04:54 -0000
> @@ -50,11 +50,6 @@
> #include <ctype.h>
> #include "cp-abi.h"
>
> -/* Prototype for one function in parser-defs.h,
> - instead of including that entire file. */
> -
> -extern char *find_template_name_end (char *);
> -
> /* Prototypes for local functions */
>
> static void completion_list_add_name (char *, char *, int, char *, char *);
> @@ -120,19 +115,6 @@ struct type *builtin_type_error;
> value_of_this. */
>
> const struct block *block_found;
> -
> -/* While the C++ support is still in flux, issue a possibly helpful hint on
> - using the new command completion feature on single quoted demangled C++
> - symbols. Remove when loose ends are cleaned up. FIXME -fnf */
> -
> -static void
> -cplusplus_hint (char *name)
> -{
> - while (*name == '\'')
> - name++;
> - printf_filtered ("Hint: try '%s<TAB> or '%s<ESC-?>\n", name, name);
> - printf_filtered ("(Note leading single quote.)\n");
> -}
>
> /* Check for a symtab of a specific name; first in symtabs, then in
> psymtabs. *If* there is no '/' in the name, a match after a '/'
next prev parent reply other threads:[~2002-10-23 22:35 UTC|newest]
Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-10-23 15:27 David Carlton
2002-10-23 15:35 ` Elena Zannoni [this message]
2002-10-23 15:43 ` David Carlton
2002-10-23 15:57 ` Elena Zannoni
2002-10-23 16:29 ` David Carlton
2002-10-23 16:36 ` Daniel Jacobowitz
2002-10-23 17:20 ` Elena Zannoni
2002-10-23 17:25 ` David Carlton
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=15799.9088.601916.908293@localhost.redhat.com \
--to=ezannoni@redhat.com \
--cc=carlton@math.stanford.edu \
--cc=gdb-patches@sources.redhat.com \
--cc=jimb@redhat.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox