include the right header and cast to avoid warnings
This commit is contained in:
parent
71f05fc2a4
commit
0ca8cd6f68
1 changed files with 6 additions and 5 deletions
|
@ -1,5 +1,6 @@
|
||||||
%{
|
%{
|
||||||
#include <stdio.h>
|
#include <stdio.h>
|
||||||
|
#include <string.h>
|
||||||
#include "yacc_parser.hh"
|
#include "yacc_parser.hh"
|
||||||
%}
|
%}
|
||||||
|
|
||||||
|
@ -47,16 +48,16 @@ showWorkspaceMenu |
|
||||||
stringChain |
|
stringChain |
|
||||||
keyChain |
|
keyChain |
|
||||||
numberChain |
|
numberChain |
|
||||||
cancel yylval = strdup(yytext); return ACTION;
|
cancel yylval = (int) strdup(yytext); return ACTION;
|
||||||
Mod1 |
|
Mod1 |
|
||||||
Mod2 |
|
Mod2 |
|
||||||
Mod3 |
|
Mod3 |
|
||||||
Mod4 |
|
Mod4 |
|
||||||
Control |
|
Control |
|
||||||
Shift yylval = strdup(yytext); return BINDING;
|
Shift yylval = (int) strdup(yytext); return BINDING;
|
||||||
[0-9]+ yylval = strdup(yytext); return NUMBER;
|
[0-9]+ yylval = (int) strdup(yytext); return NUMBER;
|
||||||
\".+\" yylval = strdup(yytext); return QUOTES;
|
\".+\" yylval = (int) strdup(yytext); return QUOTES;
|
||||||
[a-zA-Z_0-9]+ yylval = strdup(yytext); return WORD;
|
[a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD;
|
||||||
#.+\n /* ignore */
|
#.+\n /* ignore */
|
||||||
\n /* ignore */
|
\n /* ignore */
|
||||||
[ \t]+ /* */
|
[ \t]+ /* */
|
||||||
|
|
Loading…
Reference in a new issue