aboutsummaryrefslogtreecommitdiffstats
path: root/dm_parser.ragel
diff options
context:
space:
mode:
Diffstat (limited to 'dm_parser.ragel')
-rw-r--r--dm_parser.ragel6
1 files changed, 1 insertions, 5 deletions
diff --git a/dm_parser.ragel b/dm_parser.ragel
index 80c873b..735b2fd 100644
--- a/dm_parser.ragel
+++ b/dm_parser.ragel
@@ -66,7 +66,7 @@ int parse_dm( token_list *tl, const char *str )
{
static uint8_t cs;
const int stacksize = 10;
- int res=0, *top=0, *stack=NULL, act=0;
+ int res=0, *stack=NULL, act=0;
stack = malloc( sizeof(stack)*stacksize );
char *p=(char *)str, *pe = (char *)str + strlen( str ), *eof=NULL;
char *ts, *te = 0;
@@ -74,10 +74,6 @@ int parse_dm( token_list *tl, const char *str )
/*
variables used in state machine
*/
- char *token_s=NULL, *token_e=NULL;
- char *value_s=NULL, *value_e=NULL;
- int token_type=0;
- int dm_current_tok = TOK_NONE;
%%write init;
%%write exec;