summaryrefslogtreecommitdiffstats
path: root/genvim.txr
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2014-10-12 13:01:35 -0700
committerKaz Kylheku <kaz@kylheku.com>2014-10-12 13:01:35 -0700
commit80e54b31220f4fdc414d793ff97bbfb127c1d4a1 (patch)
tree68197cf039e426a0d9f5c1d20305893d168e5ad9 /genvim.txr
parentff18ec7c29456025f7e4e29c4d24f5efa1913ca8 (diff)
downloadtxr-80e54b31220f4fdc414d793ff97bbfb127c1d4a1.tar.gz
txr-80e54b31220f4fdc414d793ff97bbfb127c1d4a1.tar.bz2
txr-80e54b31220f4fdc414d793ff97bbfb127c1d4a1.zip
* eval.c (merge_wrap): New static function
(eval_init): Register less as intrinsic. Retarget merge intrinsic to merge_wrap for proper argument defaulting which is missing from merge, and which we don't want to introduce there since internal calls to merge don't erquire it. Change registration of sort so it has only one required argument, not two. * lib.c (less_f): New global variable. (less_tab): New static array. (less_tab_init): New static function. (less): New function. (sort): Default lessfun argument to the less function. (obj_init): GC-protect the less_f variable. Initialize it with a function object made from the less function. (init): Call less_tab_init. * lib.h (enum type): New enumeration member MAX_TYPE, an alias for the largest type. (less_f, less): Declared. * txr.1: Documented new less function, and that the lessfun argument in sort and merge is optional, defaulting to less. * txr.vim: Regenerated.
Diffstat (limited to 'genvim.txr')
0 files changed, 0 insertions, 0 deletions