diff options
author | Stefano Sabatini | 2013-03-05 13:46:57 +0100 |
---|---|---|
committer | Stefano Sabatini | 2013-04-10 13:11:27 +0200 |
commit | 8afcaaeb75bce383b14f35ce55b478ec7abd339b (patch) | |
tree | 25155ba42a5c65a4b4e03998766076e21801532c /libavutil/eval.c | |
parent | 0594ef0deab75ad1fdf92548b907079659ce50f5 (diff) |
lavu/eval: rename "new_eval_expr()" to "make_eval_expr()"
The new name is more semantically and stilistically consistent.
Diffstat (limited to 'libavutil/eval.c')
-rw-r--r-- | libavutil/eval.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/libavutil/eval.c b/libavutil/eval.c index 5a0454f124..3abc3e5a88 100644 --- a/libavutil/eval.c +++ b/libavutil/eval.c @@ -462,7 +462,7 @@ static int parse_primary(AVExpr **e, Parser *p) return 0; } -static AVExpr *new_eval_expr(int type, int value, AVExpr *p0, AVExpr *p1) +static AVExpr *make_eval_expr(int type, int value, AVExpr *p0, AVExpr *p1) { AVExpr *e = av_mallocz(sizeof(AVExpr)); if (!e) @@ -509,7 +509,7 @@ static int parse_factor(AVExpr **e, Parser *p) av_expr_free(e1); return ret; } - e0 = new_eval_expr(e_pow, 1, e1, e2); + e0 = make_eval_expr(e_pow, 1, e1, e2); if (!e0) { av_expr_free(e1); av_expr_free(e2); @@ -536,7 +536,7 @@ static int parse_term(AVExpr **e, Parser *p) av_expr_free(e1); return ret; } - e0 = new_eval_expr(c == '*' ? e_mul : e_div, 1, e1, e2); + e0 = make_eval_expr(c == '*' ? e_mul : e_div, 1, e1, e2); if (!e0) { av_expr_free(e1); av_expr_free(e2); @@ -559,7 +559,7 @@ static int parse_subexpr(AVExpr **e, Parser *p) av_expr_free(e1); return ret; } - e0 = new_eval_expr(e_add, 1, e1, e2); + e0 = make_eval_expr(e_add, 1, e1, e2); if (!e0) { av_expr_free(e1); av_expr_free(e2); @@ -588,7 +588,7 @@ static int parse_expr(AVExpr **e, Parser *p) av_expr_free(e1); return ret; } - e0 = new_eval_expr(e_last, 1, e1, e2); + e0 = make_eval_expr(e_last, 1, e1, e2); if (!e0) { av_expr_free(e1); av_expr_free(e2); |