From e7b43ec0c9bc244795163478aa4c3e33750b5d64 Mon Sep 17 00:00:00 2001 From: Patrick McHardy Date: Thu, 6 Mar 2014 16:29:52 +0100 Subject: expr: make expr_binary_error() usable outside of evaluation Turn the eval_ctx argument into a list_head to queue the error to. Signed-off-by: Patrick McHardy --- include/expression.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'include/expression.h') diff --git a/include/expression.h b/include/expression.h index ac6a4f4a..354e679c 100644 --- a/include/expression.h +++ b/include/expression.h @@ -268,12 +268,12 @@ extern void expr_set_type(struct expr *expr, const struct datatype *dtype, enum byteorder byteorder); struct eval_ctx; -extern int expr_binary_error(struct eval_ctx *ctx, +extern int expr_binary_error(struct list_head *msgs, const struct expr *e1, const struct expr *e2, const char *fmt, ...) __gmp_fmtstring(4, 5); -#define expr_error(ctx, expr, fmt, args...) \ - expr_binary_error(ctx, expr, NULL, fmt, ## args) +#define expr_error(msgs, expr, fmt, args...) \ + expr_binary_error(msgs, expr, NULL, fmt, ## args) static inline bool expr_is_constant(const struct expr *expr) { -- cgit v1.2.3