diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-28 06:02:33 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-28 06:02:33 -0700 |
commit | 6b7a88b83ff5f3574e05a7677c65a232d667d52c (patch) | |
tree | 03d568143299772cbf101ff0966108cfd16928f7 /lib.c | |
parent | 7155d82316305b4280511f11236eec5f8e8582be (diff) | |
download | txr-6b7a88b83ff5f3574e05a7677c65a232d667d52c.tar.gz txr-6b7a88b83ff5f3574e05a7677c65a232d667d52c.tar.bz2 txr-6b7a88b83ff5f3574e05a7677c65a232d667d52c.zip |
ffi: buf type doesn't need fill function.
The fill function is useless, because the object is already filled
directly. It's just performing an exactly overlapping memcpy.
* ffi.c (ffi_buf_alloc): Function removed.
(ffi_type_compile): We can't use the presence or absence of
the fill function as the test whether a type can be passed
by ptr-in-out or ptr-out, since buf can be passed that way
and has no fill. A better criterion is "has no fill and
use the fixed size allocation". Removing the assignment
statements which set up the fill function for buffers.
Diffstat (limited to 'lib.c')
0 files changed, 0 insertions, 0 deletions