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:
parent
040caee7f4
commit
c9f0d8b616
1 changed files with 13 additions and 13 deletions
26
as/lexer.c
26
as/lexer.c
|
|
@ -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) {
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue