From ab0517cc4a6077c756d03c7c19311f5bd841d856 Mon Sep 17 00:00:00 2001 From: mrb0nk500 Date: Thu, 17 Feb 2022 21:15:59 -0400 Subject: igen: Fixed some compilation errors, and warnings. --- igen/lexer.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'igen/lexer.h') diff --git a/igen/lexer.h b/igen/lexer.h index 0c5fea4..f4da3cd 100644 --- a/igen/lexer.h +++ b/igen/lexer.h @@ -10,6 +10,7 @@ typedef struct source source; typedef struct alt_stmt alt_stmt; typedef struct cond_stmt cond_stmt; typedef struct stmt stmt; +typedef void *(lex_func)(source *src, int dbg); enum stmt_type { STMT_NONE, @@ -32,7 +33,7 @@ enum cond_type { struct alt_stmt { int type; size_t offset; - void *(*lex)(source *src, int dbg); + lex_func *lex; }; struct cond_stmt { @@ -49,6 +50,7 @@ struct stmt { cond_stmt *cond_stmt; stmt *down; }; + whitespace wsp; stmt *next; }; -- cgit v1.2.3-13-gbd6f