lex.c -> lex_init s/lex->line = 0/lex->line = 1/

This commit is contained in:
Dale Weiler 2012-04-28 16:31:30 -04:00
parent 37ff28a3b5
commit f697a5f999

2
lex.c
View file

@ -48,7 +48,7 @@ void lex_init(const char *file, lex_file **set) {
lex->size = lex->length; /* copy, this is never changed */
fseek(lex->file, 0, SEEK_SET);
lex->last = 0;
lex->line = 0;
lex->line = 1;
memset(lex->peek, 0, sizeof(lex->peek));
*set = lex;