[template-glib] eval: add double equality to dispatch able
- From: Christian Hergert <chergert src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [template-glib] eval: add double equality to dispatch able
- Date: Fri, 22 Apr 2016 11:11:13 +0000 (UTC)
commit 00e161bd512436bda55dcee34d0af132a0c2e9fb
Author: Christian Hergert <chergert redhat com>
Date: Fri Apr 22 04:10:54 2016 -0700
eval: add double equality to dispatch able
src/tmpl-expr-eval.c | 2 ++
1 files changed, 2 insertions(+), 0 deletions(-)
---
diff --git a/src/tmpl-expr-eval.c b/src/tmpl-expr-eval.c
index 8983e5c..f7b637a 100644
--- a/src/tmpl-expr-eval.c
+++ b/src/tmpl-expr-eval.c
@@ -979,6 +979,7 @@ SIMPLE_OP_FUNC (mul_double_double, G_TYPE_DOUBLE, set_double, get_double, *,
SIMPLE_OP_FUNC (lt_double_double, G_TYPE_BOOLEAN, set_boolean, get_double, <, get_double)
SIMPLE_OP_FUNC (lte_double_double, G_TYPE_BOOLEAN, set_boolean, get_double, <=, get_double)
SIMPLE_OP_FUNC (gt_double_double, G_TYPE_BOOLEAN, set_boolean, get_double, >, get_double)
+SIMPLE_OP_FUNC (eq_double_double, G_TYPE_BOOLEAN, set_boolean, get_double, ==, get_double)
SIMPLE_OP_FUNC (gte_double_double, G_TYPE_BOOLEAN, set_boolean, get_double, >=, get_double)
#undef SIMPLE_OP_FUNC
@@ -1005,6 +1006,7 @@ build_dispatch_table (void)
ADD_DISPATCH_FUNC (TMPL_EXPR_GT, G_TYPE_DOUBLE, G_TYPE_DOUBLE, gt_double_double);
ADD_DISPATCH_FUNC (TMPL_EXPR_LTE, G_TYPE_DOUBLE, G_TYPE_DOUBLE, lte_double_double);
ADD_DISPATCH_FUNC (TMPL_EXPR_GTE, G_TYPE_DOUBLE, G_TYPE_DOUBLE, gte_double_double);
+ ADD_DISPATCH_FUNC (TMPL_EXPR_EQ, G_TYPE_DOUBLE, G_TYPE_DOUBLE, eq_double_double);
ADD_DISPATCH_FUNC (TMPL_EXPR_MUL, G_TYPE_STRING, G_TYPE_DOUBLE, mul_string_double);
ADD_DISPATCH_FUNC (TMPL_EXPR_MUL, G_TYPE_DOUBLE, G_TYPE_STRING, mul_double_string);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]