diff options
author | Paweł Redman <pawel.redman@gmail.com> | 2016-12-20 10:54:44 +0100 |
---|---|---|
committer | Paweł Redman <pawel.redman@gmail.com> | 2016-12-20 10:54:44 +0100 |
commit | 28aafa709ffa40e26b4cec71171b46b05f6e28aa (patch) | |
tree | 6d4f96e4d549fe1257c0e9471227d0ac1c49ef03 /src/common.h | |
parent | e68c00d7e00a330be5ca6cf249ae3476a06bfa2f (diff) |
Fix an opened file leak.
Diffstat (limited to 'src/common.h')
-rw-r--r-- | src/common.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/common.h b/src/common.h index 7420485..0003d43 100644 --- a/src/common.h +++ b/src/common.h @@ -74,6 +74,7 @@ typedef struct { } lexer_state_t; int lexer_open(lexer_state_t *ls, const char *path, vstr_t *token); +void lexer_close(lexer_state_t *ls); int lexer_get_token(lexer_state_t *ls); int lexer_assert(lexer_state_t *ls, const char *match, const char *desc); int lexer_assert_or_eof(lexer_state_t *ls, const char *match, const char *desc); |