From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from eggs.gnu.org ([140.186.70.92]:60688) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvokc-00020L-20 for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:56 -0500 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1Rvoka-00074F-Jx for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:49 -0500 Received: from e06smtp10.uk.ibm.com ([195.75.94.106]:56391) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1Rvoka-00073t-05 for qemu-devel@nongnu.org; Fri, 10 Feb 2012 06:34:48 -0500 Received: from /spool/local by e06smtp10.uk.ibm.com with IBM ESMTP SMTP Gateway: Authorized Use Only! Violators will be prosecuted for from ; Fri, 10 Feb 2012 11:34:46 -0000 Received: from d06av08.portsmouth.uk.ibm.com (d06av08.portsmouth.uk.ibm.com [9.149.37.249]) by d06nrmr1806.portsmouth.uk.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id q1ABYKIc2895888 for ; Fri, 10 Feb 2012 11:34:20 GMT Received: from d06av08.portsmouth.uk.ibm.com (loopback [127.0.0.1]) by d06av08.portsmouth.uk.ibm.com (8.14.4/8.13.1/NCO v10.0 AVout) with ESMTP id q1ABYJd2027464 for ; Fri, 10 Feb 2012 11:34:19 GMT From: Stefan Hajnoczi Date: Fri, 10 Feb 2012 11:34:06 +0000 Message-Id: <1328873653-10554-3-git-send-email-stefanha@linux.vnet.ibm.com> In-Reply-To: <1328873653-10554-1-git-send-email-stefanha@linux.vnet.ibm.com> References: <1328873653-10554-1-git-send-email-stefanha@linux.vnet.ibm.com> Subject: [Qemu-devel] [PATCH 2/9] CODING_STYLE: Clarify style for enum and function type names List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , To: Anthony Liguori Cc: Peter Maydell , qemu-devel@nongnu.org, Stefan Hajnoczi From: Peter Maydell Clarify that enum type names and function type names should follow the CamelCase style used for structured type names. Signed-off-by: Peter Maydell Signed-off-by: Stefan Hajnoczi --- CODING_STYLE | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/CODING_STYLE b/CODING_STYLE index 6e61c49..7c82d4d 100644 --- a/CODING_STYLE +++ b/CODING_STYLE @@ -44,7 +44,8 @@ Rationale: 3. Naming Variables are lower_case_with_underscores; easy to type and read. Structured -type names are in CamelCase; harder to type but standing out. Scalar type +type names are in CamelCase; harder to type but standing out. Enum type +names and function type names should also be in CamelCase. Scalar type names are lower_case_with_underscores_ending_with_a_t, like the POSIX uint64_t and family. Note that this last convention contradicts POSIX and is therefore likely to be changed. -- 1.7.8.3