diff options
author | Tavian Barnes <tavianator@tavianator.com> | 2020-10-06 12:56:39 -0400 |
---|---|---|
committer | Tavian Barnes <tavianator@tavianator.com> | 2020-10-06 12:57:39 -0400 |
commit | 0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a (patch) | |
tree | 5b87c6ec4e5865890b76f4f5aa439b2ca8f27a36 /parse.c | |
parent | 1312165d6501c02406b33eba8a3daf78e8938b9a (diff) | |
download | bfs-0a0dc74b9103d757bf5c2cd2b8c14e5b825b232a.tar.xz |
printf: Adjust some calling conventions
Diffstat (limited to 'parse.c')
-rw-r--r-- | parse.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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; |