summaryrefslogtreecommitdiffstats
path: root/protsym.c
diff options
context:
space:
mode:
authorKaz Kylheku <kaz@kylheku.com>2019-12-14 10:19:54 -0800
committerKaz Kylheku <kaz@kylheku.com>2019-12-14 10:19:54 -0800
commitd2a2336acab95d0f57cd4edbcbc4f47025bc999a (patch)
tree43def6b62ac1c338b2d9289ad93fa998c78d63b8 /protsym.c
parent399a2ca0791bbb59a6b008543f52ae4b0b06043f (diff)
downloadtxr-d2a2336acab95d0f57cd4edbcbc4f47025bc999a.tar.gz
txr-d2a2336acab95d0f57cd4edbcbc4f47025bc999a.tar.bz2
txr-d2a2336acab95d0f57cd4edbcbc4f47025bc999a.zip
ffi: new type zchar
The zchar type, when used as an array element, specifies an optionally null-terminated or padded field, which is subject to UTF-8 conversion. * ffi.c (zchar_s): New symbol variable. (enum char_conv): New member, conv_zchar. (ffi_zchar_array_get): New static function. (ffi_array_in, ffi_array_get_common): Handle conv_zchar via ffi_zchar_array_get. (ffi_array_put): Handle conv_char together with conv_zchar. (ffi_type_compile): Handle zchar array element type, mapping to conv_zchar. (ffi_init_types): Register zhar type. (ffi_init): Initialize zchar_s symbol variable. * txr.1: Documented.
Diffstat (limited to 'protsym.c')
0 files changed, 0 insertions, 0 deletions