From 11b6e0ce97ad1851e57491e1f7a70ee07b9d6c82 Mon Sep 17 00:00:00 2001 From: hyung-hwan Date: Sat, 2 May 2020 18:34:18 +0000 Subject: [PATCH] trivial change for code consistency --- hawk/lib/parse.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/hawk/lib/parse.c b/hawk/lib/parse.c index 02f84f1e..61bc0a96 100644 --- a/hawk/lib/parse.c +++ b/hawk/lib/parse.c @@ -564,23 +564,23 @@ static int parse (hawk_t* hawk) adjust_static_globals (hawk); /* get the first character and the first token */ - if (get_char (hawk) <= -1 || get_token (hawk)) goto oops; + if (get_char(hawk) <= -1 || get_token(hawk)) goto oops; while (1) { while (MATCH(hawk,TOK_NEWLINE)) { - if (get_token (hawk) <= -1) goto oops; + if (get_token(hawk) <= -1) goto oops; } if (MATCH(hawk,TOK_EOF)) break; - if (parse_progunit (hawk) <= -1) goto oops; + if (parse_progunit(hawk) <= -1) goto oops; } if (!(hawk->opt.trait & HAWK_IMPLICIT)) { /* ensure that all functions called are defined in the EXPLICIT-only mode. - * o therwise, the error detection will get delay until run-time. */ + * otherwise, the error detection will get delay until run-time. */ hawk_htb_pair_t* p; hawk_htb_itr_t itr; @@ -1244,7 +1244,7 @@ static int parse_progunit (hawk_t* hawk) if (parse_end(hawk) == HAWK_NULL) return -1; /* skip a semicolon after an action block if any */ - if (MATCH(hawk,TOK_SEMICOLON) && get_token (hawk) <= -1) return -1; + if (MATCH(hawk,TOK_SEMICOLON) && get_token(hawk) <= -1) return -1; } else if (MATCH(hawk, TOK_LBRACE)) { @@ -1291,7 +1291,7 @@ static int parse_progunit (hawk_t* hawk) if (MATCH(hawk,TOK_COMMA)) { - if (get_token (hawk) <= -1) + if (get_token(hawk) <= -1) { hawk_clrpt (hawk, ptn); return -1;