diff options
| author | Dana Jansens <danakj@orodu.net> | 2002-08-07 01:45:13 +0000 |
|---|---|---|
| committer | Dana Jansens <danakj@orodu.net> | 2002-08-07 01:45:13 +0000 |
| commit | 0ca8cd6f68ac114124923d172ec7904fb3c14e47 (patch) | |
| tree | b26338217a67ebf8c6d674fbcf09156680ed5aa4 /util/epist | |
| parent | 71f05fc2a4bc536f5c096e7ca756cd539ead911d (diff) | |
include the right header and cast to avoid warnings
Diffstat (limited to 'util/epist')
| -rw-r--r-- | util/epist/epist.l | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/util/epist/epist.l b/util/epist/epist.l index 6e3914cb..5a96e39d 100644 --- a/util/epist/epist.l +++ b/util/epist/epist.l @@ -1,5 +1,6 @@ %{ #include <stdio.h> +#include <string.h> #include "yacc_parser.hh" %} @@ -47,16 +48,16 @@ showWorkspaceMenu | stringChain | keyChain | numberChain | -cancel yylval = strdup(yytext); return ACTION; +cancel yylval = (int) strdup(yytext); return ACTION; Mod1 | Mod2 | Mod3 | Mod4 | Control | -Shift yylval = strdup(yytext); return BINDING; -[0-9]+ yylval = strdup(yytext); return NUMBER; -\".+\" yylval = strdup(yytext); return QUOTES; -[a-zA-Z_0-9]+ yylval = strdup(yytext); return WORD; +Shift yylval = (int) strdup(yytext); return BINDING; +[0-9]+ yylval = (int) strdup(yytext); return NUMBER; +\".+\" yylval = (int) strdup(yytext); return QUOTES; +[a-zA-Z_0-9]+ yylval = (int) strdup(yytext); return WORD; #.+\n /* ignore */ \n /* ignore */ [ \t]+ /* */ |
