summaryrefslogtreecommitdiffstats
path: root/stdlib
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2023-03-26 16:37:54 -0700
committerKaz Kylheku <kaz@kylheku.com>2023-03-26 16:37:54 -0700
commit9a03fe1728fa6944b966a3b799774bdf23ff1ca6 (patch)
treeccde357039e09ec823b545aab369ae94308471f0 /stdlib
parent955ecd037dbcfb0309a669467ca11e5d83f281e2 (diff)
downloadtxr-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 'stdlib')
-rw-r--r--stdlib/doc-syms.tl1
1 files changed, 1 insertions, 0 deletions
diff --git a/stdlib/doc-syms.tl b/stdlib/doc-syms.tl
index 357b1e65..14d88c7a 100644
--- a/stdlib/doc-syms.tl
+++ b/stdlib/doc-syms.tl
@@ -125,6 +125,7 @@
("apply" "N-026C3723")
("aret" "N-008216A8")
("arg" "N-02133AA5")
+ ("arithp" "N-03DAA473")
("array" "N-0117BE95")
("arraysize" "N-002129D6")
("as" "N-028B26DD")