aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/LuaSL/src/LuaSL_lexer.l
diff options
context:
space:
mode:
authorDavid Walter Seikel2012-01-20 19:01:36 +1000
committerDavid Walter Seikel2012-01-20 19:01:36 +1000
commit5693cb0af6136233fceb6b2d777f201959df6668 (patch)
tree34e361d6cf1c3aa75cb951b4d58b7f2ff3a4ea7e /LuaSL/src/LuaSL_lexer.l
parentClean up parentesis and typecast a bit. (diff)
downloadSledjHamr-5693cb0af6136233fceb6b2d777f201959df6668.zip
SledjHamr-5693cb0af6136233fceb6b2d777f201959df6668.tar.gz
SledjHamr-5693cb0af6136233fceb6b2d777f201959df6668.tar.bz2
SledjHamr-5693cb0af6136233fceb6b2d777f201959df6668.tar.xz
Allow to compile out the diff check, and the ignore text stuff as that's it's only purpose.
Diffstat (limited to '')
-rw-r--r--LuaSL/src/LuaSL_lexer.l2
1 files changed, 2 insertions, 0 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l
index 3270aff..e3ef214 100644
--- a/LuaSL/src/LuaSL_lexer.l
+++ b/LuaSL/src/LuaSL_lexer.l
@@ -133,6 +133,7 @@ int common(YYSTYPE *lval, char *text, int len, LuaSL_compiler *compiler, boolean
133 compiler->column++; 133 compiler->column++;
134 } 134 }
135 135
136#ifdef LUASL_DIFF_CHECK
136 if (checkIgnorable) 137 if (checkIgnorable)
137 { 138 {
138 lval->ignorableText = compiler->ignorableText; 139 lval->ignorableText = compiler->ignorableText;
@@ -140,6 +141,7 @@ int common(YYSTYPE *lval, char *text, int len, LuaSL_compiler *compiler, boolean
140 } 141 }
141 else 142 else
142 eina_strbuf_append_length(compiler->ignorableText, text, len); 143 eina_strbuf_append_length(compiler->ignorableText, text, len);
144#endif
143 145
144 return type; 146 return type;
145} 147}