Source-Changes-HG archive

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

[src/netbsd-1-5]: src/usr.bin/yacc Pull up revision 1.21 (requested by windsor):



details:   https://anonhg.NetBSD.org/src/rev/159bb3deb2c8
branches:  netbsd-1-5
changeset: 492733:159bb3deb2c8
user:      he <he%NetBSD.org@localhost>
date:      Sat Feb 09 18:15:14 2002 +0000

description:
Pull up revision 1.21 (requested by windsor):
  Move yyparse prototype higher up, so that it is available to
  embedded C code in the .y file.

diffstat:

 usr.bin/yacc/skeleton.c |  8 ++++----
 1 files changed, 4 insertions(+), 4 deletions(-)

diffs (43 lines):

diff -r e96feeb6b225 -r 159bb3deb2c8 usr.bin/yacc/skeleton.c
--- a/usr.bin/yacc/skeleton.c   Sat Feb 09 18:09:45 2002 +0000
+++ b/usr.bin/yacc/skeleton.c   Sat Feb 09 18:15:14 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skeleton.c,v 1.18 2000/06/07 23:54:17 explorer Exp $   */
+/*     $NetBSD: skeleton.c,v 1.18.2.1 2002/02/09 18:15:14 he Exp $     */
 
 /*
  * Copyright (c) 1989 The Regents of the University of California.
@@ -41,7 +41,7 @@
 #if 0
 static char sccsid[] = "@(#)skeleton.c 5.8 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: skeleton.c,v 1.18 2000/06/07 23:54:17 explorer Exp $");
+__RCSID("$NetBSD: skeleton.c,v 1.18.2.1 2002/02/09 18:15:14 he Exp $");
 #endif /* 0 */
 #endif /* not lint */
 
@@ -67,7 +67,7 @@
     "static char yysccsid[] = \"@(#)yaccpar    1.9 (Berkeley) 02/21/93\";",
     "#else",
     "#if defined(__NetBSD__) && defined(__IDSTRING)",
-    "__IDSTRING(yyrcsid, \"$NetBSD: skeleton.c,v 1.18 2000/06/07 23:54:17 explorer Exp $\");",
+    "__IDSTRING(yyrcsid, \"$NetBSD: skeleton.c,v 1.18.2.1 2002/02/09 18:15:14 he Exp $\");",
     "#endif /* __NetBSD__ && __IDSTRING */",
     "#endif /* 0 */",
     "#endif /* lint */",
@@ -129,6 +129,7 @@
     "short *yysslim;",
     "YYSTYPE *yyvs;",
     "int yystacksize;",
+    "int yyparse __P((void));",
     0
 };
 
@@ -136,7 +137,6 @@
 char *body[] =
 {
     "/* allocate initial stack or double stack size, up to YYMAXDEPTH */",
-    "int yyparse __P((void));",
     "static int yygrowstack __P((void));",
     "static int yygrowstack()",
     "{",



Home | Main Index | Thread Index | Old Index