diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-03-26 16:37:54 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-03-26 16:37:54 -0700 |
commit | 9a03fe1728fa6944b966a3b799774bdf23ff1ca6 (patch) | |
tree | ccde357039e09ec823b545aab369ae94308471f0 /struct.h | |
parent | 955ecd037dbcfb0309a669467ca11e5d83f281e2 (diff) | |
download | txr-9a03fe1728fa6944b966a3b799774bdf23ff1ca6.tar.gz txr-9a03fe1728fa6944b966a3b799774bdf23ff1ca6.tar.bz2 txr-9a03fe1728fa6944b966a3b799774bdf23ff1ca6.zip |
New function: arithp.
* lib.h (arithp): Declared.
(plus_s): Existing symbol declared.
* arith.c (arithp): New function.
* struct.h (special_slot): New enum member plus_m.
* struct.c (special_sym): Register plus_s together as
the [plus_m] entry of the array.
* tests/016/arith.tl
* tests/016/ud-arith.tl: Tests for arithp.
* txr.1: Documented.
* stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'struct.h')
-rw-r--r-- | struct.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -39,6 +39,7 @@ enum special_slot { equal_m, nullify_m, from_list_m, lambda_m, lambda_set_m, length_m, car_m, cdr_m, rplaca_m, rplacd_m, iter_begin_m, iter_more_m, iter_item_m, iter_step_m, iter_reset_m, + plus_m, num_special_slots }; |