diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2012-03-29 21:41:49 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2012-03-29 21:41:49 -0700 |
commit | 8b8ca2e793f90aa58d7430b8f060c467cd41ec1b (patch) | |
tree | 322203f975cfb3b66c67252791bb0ba987253923 /eval.c | |
parent | 2b1e05769d01cb036cf0a82231eb87b698a33426 (diff) | |
download | txr-8b8ca2e793f90aa58d7430b8f060c467cd41ec1b.tar.gz txr-8b8ca2e793f90aa58d7430b8f060c467cd41ec1b.tar.bz2 txr-8b8ca2e793f90aa58d7430b8f060c467cd41ec1b.zip |
* arith.c (numeq): New function.
(exptmod): Bugfix: was no normalizing the bignum, ouch.
Also was reporting "non-integral operands" for other
errors.
* eval.c (eval_init): Registered = intrinsic function.
* lib.c (numeqv): New function.
* lib.h (numeq, numeqv): Declared.
* txr.1: Documented expt, sqrt, isqrt, exptmod, fixnump, bignump,
integerp, floatp, numberp, zerop, evenp, oddp, >, <, >=, <= and =.
* txr.vim: Highlight =
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -2211,6 +2211,7 @@ void eval_init(void) reg_fun(intern(lit("<"), user_package), func_n1v(ltv)); reg_fun(intern(lit(">="), user_package), func_n1v(gev)); reg_fun(intern(lit("<="), user_package), func_n1v(lev)); + reg_fun(intern(lit("="), user_package), func_n1v(numeqv)); reg_fun(intern(lit("max"), user_package), func_n1v(maxv)); reg_fun(intern(lit("min"), user_package), func_n1v(minv)); |