diff options
author | David Walter Seikel | 2012-01-12 05:05:03 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-12 05:05:03 +1000 |
commit | d343ceea759a437e9fd0b506f03046318ce9e1fe (patch) | |
tree | 175ef12855babde69e922c9d78d3d2567a019801 /LuaSL/src/LuaSL_lexer.l | |
parent | Some general cleanup. (diff) | |
download | SledjHamr-d343ceea759a437e9fd0b506f03046318ce9e1fe.zip SledjHamr-d343ceea759a437e9fd0b506f03046318ce9e1fe.tar.gz SledjHamr-d343ceea759a437e9fd0b506f03046318ce9e1fe.tar.bz2 SledjHamr-d343ceea759a437e9fd0b506f03046318ce9e1fe.tar.xz |
More clean up.
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-rw-r--r-- | LuaSL/src/LuaSL_lexer.l | 5 |
1 files changed, 1 insertions, 4 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index ddcb520..50f2624 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l | |||
@@ -107,6 +107,7 @@ IDENTIFIER [[:alpha:]](_|[[:alpha:]]|[[:digit:]])* | |||
107 | 107 | ||
108 | %% | 108 | %% |
109 | 109 | ||
110 | // TODO - this is not reentrant, should make it so. | ||
110 | static char *ignorableText = NULL; | 111 | static char *ignorableText = NULL; |
111 | static int column = 0; | 112 | static int column = 0; |
112 | static int line = 0; | 113 | static int line = 0; |
@@ -149,10 +150,6 @@ int common(YYSTYPE *lval, char *text, boolean checkIgnorable, int type) | |||
149 | ignorableText = strdup(text); | 150 | ignorableText = strdup(text); |
150 | } | 151 | } |
151 | 152 | ||
152 | #ifdef LUASL_DEBUG | ||
153 | printf ("******************************common(%s, \"%s\", , %d) %04d, %04d\n", lval->token->token, text, type, line, column); | ||
154 | #endif | ||
155 | |||
156 | return type; | 153 | return type; |
157 | } | 154 | } |
158 | 155 | ||