From 45d6a88841f0db650d615522b1f6594ea72ceb7e Mon Sep 17 00:00:00 2001 From: tma Date: Tue, 4 Oct 2005 01:21:34 +0000 Subject: * Dewarninged the lcc and q3asm source * Removed traditional target platforms from the lcc build. This might break building lcc on Windows using nmake. Submit patches or be quiet :p * Default target for lcc is now bytecode, so -Wf-target=bytecode is no longer needed on the lcc command line git-svn-id: svn://svn.icculus.org/quake3/trunk@132 edf5b092-35ff-0310-97b2-ce42778d08ea --- lcc/lburg/gram.c | 12 +++++++----- 1 file changed, 7 insertions(+), 5 deletions(-) (limited to 'lcc/lburg') diff --git a/lcc/lburg/gram.c b/lcc/lburg/gram.c index 6e1f6e4..a1cc890 100644 --- a/lcc/lburg/gram.c +++ b/lcc/lburg/gram.c @@ -18,9 +18,9 @@ YYCONST static char yysccsid[] = "@(#)yaccpar 1.8 (Berkeley +Cygnus.28) 01/20/91 #ifndef YYDONT_INCLUDE_STDIO #include #endif -#ifdef __cplusplus +//#ifdef __cplusplus TA stdlib.h applies to C too #include /* for malloc/realloc/free */ -#endif +//#endif #line 2 "lburg/gram.y" #include #include "lburg.h" @@ -227,7 +227,9 @@ inline #endif yygrow () { +#if YYDEBUG int old_stacksize = yystacksize; +#endif short *new_yyss; YYSTYPE *new_yyvs; @@ -469,7 +471,7 @@ yypush: *++yyvsp = yyval; yyloop: - if (yyn = yydefred[yystate]) goto yyreduce; + if ((yyn = yydefred[yystate])) goto yyreduce; yyn = yysindex[yystate]; if (yychar < 0) { @@ -509,13 +511,13 @@ yyloop: if (yyerrflag) goto yyinrecovery; #ifdef lint goto yynewerror; -#endif yynewerror: +#endif yyerror("syntax error"); #ifdef lint goto yyerrlab; -#endif yyerrlab: +#endif ++yynerrs; yyinrecovery: if (yyerrflag < 3) -- cgit v1.2.3