Source-Changes-HG archive

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

[src/trunk]: src/usr.bin/yacc move yyparse prototype higher up, so that it is...



details:   https://anonhg.NetBSD.org/src/rev/cd06532766b6
branches:  trunk
changeset: 503287:cd06532766b6
user:      christos <christos%NetBSD.org@localhost>
date:      Sun Feb 04 17:45:06 2001 +0000

description:
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 b5da1034f598 -r cd06532766b6 usr.bin/yacc/skeleton.c
--- a/usr.bin/yacc/skeleton.c   Sun Feb 04 17:38:10 2001 +0000
+++ b/usr.bin/yacc/skeleton.c   Sun Feb 04 17:45:06 2001 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: skeleton.c,v 1.20 2001/01/23 22:31:40 jdolecek Exp $   */
+/*     $NetBSD: skeleton.c,v 1.21 2001/02/04 17:45:06 christos 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.20 2001/01/23 22:31:40 jdolecek Exp $");
+__RCSID("$NetBSD: skeleton.c,v 1.21 2001/02/04 17:45:06 christos 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.20 2001/01/23 22:31:40 jdolecek Exp $\");",
+    "__IDSTRING(yyrcsid, \"$NetBSD: skeleton.c,v 1.21 2001/02/04 17:45:06 christos 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 @@
 const char * const 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