diff options
author | Kaz Kylheku <kaz@kylheku.com> | 2017-04-27 23:02:38 -0700 |
---|---|---|
committer | Kaz Kylheku <kaz@kylheku.com> | 2017-04-27 23:02:38 -0700 |
commit | cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420 (patch) | |
tree | eaf8f8ab29cadec0a8014bbc8d92c7fa3d315b09 /ffi.h | |
parent | c489ea71dd23c4108bad92bba463cd153fc9135c (diff) | |
download | txr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.tar.gz txr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.tar.bz2 txr-cd1a4d462c52de2f15c5f3f5bd6fb760b6e29420.zip |
ffi: fix problems caught by g++.
* ffi.c (float_s): Variable removed. This is a duplicate
definition; we already have this symbol in lib.c.
(ffi_type_s): Duplicate definition removed; it is
repeated two lines below.
(ffi_str_put): Remove pointless const qualifier on u8s
variable.
(ffi_call_wrap): Cast return value of alloca. Also,
rc pointer needs to be cast to mem_t *.
(ffi_init): Remove initialization of float_s.
* ffi.h (float_s): Declaration removed.
Diffstat (limited to 'ffi.h')
-rw-r--r-- | ffi.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -35,7 +35,7 @@ extern val short_s, ushort_s; extern val int_s, uint_s; extern val long_s, ulong_s; -extern val float_s, double_s; +extern val double_s; extern val wstr_s; |