add mulitple variable declaration, with null default. add call

This commit is contained in:
2025-06-05 04:04:41 +01:00
parent 7b76b0d888
commit 61d8bc61c3
14 changed files with 186 additions and 111 deletions

View File

@@ -42,7 +42,7 @@ ParsedValue *parse_if(char *file, DArray *tokens,
token = darray_get(tokens, *index);
if (token->type != TOKEN_LPAREN) {
fprintf(stderr,
"%s:%u:%u error: expected '(' after if\n",
"%s:%zu:%zu error: expected '(' after if\n",
file, token->line, token->column);
exit(EXIT_FAILURE);
}
@@ -67,7 +67,7 @@ ParsedValue *parse_if(char *file, DArray *tokens,
if (token->type != TOKEN_RPAREN) {
fprintf(stderr,
"%s:%u:%u error: missing closing ')' in condition\n",
"%s:%zu:%zu error: missing closing ')' in condition\n",
file, token->line, token->column);
exit(EXIT_FAILURE);
}
@@ -82,7 +82,7 @@ ParsedValue *parse_if(char *file, DArray *tokens,
if (!parsed_content) {
fprintf(stderr,
"%s:%u:%u error: expected body after condition\n",
"%s:%zu:%zu error: expected body after condition\n",
file, token->line, token->column);
exit(EXIT_FAILURE);
}