From 32bc5d4e1009192ed4d2a7d102f3c2abb3f2707c Mon Sep 17 00:00:00 2001 From: Florian Westphal Date: Sat, 22 Feb 2020 22:12:02 +0100 Subject: expression: use common code for expr_ops/expr_ops_by_type Useless duplication. Also, this avoids bloating expr_ops_by_type() when it needs to cope with more expressions. Signed-off-by: Florian Westphal --- include/expression.h | 1 + 1 file changed, 1 insertion(+) (limited to 'include/expression.h') diff --git a/include/expression.h b/include/expression.h index cbf09b59..62fbbbb5 100644 --- a/include/expression.h +++ b/include/expression.h @@ -72,6 +72,7 @@ enum expr_types { EXPR_FIB, EXPR_XFRM, }; +#define EXPR_MAX EXPR_XFRM enum ops { OP_INVALID, -- cgit v1.2.3