aboutsummaryrefslogtreecommitdiff
path: root/src/debug.c
diff options
context:
space:
mode:
authorKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 14:40:06 +0300
committerKimplul <kimi.h.kuparinen@gmail.com>2026-05-01 14:40:06 +0300
commit7a68d1106b37e16c24e58bc77ce49fc6beadce9c (patch)
treeb0a3bb0b0124294b213cdfd3ae7b214bc32b19f5 /src/debug.c
parent48cd04e1a57f076287fb6ecdd0a4236e191ff7d3 (diff)
downloadfwd-7a68d1106b37e16c24e58bc77ce49fc6beadce9c.tar.gz
fwd-7a68d1106b37e16c24e58bc77ce49fc6beadce9c.zip
run formatter
+ Should really get this done automatically somehow
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);