__STDC__

Norman Diamond diamond at diamond.csl.sony.junet
Thu Jul 6 15:09:57 AEST 1989


In article <12378 at bloom-beacon.MIT.EDU> scs at adam.pika.mit.edu (Steve Summit) writes:

-	if(strcmp(name, "__STDC__") == 0 || strcmp(name, "__LINE__") == 0 ...)
-		{
-		error("illegal re#definition of %s", name);
-		return ERROR;
-		}
-
-in the preprocessor.

Maybe just if (strncmp(name, "__", 2)) ...
After all, the name subspace beginning with "__" belongs to the
implementation.

--
Norman Diamond, Sony Computer Science Lab (diamond%csl.sony.jp at relay.cs.net)
 The above opinions are claimed by your machine's init process (pid 1), after
 being disowned and orphaned.  However, if you see this at Waterloo, Stanford,
 or Anterior, then their administrators must have approved of these opinions.



More information about the Comp.std.c mailing list