aboutsummaryrefslogtreecommitdiffstats
path: root/src/libutil/expression.h
diff options
context:
space:
mode:
authorVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-16 15:35:48 +0100
committerVsevolod Stakhov <vsevolod@highsecure.ru>2020-06-16 15:35:48 +0100
commitc97d6296c3d07df135c65e598543b51c94dfbc5b (patch)
tree3bbe739a00d1bffee621ce1227c491dc68ca0e18 /src/libutil/expression.h
parent95c95db6d47d3ab5232dd4bb22bbee6719d6a5cf (diff)
downloadrspamd-c97d6296c3d07df135c65e598543b51c94dfbc5b.tar.gz
rspamd-c97d6296c3d07df135c65e598543b51c94dfbc5b.zip
[Project] Support multiply, minus and divide operators in expressions
Diffstat (limited to 'src/libutil/expression.h')
-rw-r--r--src/libutil/expression.h6
1 files changed, 4 insertions, 2 deletions
diff --git a/src/libutil/expression.h b/src/libutil/expression.h
index bd18fa75f..3a4f1ac3f 100644
--- a/src/libutil/expression.h
+++ b/src/libutil/expression.h
@@ -30,8 +30,10 @@ extern "C" {
enum rspamd_expression_op {
OP_INVALID = 0,
- OP_PLUS, /* || or + */
- OP_MULT, /* && or * */
+ OP_PLUS, /* + */
+ OP_MULT, /* * */
+ OP_MINUS, /* - */
+ OP_DIVIDE, /* / */
OP_OR, /* || or | */
OP_AND, /* && or & */
OP_NOT, /* ! */