From: ken Date: Sat, 17 Dec 2016 23:41:54 +0000 (-0800) Subject: struct name removed X-Git-Url: https://www.kengrimes.com/gitweb/?p=henge%2Fapc.git;a=commitdiff_plain;h=42c32d165d482ae57d2a6f7b8912e974e11acae2 struct name removed --- diff --git a/src/lexer_fsm.rl b/src/lexer_fsm.rl index 7b72e5d..bbbdf30 100644 --- a/src/lexer_fsm.rl +++ b/src/lexer_fsm.rl @@ -9,7 +9,6 @@ extern void lexer_pushtok(int, YYSTYPE); extern int lexer_lexmapfile(int, int); extern int ipower(int, int); extern int ttov(uint8_t*, int); -extern struct name* tton(const uint8_t*, int); int lexer_setdirection(uint8_t*, int); int lexer_lexstring(uint8_t*, int); @@ -32,7 +31,8 @@ int lexer_setstr(uint8_t*, int); action push_ref { PUSHTOK(REF, ttov, ref); } action push_val { PUSHTOK(NUM, ttov, val); } action push_name { printf("Lexer_lexstring:: action:push_name: from %s to %s\n", ts, p); - PUSHTOK(NAME, tton, name); + lexer_pushtok(NAME, yylval); + ntok++; } action push_map { printf("Lexer_lexstring:: action:push_map: pushing map token\n"); yylval.str = (uint8_t*) '~';