diff options
author | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 01:21:34 +0000 |
---|---|---|
committer | tma <tma@edf5b092-35ff-0310-97b2-ce42778d08ea> | 2005-10-04 01:21:34 +0000 |
commit | 45d6a88841f0db650d615522b1f6594ea72ceb7e (patch) | |
tree | dec4fac8ff8638b6a0d8749d52e66d0207eb161b /lcc/lburg/gram.c | |
parent | 6d9be1722b2221cae39b389ce218e93d73d99335 (diff) | |
download | ioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.tar.gz ioquake3-aero-45d6a88841f0db650d615522b1f6594ea72ceb7e.zip |
* 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
Diffstat (limited to 'lcc/lburg/gram.c')
-rw-r--r-- | lcc/lburg/gram.c | 12 |
1 files changed, 7 insertions, 5 deletions
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 <stdio.h> #endif -#ifdef __cplusplus +//#ifdef __cplusplus TA <tim@ngus.net> stdlib.h applies to C too #include <stdlib.h> /* for malloc/realloc/free */ -#endif +//#endif #line 2 "lburg/gram.y" #include <stdio.h> #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) |