aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-12 05:05:03 +1000
committerDavid Walter Seikel2012-01-12 05:05:03 +1000
commitd343ceea759a437e9fd0b506f03046318ce9e1fe (patch)
tree175ef12855babde69e922c9d78d3d2567a019801 /LuaSL/src/LuaSL_lexer.l
parentSome general cleanup. (diff)
downloadSledjHamr-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.l5
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.
110static char *ignorableText = NULL; 111static char *ignorableText = NULL;
111static int column = 0; 112static int column = 0;
112static int line = 0; 113static 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