Received: from [140.186.70.92] (port=37318 helo=eggs.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1Phfxd-0005Nv-B8 for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:17:18 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Phfxb-0006ng-W7 for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:17:17 -0500 Received: from mx1.redhat.com ([209.132.183.28]:1026) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Phfxb-0006mn-LI for qemu-devel@nongnu.org; Tue, 25 Jan 2011 05:17:15 -0500 Received: from int-mx12.intmail.prod.int.phx2.redhat.com (int-mx12.intmail.prod.int.phx2.redhat.com [10.5.11.25]) by mx1.redhat.com (8.13.8/8.13.8) with ESMTP id p0PAHBu5014416 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=OK) for ; Tue, 25 Jan 2011 05:17:11 -0500 From: Markus Armbruster Subject: Re: [Qemu-devel] [PATCH 4/4] strtosz(): Use suffix macros in switch() statement References: <1295883211-18288-1-git-send-email-Jes.Sorensen@redhat.com> <1295883211-18288-5-git-send-email-Jes.Sorensen@redhat.com> <4D3DA473.1070704@redhat.com> <4D3DABBD.5020706@redhat.com> <4D3E959E.9010803@redhat.com> Date: Tue, 25 Jan 2011 11:17:10 +0100 In-Reply-To: <4D3E959E.9010803@redhat.com> (Jes Sorensen's message of "Tue, 25 Jan 2011 10:19:26 +0100") Message-ID: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Jes Sorensen Cc: kwolf@redhat.com, qemu-devel@nongnu.org Jes Sorensen writes: > On 01/24/11 18:47, Markus Armbruster wrote: >> Jes Sorensen writes: >>>>>> qemu_toupper() - whats the problem? >>>> If a STRTOSZ_DEFSUFFIX_T? expands to a lower case character, its case >>>> will not match any input. >>> >>> Right, so one has to be careful when adding new suffix constants. >> >> Calls for a comment right next to the definition of the >> STRTOSZ_DEFSUFFIX_T*. >> >> I hate unstated restrictions that are hidden far away from the place >> where you can break them. > > Well I am fine with a comment in the code. Such a comment improves it from "wrong" to merely "ugly". I can live with that. Thanks. [...]