diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-05-11 06:26:18 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-05-11 06:26:18 -0700 |
commit | f226f44490a31e88017b2c3e2032d6926ef1c336 (patch) | |
tree | a13c80ccf3354c03bbeeef29457e74a4e1990567 /ffi.h | |
parent | 39413e2d3568c3d18976d9b1c55af55af7905e4e (diff) | |
download | txr-f226f44490a31e88017b2c3e2032d6926ef1c336.tar.gz txr-f226f44490a31e88017b2c3e2032d6926ef1c336.tar.bz2 txr-f226f44490a31e88017b2c3e2032d6926ef1c336.zip |
ffi: encode-side character array specializations.
If the object being encoded is a string, and the array element
type is char, wchar or bchar, then encode a string, honoring
null termination flag. Unused space in the destination array
is filled with zeros.
* ffi.c (ffi_char_array_put, ffi_wchar_array_put,
ffi_bchar_array_put): New functions.
(ffi_array_put, ffi_array_out): Use new functions under
the right conditions.
Diffstat (limited to 'ffi.h')
0 files changed, 0 insertions, 0 deletions