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:
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) {
|
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) {
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue