aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/debug.c')
-rw-r--r--src/debug.c8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/debug.c b/src/debug.c
index 538fdfe..2426277 100644
--- a/src/debug.c
+++ b/src/debug.c
@@ -74,7 +74,8 @@ static void _issue(struct src_issue issue, const char *fmt, va_list args)
{
/* get start and end of current line in buffer */
const char *line_start = find_lineno(issue.fctx.fbuf,
- (size_t)issue.loc.first_line);
+ (size_t)issue.loc.first_line
+ );
const char *line_end = strchr(line_start, '\n');
if (!line_end)
line_end = strchr(line_start, 0);
@@ -84,7 +85,8 @@ static void _issue(struct src_issue issue, const char *fmt, va_list args)
fprintf(stderr, "%s:%i:%i: %s: ", issue.fctx.fname,
issue.loc.first_line,
issue.loc.first_col,
- issue_level_str(issue.level));
+ issue_level_str(issue.level)
+ );
vfprintf(stderr, fmt, args);
fputc('\n', stderr);
@@ -135,7 +137,7 @@ void semantic_error(struct scope *scope, struct ast *node,
}
void type_error(struct scope *scope, struct type *type,
- const char *fmt, ...)
+ const char *fmt, ...)
{
va_list args;
va_start(args, fmt);