Received: from mailman by lists.gnu.org with tmda-scanned (Exim 4.43) id 1N15jN-0004lh-Ox for qemu-devel@nongnu.org; Thu, 22 Oct 2009 18:02:01 -0400 Received: from exim by lists.gnu.org with spam-scanned (Exim 4.43) id 1N15jL-0004jl-P5 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 18:02:00 -0400 Received: from [199.232.76.173] (port=49316 helo=monty-python.gnu.org) by lists.gnu.org with esmtp (Exim 4.43) id 1N15jL-0004jH-H8 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 18:01:59 -0400 Received: from hall.aurel32.net ([88.191.82.174]:57699) by monty-python.gnu.org with esmtps (TLS-1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.60) (envelope-from ) id 1N15jK-0001f8-S0 for qemu-devel@nongnu.org; Thu, 22 Oct 2009 18:01:59 -0400 Received: from [2002:52e8:2fb:1:21e:8cff:feb0:693b] (helo=volta.aurel32.net) by hall.aurel32.net with esmtpsa (TLS1.0:RSA_AES_256_CBC_SHA1:32) (Exim 4.69) (envelope-from ) id 1N15jI-0008RV-G3 for qemu-devel@nongnu.org; Fri, 23 Oct 2009 00:01:57 +0200 Received: from aurel32 by volta.aurel32.net with local (Exim 4.69) (envelope-from ) id 1N15jF-0000RH-Te for qemu-devel@nongnu.org; Fri, 23 Oct 2009 00:01:53 +0200 Date: Fri, 23 Oct 2009 00:01:53 +0200 From: Aurelien Jarno Message-ID: <20091022220153.GB10700@volta.aurel32.net> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Disposition: inline Subject: [Qemu-devel] CODING_STYLE and if blocks List-Id: qemu-devel.nongnu.org List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: qemu-devel@nongnu.org Hi all, I am currently reviewing the S390 patches which extensively use of code like: if (a == 5) printf("a was 5.\n"); else if (a == 6) printf("a was 6.\n"); else printf("a was something else entirely.\n"); It is something currently allowed by the CODING_STYLE document (there is no "indented statement"), but I am not fully comfortable with it. Should we accept such code? Should we fix CODING_STYLE? Cheers, Aurelien -- Aurelien Jarno GPG: 1024D/F1BCDB73 aurelien@aurel32.net http://www.aurel32.net