diff options
author | David Walter Seikel | 2012-01-17 14:15:07 +1000 |
---|---|---|
committer | David Walter Seikel | 2012-01-17 14:15:07 +1000 |
commit | f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97 (patch) | |
tree | 5397eb344c6d6ac64071539b59dca5093a8fefc9 /LuaSL/src/LuaSL_lexer.l | |
parent | Use stringshare, and const. (diff) | |
download | SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.zip SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.gz SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.bz2 SledjHamr-f45e1dde5cc9eb67a7891fae5ebe8b38dcef0c97.tar.xz |
Only need one of each in the value union.
Diffstat (limited to 'LuaSL/src/LuaSL_lexer.l')
-rw-r--r-- | LuaSL/src/LuaSL_lexer.l | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/LuaSL/src/LuaSL_lexer.l b/LuaSL/src/LuaSL_lexer.l index 68d0b43..9c90ed5 100644 --- a/LuaSL/src/LuaSL_lexer.l +++ b/LuaSL/src/LuaSL_lexer.l | |||
@@ -109,7 +109,7 @@ STRING \"(\\.|[^\\"\n])*\" | |||
109 | <<EOF>> { return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_SCRIPT); } | 109 | <<EOF>> { return common(yylval, yytext, yyleng, yyextra, TRUE, LSL_SCRIPT); } |
110 | 110 | ||
111 | /* Everything else */ | 111 | /* Everything else */ |
112 | . %{ printf(" unexpected character.\n"); yylval->value.unknownValue = eina_stringshare_add_length(yytext, yyleng); common(yylval, yytext, yyleng, yyextra, TRUE, LSL_UNKNOWN); %} | 112 | . %{ printf(" unexpected character.\n"); yylval->value.stringValue = eina_stringshare_add_length(yytext, yyleng); common(yylval, yytext, yyleng, yyextra, TRUE, LSL_UNKNOWN); %} |
113 | 113 | ||
114 | %% | 114 | %% |
115 | 115 | ||