Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1755412AbYC2SYg (ORCPT ); Sat, 29 Mar 2008 14:24:36 -0400 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1753113AbYC2SY3 (ORCPT ); Sat, 29 Mar 2008 14:24:29 -0400 Received: from sovereign.computergmbh.de ([85.214.69.204]:50497 "EHLO sovereign.computergmbh.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752429AbYC2SY2 (ORCPT ); Sat, 29 Mar 2008 14:24:28 -0400 Date: Sat, 29 Mar 2008 19:24:27 +0100 (CET) From: Jan Engelhardt To: Andreas Schwab cc: Mikael Pettersson , Jacek Luczak , linux-kernel@vger.kernel.org Subject: Re: Comma at end of enum lists In-Reply-To: Message-ID: References: <47EE75A0.8070705@gmail.com> <18414.31274.514325.238985@harpo.it.uu.se> User-Agent: Alpine 1.10 (LNX 962 2008-03-14) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII; format=flowed Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 748 Lines: 22 On Saturday 2008-03-29 19:13, Andreas Schwab wrote: >> In a language with strict a comma-as-separator rule you can >> get this benefit by placing the comma before new items rather >> than after existing items: >> >> enum { FOO >> ,FIE >> ,FUM >> }; >> >> but luckily C doesn't need this perversion. > > Only since C99 (but GNU C never needed it either). C had this for much longer than 99. Borland Turbo C from around 1990 (which you can expect to be C89 if you have luck) also allows , at the end. -- To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/