From mboxrd@z Thu Jan 1 00:00:00 1970 From: Detlef Vollmann Date: Wed, 17 Aug 2005 12:31:48 +0200 Subject: [U-Boot-Users] U-Boot Developer's Information References: <20050816215307.C793B352676@atlas.denx.de> Message-ID: <43031214.156E6D62@vollmann.ch> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Wolfgang Denk wrote: > > In message <200508160831.44688.bwaite@irobot.com> you wrote: > > > > a per-patch basis, We shoud remind ourselves that the // was adopted as a > > legal C comment when C99 was ratified. The // style comment can arguably be > > Nevertheless many existing toolchains throw warning messages, and I > see no reason to drop support of these older compilers. My experience is just the other way around: the following code throws an error for long long, but gives no warnings for //: #define CFG_CMD_KGDB 0x00000200ULL // kgdb #if (CFG_CMD_KGDB) #define LONG_LONG_WORKS 1 #endif Compiled with gcc version 2.95.2, and 'gcc -Wall -pedantic' As this is an excerpt from u-boot, I'm a bit surprised about your reasoning against '//'. It might be pretty hard to find a toolchain that compiles u-boot but throws a warning on '//'. Detlef -- Detlef Vollmann vollmann engineering gmbh Linux and C++ for Embedded Systems http://www.vollmann.ch/ Linux for PXA270 Colibri module: www.toradex.com/e/products.html