diff options
author | katherine <ageha@airen-no-jikken.icu> | 2019-07-10 20:24:08 -0700 |
---|---|---|
committer | katherine <ageha@airen-no-jikken.icu> | 2019-07-10 20:24:08 -0700 |
commit | 06cb82a8ccc3587dff728321dff5416b18090483 (patch) | |
tree | 95dc02df244856b5ede95a3a1a44ea756e850203 /src/tok.c | |
parent | 34271c906a2de43a68d2fa764d31e6f5b2c3299f (diff) | |
download | confconf-06cb82a8ccc3587dff728321dff5416b18090483.tar.gz |
implement deftype get
Diffstat (limited to 'src/tok.c')
-rw-r--r-- | src/tok.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -236,6 +236,8 @@ static void sub_match_header(void) void tok_reset(FILE *f) { + assert(f != NULL); + curf = f; curtok.line = 1; curtok.col = 1; @@ -252,7 +254,7 @@ struct tok_s tok_get(void) if (unget) { unget = false; return curtok; - } + } curtok.col += vlen; vlen = 0; |