diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2022-03-21 06:16:43 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2022-03-21 06:16:43 -0700 |
commit | f0aacaa137ab1a5d4a7eec2f1bf9f88184e5c75f (patch) | |
tree | 14a7981e70ecc67f165e848dd4e3d0a7349d8671 /stdlib/compiler.tl | |
parent | b42fc3daf7a24542232daa3666ce29ffb1ab7336 (diff) | |
download | txr-f0aacaa137ab1a5d4a7eec2f1bf9f88184e5c75f.tar.gz txr-f0aacaa137ab1a5d4a7eec2f1bf9f88184e5c75f.tar.bz2 txr-f0aacaa137ab1a5d4a7eec2f1bf9f88184e5c75f.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 'stdlib/compiler.tl')
0 files changed, 0 insertions, 0 deletions