1
0
Fork 0
mirror of https://github.com/pnx/m16vm synced 2026-06-16 03:44:55 +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) {
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;
if (comment)
continue;
if (comment)
continue;
if (c == ';') {
comment = 1;
} else if (!lexer_is_space(c)) {
break;
}
}
return c;
}
if (c == ';') {
comment = 1;
} else if (!lexer_is_space(c)) {
break;
}
}
return c;
}
static int read_number(FILE *fp, int *out) {