path: root/include
diff options
authorPatrick McHardy <>2014-03-06 16:29:52 +0100
committerPatrick McHardy <>2014-03-07 10:18:42 +0100
commite7b43ec0c9bc244795163478aa4c3e33750b5d64 (patch)
treed0ef691a19af2b717c0fe9dd239995eb4d5d2b9f /include
parentb2c827223395682ee231504385f692267d1a3bfb (diff)
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 <>
Diffstat (limited to 'include')
1 files changed, 3 insertions, 3 deletions
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)