Subject: Re: CVS commit: basesrc
To: Chris G. Demetriou <cgd@netbsd.org>
From: Michael Graff <explorer@flame.org>
List: source-changes
Date: 10/29/1999 09:42:00
cgd@netbsd.org (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",