From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20014 invoked by alias); 20 Dec 2008 20:26:26 -0000 Received: (qmail 20005 invoked by uid 22791); 20 Dec 2008 20:26:25 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 20 Dec 2008 20:25:46 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id DC24A10633; Sat, 20 Dec 2008 20:25:43 +0000 (GMT) Received: from caradoc.them.org (209.195.188.212.nauticom.net [209.195.188.212]) by nan.false.org (Postfix) with ESMTP id C4CFC1062D; Sat, 20 Dec 2008 20:25:43 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.69) (envelope-from ) id 1LE8ON-0002Vi-0u; Sat, 20 Dec 2008 15:25:43 -0500 Date: Sat, 20 Dec 2008 20:26:00 -0000 From: Daniel Jacobowitz To: Tom Tromey Cc: gdb-patches@sourceware.org Subject: Re: RFA: add C++ alternate punctuators Message-ID: <20081220202543.GA9632@caradoc.them.org> Mail-Followup-To: Tom Tromey , gdb-patches@sourceware.org References: <20081220171526.GA30284@caradoc.them.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.17 (2008-05-11) X-IsSubscribed: yes Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2008-12/txt/msg00361.txt.bz2 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