diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-06-11 11:06:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-06-11 11:06:38 -0700 |
commit | a8f318ccf76157d12d5d58f10188e91b9a3f4d94 (patch) | |
tree | 0bf7936c668cd69ce87b6b2735427b817e14bb7a /mpi/mpi.h | |
parent | fe844150ea39f75128706a8c6f242a26142fd181 (diff) | |
download | txr-a8f318ccf76157d12d5d58f10188e91b9a3f4d94.tar.gz txr-a8f318ccf76157d12d5d58f10188e91b9a3f4d94.tar.bz2 txr-a8f318ccf76157d12d5d58f10188e91b9a3f4d94.zip |
ffi: handle sub operation in carray.
Thus, [ca 3..5] syntax works for slice extraction.
However, this works referentially, not by making a copy.
The extracted subarray points to the original memory,
until carray-dup is invoked on it.
* ffi.c (carray_sub): New function.
(ffi_init): carray-sub intrinsic registered.
* ffi.h (carray_sub): Declared.
* lib.c (sub): Handle carray via carray_sub.
* txr.1: Documented changes in sub.
Diffstat (limited to 'mpi/mpi.h')
0 files changed, 0 insertions, 0 deletions