summaryrefslogtreecommitdiffstats
path: root/parse.c
diff options
context:
space:
mode:
authorTavian Barnes <tavianator@tavianator.com>2020-10-06 12:56:39 -0400
committerTavian Barnes <tavianator@tavianator.com>2020-10-06 12:57:39 -0400
commit0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a (patch)
tree5b87c6ec4e5865890b76f4f5aa439b2ca8f27a36 /parse.c
parent1312165d6501c02406b33eba8a3daf78e8938b9a (diff)
downloadbfs-0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a.tar.xz
printf: Adjust some calling conventions
Diffstat (limited to 'parse.c')
-rw-r--r--parse.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/parse.c b/parse.c
index 5ce78c3..ef695de 100644
--- a/parse.c
+++ b/parse.c
@@ -110,7 +110,7 @@ void free_expr(struct expr *expr) {
free(expr->regex);
}
- free_bfs_printf(expr->printf);
+ bfs_printf_free(expr->printf);
free_bfs_exec(expr->execbuf);
free_expr(expr->lhs);
@@ -1272,7 +1272,7 @@ static struct expr *parse_fprintf(struct parser_state *state, int arg1, int arg2
goto fail;
}
- expr->printf = parse_bfs_printf(format, state->ctx);
+ expr->printf = bfs_printf_parse(state->ctx, format);
if (!expr->printf) {
goto fail;
}
@@ -2010,7 +2010,7 @@ static struct expr *parse_printf(struct parser_state *state, int arg1, int arg2)
init_print_expr(state, expr);
- expr->printf = parse_bfs_printf(expr->sdata, state->ctx);
+ expr->printf = bfs_printf_parse(state->ctx, expr->sdata);
if (!expr->printf) {
free_expr(expr);
return NULL;