Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1I1SUE-0004aQ-8b for qemu-devel@nongnu.org; Thu, 21 Jun 2007 15:38:34 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1I1SUC-0004aE-Ng for qemu-devel@nongnu.org; Thu, 21 Jun 2007 15:38:33 -0400 Received: from [199.232.76.173] (helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1I1SUC-0004aB-Il for qemu-devel@nongnu.org; Thu, 21 Jun 2007 15:38:32 -0400 Received: from web57004.mail.re3.yahoo.com ([66.196.97.108]) by monty-python.gnu.org with smtp (Exim 4.60) (envelope-from ) id 1I1SUC-0000Yl-2j for qemu-devel@nongnu.org; Thu, 21 Jun 2007 15:38:32 -0400 Date: Thu, 21 Jun 2007 12:38:31 -0700 (PDT) From: "Balazs Attila-Mihaly \(Cd-MaN\)" MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="0-1255978296-1182454711=:11946" Message-ID: <834525.11946.qm@web57004.mail.re3.yahoo.com> Subject: [Qemu-devel] [PATCH] Constants in command line definition Reply-To: qemu-devel@nongnu.org List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org --0-1255978296-1182454711=:11946 Content-Type: text/plain; charset=windows-1252 Content-Transfer-Encoding: quoted-printable Hello, this is me again.=0A=0AIn the last time I forgot to specify that the= patches are against the current CVS contents. This is a small patch which = replaces the numeric values "1" in the "qemu_options" structure (which defi= nes the command line format) with the constant HAS_ARG. I feel that this im= proves readibility of the code, since having both 1 and the constant HAS_AR= G present implies that they have different meaning (0 doesn't need to be re= placed with any symbolic name imho, since it is usually associated with "no= thing" anyways).=0A=0ABest regards,=0ACd-MaN=0A=0A=0A=0A=0A=09=09=0A_______= ____________________________________________________ =0AAll New Yahoo! Mail= =96 Tired of unwanted email come-ons? Let our SpamGuard protect you. http:= //uk.docs.yahoo.com/nowyoucan.html --0-1255978296-1182454711=:11946 Content-Type: text/x-patch; name="=?utf-8?q?command=5Fline=5Fparser=5Fconstants.diff?=" Content-Transfer-Encoding: base64 Content-Disposition: attachment; filename="=?utf-8?q?command=5Fline=5Fparser=5Fconstants.diff?=" SW5kZXg6IHZsLmMKPT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09 PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PT09PQpSQ1MgZmlsZTog L3NvdXJjZXMvcWVtdS9xZW11L3ZsLmMsdgpyZXRyaWV2aW5nIHJldmlzaW9u IDEuMzA2CmRpZmYgLXUgLXIxLjMwNiB2bC5jCi0tLSB2bC5jCTEwIEp1biAy MDA3IDE5OjIxOjA0IC0wMDAwCTEuMzA2CisrKyB2bC5jCTIxIEp1biAyMDA3 IDE5OjM0OjA5IC0wMDAwCkBAIC02ODIxLDEwICs2ODIxLDEwIEBACiAjZW5k aWYKICAgICB7ICJsb2NhbHRpbWUiLCAwLCBRRU1VX09QVElPTl9sb2NhbHRp bWUgfSwKICAgICB7ICJzdGQtdmdhIiwgMCwgUUVNVV9PUFRJT05fc3RkX3Zn YSB9LAotICAgIHsgImVjaHIiLCAxLCBRRU1VX09QVElPTl9lY2hyIH0sCi0g ICAgeyAibW9uaXRvciIsIDEsIFFFTVVfT1BUSU9OX21vbml0b3IgfSwKLSAg ICB7ICJzZXJpYWwiLCAxLCBRRU1VX09QVElPTl9zZXJpYWwgfSwKLSAgICB7 ICJwYXJhbGxlbCIsIDEsIFFFTVVfT1BUSU9OX3BhcmFsbGVsIH0sCisgICAg eyAiZWNociIsIEhBU19BUkcsIFFFTVVfT1BUSU9OX2VjaHIgfSwKKyAgICB7 ICJtb25pdG9yIiwgSEFTX0FSRywgUUVNVV9PUFRJT05fbW9uaXRvciB9LAor ICAgIHsgInNlcmlhbCIsIEhBU19BUkcsIFFFTVVfT1BUSU9OX3NlcmlhbCB9 LAorICAgIHsgInBhcmFsbGVsIiwgSEFTX0FSRywgUUVNVV9PUFRJT05fcGFy YWxsZWwgfSwKICAgICB7ICJsb2Fkdm0iLCBIQVNfQVJHLCBRRU1VX09QVElP Tl9sb2Fkdm0gfSwKICAgICB7ICJmdWxsLXNjcmVlbiIsIDAsIFFFTVVfT1BU SU9OX2Z1bGxfc2NyZWVuIH0sCiAjaWZkZWYgQ09ORklHX1NETAo= --0-1255978296-1182454711=:11946--