From c9f0d8b616bf772806f0d440782155abaf0b62bb Mon Sep 17 00:00:00 2001 From: Henrik Hautakoski Date: Fri, 29 Mar 2019 16:03:57 +0100 Subject: [PATCH] as/lexer.c: minor style fix. --- as/lexer.c | 26 +++++++++++++------------- 1 file changed, 13 insertions(+), 13 deletions(-) diff --git a/as/lexer.c b/as/lexer.c index 51d95c9..b844ca8 100644 --- a/as/lexer.c +++ b/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) {