summaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorFlorian Westphal <fw@strlen.de>2020-02-22 22:12:02 +0100
committerFlorian Westphal <fw@strlen.de>2020-02-23 23:31:12 +0100
commit32bc5d4e1009192ed4d2a7d102f3c2abb3f2707c (patch)
treeef1072b3ef2d234829834a1bf2c5e6f97936ee56 /include
parent58386df4ae6d6481ff16700df232551da00205aa (diff)
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 <fw@strlen.de>
Diffstat (limited to 'include')
-rw-r--r--include/expression.h1
1 files changed, 1 insertions, 0 deletions
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,