diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 14:32:32 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 14:32:32 -0700 |
commit | 1ca136f653d66cd271a33c37ea17cf836f7197b4 (patch) | |
tree | 0477fb7c9e5604a52baea117cb2b1b2a1810e9a3 /tl.vim | |
parent | 17d4160a2e6dcb07d2d7d09f8682ec120034a084 (diff) | |
download | txr-1ca136f653d66cd271a33c37ea17cf836f7197b4.tar.gz txr-1ca136f653d66cd271a33c37ea17cf836f7197b4.tar.bz2 txr-1ca136f653d66cd271a33c37ea17cf836f7197b4.zip |
ffi: conv between strings and char/wchar_t arrays.
* ffi.c (struct txr_ffi_type): New bitfield members
char_conv, wchar_conv.
(ffi_array_put): Check char_conv and wchar_conv flags
and perform conversion to string, watching out for the
presence or absence of null termination.
(ffi_type_compile): When compiling array, check for the
str and wstr element type, and set the flags.
* utf8.c (ut8f_dup_from_buf): New function.
* utf8.c (ut8f_dup_from_buf): Declared.
Diffstat (limited to 'tl.vim')
0 files changed, 0 insertions, 0 deletions