diff options
Diffstat (limited to 'glcdskin')
-rw-r--r-- | glcdskin/function.c | 4 | ||||
-rw-r--r-- | glcdskin/function.h | 1 |
2 files changed, 4 insertions, 1 deletions
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, |