summaryrefslogtreecommitdiffstats
path: root/struct.h
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2022-03-21 06:16:43 -0700
committerKaz Kylheku <kaz@kylheku.com>2022-03-21 06:16:43 -0700
commitaf8b7db50fcc3ed34bfe1136d1664d59e89ba1a9 (patch)
tree14a7981e70ecc67f165e848dd4e3d0a7349d8671 /struct.h
parent3ce67812ebbbb8c0a82d77a72f565cda40bdec73 (diff)
downloadtxr-af8b7db50fcc3ed34bfe1136d1664d59e89ba1a9.tar.gz
txr-af8b7db50fcc3ed34bfe1136d1664d59e89ba1a9.tar.bz2
txr-af8b7db50fcc3ed34bfe1136d1664d59e89ba1a9.zip
New FFI types str-s, bstr-s and wstr-s.
These types actually make it possible to receive a string by pointer from a C function, without trying to free it. It is now possible to write a FFI wrapper for strtol or wcstol, which is done in the new test case. * ffi.c (str_s_s, bstr_s_s, wstr_s_s): New symbol variables. (ffi_init_types): Register the types str-s, bstr-s and wstr-s. (ffi_init): Intern the new symbols. * tests/017/str-s.tl: New file. * txr.1: Documented. * stdlib/doc-syms.tl: Updated.
Diffstat (limited to 'struct.h')
0 files changed, 0 insertions, 0 deletions