Source-Changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

Re: CVS commit: basesrc



cgd%netbsd.org@localhost (Chris G. Demetriou) writes:

> indeed, it really should be defined(__NetBSD__) && defined(__RCSID)
> so the yacc output files will be usable on old versions of NetBSD if
> need be!

I had a severe brain-o when I made the first change.  :)

I made the change to the compiled source, not the yacc output part.
I've undone the __RCSID change, and added things in the right place:

@@ -68,9 +66,11 @@
     "#if 0",
     "static char yysccsid[] = \"@(#)yaccpar    1.9 (Berkeley) 02/21/93\";",
     "#else",
+    "#if defined(__NetBSD__) && defined(__IDSTRING)",
     "__IDSTRING(yyrcsid, \"$NetBSD: skeleton.c,v 1.16 1999/10/29 16:35:46 
explorer Exp $\");",
-    "#endif",
-    "#endif",
+    "#endif /* __NetBSD__ && __IDSTRING */",
+    "#endif /* 0 */",
+    "#endif /* lint */",
     "#include <stdlib.h>",
     "#define YYBYACC 1",
     "#define YYMAJOR 1",



Home | Main Index | Thread Index | Old Index