1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-07-02 11:33:40 +02:00

as/lexer.c: minor style fix.

This commit is contained in:
Henrik Hautakoski 2019-03-29 16:03:57 +01:00
parent 040caee7f4
commit c9f0d8b616
No known key found for this signature in database
GPG key ID: 839F3A7EAFAEAFAA

View file

@ -49,24 +49,24 @@ static const struct opcode_ent opcode_table[] = {
static int read_next(struct lexer *lex) { static int read_next(struct lexer *lex) {
int c, comment = 0; int c, comment = 0;
while((c = fgetc(lex->fp)) != EOF) { while((c = fgetc(lex->fp)) != EOF) {
if (c == '\n') if (c == '\n')
break; break;
if (comment) if (comment)
continue; continue;
if (c == ';') { if (c == ';') {
comment = 1; comment = 1;
} else if (!lexer_is_space(c)) { } else if (!lexer_is_space(c)) {
break; break;
} }
} }
return c; return c;
} }
static int read_number(FILE *fp, int *out) { static int read_number(FILE *fp, int *out) {