diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2020-02-22 00:53:12 -0800 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2020-02-22 00:53:12 -0800 |
commit | 3830cf321258321719865709081a709c97fd4e0a (patch) | |
tree | 075682ac123a39b98b961025c99d9188628cef3a /eval.c | |
parent | 3434c8a937e39910d982130a88097da490304eb5 (diff) | |
download | txr-3830cf321258321719865709081a709c97fd4e0a.tar.gz txr-3830cf321258321719865709081a709c97fd4e0a.tar.bz2 txr-3830cf321258321719865709081a709c97fd4e0a.zip |
New functions: meq, meql and mequal.
* eval.c (eval_init): Register meq, meql an mequal intrinsics.
* lib.c (meq, meql, mequal): New functions.
* lib.h (meq, meql, mequal): Declared.
* txr.1: Documented.
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 3 |
1 files changed, 3 insertions, 0 deletions
@@ -6554,6 +6554,9 @@ void eval_init(void) reg_fun(eq_s, eq_f); reg_fun(eql_s, eql_f); reg_fun(equal_s, equal_f); + reg_fun(intern(lit("meq"), user_package), func_n1v(meq)); + reg_fun(intern(lit("meql"), user_package), func_n1v(meql)); + reg_fun(intern(lit("mequal"), user_package), func_n1v(mequal)); reg_fun(intern(lit("neq"), user_package), func_n2(neq)); reg_fun(intern(lit("neql"), user_package), func_n2(neql)); reg_fun(intern(lit("nequal"), user_package), func_n2(nequal)); |