This one bit me today

Tom Neff tneff at bfmny0.UU.NET
Sat Oct 28 02:00:06 AEST 1989


>would generate an error. The best solution would be to have /* /* */
>generate a warning.

Again -- this is a common usage in config.h type files.

	/* #define BSD4_3  /*  for BSD 4.3 systems  */
	#define USG  /*  for System V  */
	/* #define V7  /*  for old fogey systems  */
	/* #define DOS /*  for young whippersnapper systems  */

Nested comments are another solution in search of a problem.
-- 
"The country couldn't run without Prohibition.       ][  Tom Neff
 That is the industrial fact." -- Henry Ford, 1929   ][  tneff at bfmny0.UU.NET



More information about the Comp.lang.c mailing list