diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 16:15:08 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-29 16:15:08 -0700 |
commit | b29c0d7a80c760043887412e365a4cdf8178a997 (patch) | |
tree | d36b224575afc0cca82c1ae8ebedc72e3cc1199d /parser.l | |
parent | 1ca136f653d66cd271a33c37ea17cf836f7197b4 (diff) | |
download | txr-b29c0d7a80c760043887412e365a4cdf8178a997.tar.gz txr-b29c0d7a80c760043887412e365a4cdf8178a997.tar.bz2 txr-b29c0d7a80c760043887412e365a4cdf8178a997.zip |
ffi: str, wstr and buf convert nil and null pointers.
* ffi.c (ffi_str_put, ffi_wstr_put, ffi_wstr_d_put,
ffi_buf_put, ffi_d_put): If the object is nil, store
a null pointer into the target buffer, and into the
rtvec.
(ffi_str_get, ffi_str_d_get, ffi_wstr_get, ffi_wstr_d_get,
ffi_buf_get, ffi_d_get): Return nil if the pointer is
null.
Diffstat (limited to 'parser.l')
0 files changed, 0 insertions, 0 deletions