diff options
author | David Walter Seikel | 2012-01-17 13:51:58 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 13:51:58 +1000 |
commit | 9e427361cf6e3e684a37c1947cc4771e52b9e6bc (patch) | |
tree | 78a3f0335e35fd49c277f55188908eeee4836d03 | |
parent | Should point to the start of the symbol, not the end. (diff) | |
download | SledjHamr-9e427361cf6e3e684a37c1947cc4771e52b9e6bc.zip SledjHamr-9e427361cf6e3e684a37c1947cc4771e52b9e6bc.tar.gz SledjHamr-9e427361cf6e3e684a37c1947cc4771e52b9e6bc.tar.bz2 SledjHamr-9e427361cf6e3e684a37c1947cc4771e52b9e6bc.tar.xz |
Remove unused debug variable.
-rw-r--r-- | LuaSL/src/LuaSL_LSL_tree.h | 1 | ||||
-rw-r--r-- | LuaSL/src/LuaSL_compile.c | 14 |
2 files changed, 2 insertions, 13 deletions
diff --git a/LuaSL/src/LuaSL_LSL_tree.h b/LuaSL/src/LuaSL_LSL_tree.h index b73d3ac..f03ff1f 100644 --- a/LuaSL/src/LuaSL_LSL_tree.h +++ b/LuaSL/src/LuaSL_LSL_tree.h | |||
@@ -23,7 +23,6 @@ | |||
23 | 23 | ||
24 | #define YYERRCODE 256 | 24 | #define YYERRCODE 256 |
25 | #define YYDEBUG 1 | 25 | #define YYDEBUG 1 |
26 | extern int yydebug; | ||
27 | 26 | ||
28 | 27 | ||
29 | // http://w-hat.com/stackdepth is a useful discussion about some aspects of the LL parser. | 28 | // http://w-hat.com/stackdepth is a useful discussion about some aspects of the LL parser. |
diff --git a/LuaSL/src/LuaSL_compile.c b/LuaSL/src/LuaSL_compile.c index 583f940..523b9c3 100644 --- a/LuaSL/src/LuaSL_compile.c +++ b/LuaSL/src/LuaSL_compile.c | |||
@@ -970,18 +970,13 @@ Eina_Bool compileLSL(gameGlobals *game, char *script) | |||
970 | compiler.column = 1; | 970 | compiler.column = 1; |
971 | compiler.line = 1; | 971 | compiler.line = 1; |
972 | 972 | ||
973 | #ifdef LUASL_DEBUG | ||
974 | // yydebug= 5; | ||
975 | #endif | ||
976 | if (yylex_init_extra(&compiler, &(compiler.scanner))) | 973 | if (yylex_init_extra(&compiler, &(compiler.scanner))) |
977 | return result; | 974 | return result; |
978 | #ifdef LUASL_DEBUG | 975 | #ifdef LUASL_DEBUG |
979 | yyset_debug(1, compiler.scanner); | 976 | yyset_debug(1, compiler.scanner); |
980 | #endif | ||
981 | yyset_in(compiler.file, compiler.scanner); | ||
982 | #ifdef LUASL_DEBUG | ||
983 | ParseTrace(stdout, "LSL_lemon "); | 977 | ParseTrace(stdout, "LSL_lemon "); |
984 | #endif | 978 | #endif |
979 | yyset_in(compiler.file, compiler.scanner); | ||
985 | // on EOF yylex will return 0 | 980 | // on EOF yylex will return 0 |
986 | while((yv = yylex(compiler.lval, compiler.scanner)) != 0) | 981 | while((yv = yylex(compiler.lval, compiler.scanner)) != 0) |
987 | { | 982 | { |
@@ -1113,18 +1108,13 @@ int main(int argc, char **argv) | |||
1113 | void *pParser = ParseAlloc(malloc); | 1108 | void *pParser = ParseAlloc(malloc); |
1114 | int yv; | 1109 | int yv; |
1115 | 1110 | ||
1116 | #ifdef LUASL_DEBUG | ||
1117 | // yydebug= 5; | ||
1118 | #endif | ||
1119 | if (yylex_init_extra(¶m, &(param.scanner))) | 1111 | if (yylex_init_extra(¶m, &(param.scanner))) |
1120 | return 1; | 1112 | return 1; |
1121 | #ifdef LUASL_DEBUG | 1113 | #ifdef LUASL_DEBUG |
1122 | yyset_debug(1, param.scanner); | 1114 | yyset_debug(1, param.scanner); |
1123 | #endif | ||
1124 | yyset_in(param.file, param.scanner); | ||
1125 | #ifdef LUASL_DEBUG | ||
1126 | ParseTrace(stdout, "LSL_lemon "); | 1115 | ParseTrace(stdout, "LSL_lemon "); |
1127 | #endif | 1116 | #endif |
1117 | yyset_in(param.file, param.scanner); | ||
1128 | // on EOF yylex will return 0 | 1118 | // on EOF yylex will return 0 |
1129 | while((yv = yylex(param.lval, param.scanner)) != 0) | 1119 | while((yv = yylex(param.lval, param.scanner)) != 0) |
1130 | { | 1120 | { |