diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 14:26:42 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 14:26:42 -0700 |
commit | 17d4160a2e6dcb07d2d7d09f8682ec120034a084 (patch) | |
tree | 9c3ba4d04432242dbcc07ebc8381fab93a4d8855 /ffi.h | |
parent | 5c9f482790a97c075d75d903e35a4cf7f09134c2 (diff) | |
download | txr-17d4160a2e6dcb07d2d7d09f8682ec120034a084.tar.gz txr-17d4160a2e6dcb07d2d7d09f8682ec120034a084.tar.bz2 txr-17d4160a2e6dcb07d2d7d09f8682ec120034a084.zip |
ffi: add support for wchar_t type.
We have wstr strings already but no wchar type.
* ffi.c (wchar_s): New symbol variable.
(ffi_type_wchar): New macro.
(ffi_wchar_put, ffi_wchar_get): New static functions.
(ffi_type_compile): Handle wchar_s.
(ffi_init): Initialize wchar_s.
* ffi.h (wchar_s): Declared.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -30,7 +30,7 @@ extern val uint16_s, int16_s; extern val uint32_s, int32_s; extern val uint64_s, int64_s; -extern val char_s, uchar_s; +extern val char_s, uchar_s, wchar_s; extern val short_s, ushort_s; extern val int_s, uint_s; extern val long_s, ulong_s; |