From: Daniel Jacobowitz <drow@false.org>
To: Tom Tromey <tromey@redhat.com>
Cc: gdb-patches@sourceware.org
Subject: Re: RFA: add C++ alternate punctuators
Date: Sat, 20 Dec 2008 17:16:00 -0000 [thread overview]
Message-ID: <20081220171526.GA30284@caradoc.them.org> (raw)
In-Reply-To: <m3ljuaet5j.fsf@fleche.redhat.com>
On Sat, Dec 20, 2008 at 08:57:28AM -0700, Tom Tromey wrote:
> C++ has alternate spellings for some operators. This patch adds
> support for them to the C lexer.
>
> Rather than add a bunch of new code to the switch, I followed the
> comment's advice and used a table.
Does anything performance sensitive use this lexer, or is that likely
in the future? I suspect this version will be quite a lot slower;
it has a string copy and a linear search.
I expect the copy in cp-name-parser.c will be performance sensitive
but I don't know about this one.
--
Daniel Jacobowitz
CodeSourcery
next prev parent reply other threads:[~2008-12-20 17:16 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2008-12-20 15:58 Tom Tromey
2008-12-20 17:02 ` Pedro Alves
2008-12-20 17:16 ` Daniel Jacobowitz [this message]
2008-12-20 17:45 ` Tom Tromey
2008-12-20 20:26 ` Daniel Jacobowitz
2008-12-22 14:22 ` Tom Tromey
2008-12-23 10:02 ` Jan Kratochvil
2008-12-23 16:36 ` Tom Tromey
2008-12-23 17:21 ` Jan Kratochvil
2008-12-23 17:02 ` Joel Brobecker
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=20081220171526.GA30284@caradoc.them.org \
--to=drow@false.org \
--cc=gdb-patches@sourceware.org \
--cc=tromey@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