From 8f231218cede4970a4f7b2e718dc0ac5bafae7b0 Mon Sep 17 00:00:00 2001 From: mrwastl Date: Fri, 10 Jun 2011 21:07:36 +0200 Subject: added eq() as alias for equal() --- glcdskin/function.c | 4 +++- glcdskin/function.h | 1 + 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/glcdskin/function.c b/glcdskin/function.c index 03b1b32..9815073 100644 --- a/glcdskin/function.c +++ b/glcdskin/function.c @@ -22,7 +22,7 @@ namespace GLCD static const char * Internals[] = { - "not", "and", "or", "equal", "gt", "lt", "ge", "le", "ne", "file", "trans", + "not", "and", "or", "equal", "eq", "gt", "lt", "ge", "le", "ne", "file", "trans", "add", "sub", "mul", "div", "FontTotalWidth", "FontTotalHeight", @@ -213,6 +213,7 @@ bool cSkinFunction::Parse(const std::string & Text) params = -1; break; + case fun_equal: case fun_eq: case fun_ne: case fun_gt: @@ -382,6 +383,7 @@ cType cSkinFunction::Evaluate(void) const } return false; + case fun_equal: case fun_eq: return mParams[0]->Evaluate() == mParams[1]->Evaluate(); diff --git a/glcdskin/function.h b/glcdskin/function.h index 890d81f..f6fd96d 100644 --- a/glcdskin/function.h +++ b/glcdskin/function.h @@ -47,6 +47,7 @@ public: fun_not = INTERNAL, fun_and, fun_or, + fun_equal, fun_eq, fun_gt, fun_lt, -- cgit v1.2.3