This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: RFA: add C++ alternate punctuators
On Sat, Dec 20, 2008 at 10:45:11AM -0700, Tom Tromey wrote:
> Anyway, the above was my reasoning when I wrote the patch. Also, I
> thought using a table would make it a little less error-prone to add
> new keywords in the future. (I think we are missing 7 relevant ones.)
>
> I can rewrite it to use a hash table if you'd prefer. Or just inline
> the new keywords into the switch and delete the comment. Let me know.
It's OK as you've got it. If it becomes a problem, we can use gperf
or something.
--
Daniel Jacobowitz
CodeSourcery