aboutsummaryrefslogtreecommitdiff
path: root/jim.h
diff options
context:
space:
mode:
authorSteve Bennett <steveb@workware.net.au>2017-05-12 13:33:44 +1000
committerSteve Bennett <steveb@workware.net.au>2017-05-23 14:36:56 +1000
commitbd5139c89e714bb7e10a0da55d9a10f51e93516c (patch)
treea1fb42986a3abc588e05f0b7eea4361c723f779c /jim.h
parent7b2250a7e60968b0c3716a7caa780e6ca0a2ce9b (diff)
downloadjimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.zip
jimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.tar.gz
jimtcl-bd5139c89e714bb7e10a0da55d9a10f51e93516c.tar.bz2
expr: Replace expression engine
Rework the expression engine to use recursive descent evaluation rather than a shunting yard algorithm. Among other things, it is easier to make lazy operators and the ternary operator work correctly. In particular, the following expression no longer crashes: $(99?9,99?9:*9:999)?9) And the code is now smaller. Signed-off-by: Steve Bennett <steveb@workware.net.au>
Diffstat (limited to 'jim.h')
-rw-r--r--jim.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/jim.h b/jim.h
index 58e6e56..9338f86 100644
--- a/jim.h
+++ b/jim.h
@@ -816,7 +816,7 @@ JIM_EXPORT int Jim_GetReturnCode (Jim_Interp *interp, Jim_Obj *objPtr,
/* expression object */
JIM_EXPORT int Jim_EvalExpression (Jim_Interp *interp,
- Jim_Obj *exprObjPtr, Jim_Obj **exprResultPtrPtr);
+ Jim_Obj *exprObjPtr);
JIM_EXPORT int Jim_GetBoolFromExpr (Jim_Interp *interp,
Jim_Obj *exprObjPtr, int *boolPtr);