diff options
author | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:48:30 +0100 |
---|---|---|
committer | Vsevolod Stakhov <vsevolod@highsecure.ru> | 2020-06-17 20:48:30 +0100 |
commit | 95645818062dffd97fc1f71f073501d11c49492f (patch) | |
tree | 752554b0aa64a107f22517eec89bdf95678332f1 /src/libutil/expression.c | |
parent | 6ea707966a87b98386250f43f6c4b2d840e0c5d2 (diff) | |
download | rspamd-95645818062dffd97fc1f71f073501d11c49492f.tar.gz rspamd-95645818062dffd97fc1f71f073501d11c49492f.zip |
[Minor] Add const attribute
Diffstat (limited to 'src/libutil/expression.c')
-rw-r--r-- | src/libutil/expression.c | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/src/libutil/expression.c b/src/libutil/expression.c index eeee40b75..6d4b33b5b 100644 --- a/src/libutil/expression.c +++ b/src/libutil/expression.c @@ -96,6 +96,8 @@ rspamd_expr_quark (void) return g_quark_from_static_string ("rspamd-expression"); } +static const gchar * RSPAMD_CONST_FUNCTION +rspamd_expr_op_to_str (enum rspamd_expression_op op); static const gchar * rspamd_expr_op_to_str (enum rspamd_expression_op op) { @@ -210,6 +212,8 @@ rspamd_expr_stack_peek (struct rspamd_expression *expr) /* * Return operation priority */ +static gint RSPAMD_CONST_FUNCTION +rspamd_expr_logic_priority (enum rspamd_expression_op op); static gint rspamd_expr_logic_priority (enum rspamd_expression_op op) { @@ -251,6 +255,9 @@ rspamd_expr_logic_priority (enum rspamd_expression_op op) return ret; } +static guint RSPAMD_CONST_FUNCTION +rspamd_expr_op_flags (enum rspamd_expression_op op); + static guint rspamd_expr_op_flags (enum rspamd_expression_op op) { @@ -295,6 +302,8 @@ rspamd_expr_op_flags (enum rspamd_expression_op op) * Return FALSE if symbol is not operation symbol (operand) * Return TRUE if symbol is operation symbol */ +static gboolean RSPAMD_CONST_FUNCTION +rspamd_expr_is_operation_symbol (gchar a); static gboolean rspamd_expr_is_operation_symbol (gchar a) { |