#error incompatible compiler found, need gcc > 2.7 or clang
#endif
+#ifdef __GNUC__
+#define RSPAMD_CONST_FUNCTION __attribute__ ((const))
+#else
+#define RSPAMD_CONST_FUNCTION
+#endif
+
#define HAVE_OPENSSL 1
#define HAVE_MATH_H 1
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)
{
/*
* 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)
{
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)
{
* 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)
{