summaryrefslogtreecommitdiff
path: root/lex.h
diff options
context:
space:
mode:
authorDavid Phillips <david@sighup.nz>2018-08-06 01:30:09 +1200
committerDavid Phillips <david@sighup.nz>2018-08-06 01:30:09 +1200
commite4e292fce970257a7ee09f547cb905794af1a8d4 (patch)
treeb3060d84843b1bb56dab7c6013d226d5d37ae653 /lex.h
parent948160bed032bbfe174fb7b8e25a2b772e6c3369 (diff)
downloadhence-e4e292fce970257a7ee09f547cb905794af1a8d4.tar.xz
lex: add filename to error
Brings lexing error message format more into line with parser
Diffstat (limited to 'lex.h')
-rw-r--r--lex.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/lex.h b/lex.h
index 9a1be52..ee2795f 100644
--- a/lex.h
+++ b/lex.h
@@ -5,7 +5,7 @@
#include "token.h"
-struct token* lex_file(FILE*);
+struct token* lex_file(const char *, FILE*);
const char *get_token_description(enum TOKEN_TYPE);
#endif