diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2023-08-23 19:59:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2023-08-23 19:59:38 -0700 |
commit | d6e02ceea56644dea341e64a1f46f8fbe43ca6b5 (patch) | |
tree | de7345d67de93291489fae1f726e73991b057cf9 /autoload.c | |
parent | 33cd4b10aca2e097e1d03fe4d5ee725f4f207131 (diff) | |
download | txr-d6e02ceea56644dea341e64a1f46f8fbe43ca6b5.tar.gz txr-d6e02ceea56644dea341e64a1f46f8fbe43ca6b5.tar.bz2 txr-d6e02ceea56644dea341e64a1f46f8fbe43ca6b5.zip |
New macros opf and lopf.
These remove repetitive (op ...) syntax from
the arguments of functional combinators.
* stdlib/opt.tl (opf, lopf): New macros.
* autoload.c (op_set_entries): Register opf and
lopf as autoload triggers.
* tests/012/op.tl: New tests.
* txr.1: Documented.
Diffstat (limited to 'autoload.c')
-rw-r--r-- | autoload.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -712,7 +712,7 @@ static val op_set_entries(val fun) lit("op"), lit("do"), lit("lop"), lit("ldo"), lit("ap"), lit("ip"), lit("ado"), lit("ido"), lit("ret"), lit("aret"), lit("opip"), lit("oand"), lit("lopip"), lit("loand"), - lit("flow"), lit("lflow"), + lit("opf"), lit("lopf"), lit("flow"), lit("lflow"), nil }; autoload_set(al_fun, name, fun); |