Alex Shinn
2e4d0aed91
Handling non-pointer struct return types in the ffi. We do a flat memcopy
...
of the struct to heap. Only the base case is supported - combining with
multiple values or returning fixed-size arrays of structs won't work.
Fixes issue #270 .
2015-06-22 23:01:44 +09:00
Alex Shinn
2f27dbb5bc
Allowing overriding the c compiler in chibi-ffi.
2015-05-09 21:50:27 +09:00
Alex Shinn
7d697c29c0
adding c-link to chibi-ffi
2015-05-09 21:08:18 +09:00
Alex Shinn
214a1aaf78
C++ FFI fixes.
2015-03-06 17:41:29 +09:00
Alex Shinn
692a231091
merge
2015-02-13 19:04:59 +09:00
Alex Shinn
a958987144
FFI updates: adding ffi-include, length in values, bugfix cast in calloc.
2015-02-13 19:00:41 +09:00
Alex Shinn
9007d1675e
fixing -c in chibi-ffi
2015-02-12 23:50:15 +09:00
Alex Shinn
2922ed591d
Forgot to install regexp (patch from Lorenzo)
2015-01-26 08:06:59 +09:00
Alex Shinn
7156ce08b2
Fixing copy/paste error in inlined `remove' in chibi-ffi.
2015-01-22 11:25:11 +09:00
Alex Shinn
8975586ffe
Fixing recent chibi-ffi -c breakage (patch from Lorenzo).
2015-01-14 06:26:43 +09:00
Alex Shinn
94002d2134
Adding a --features command-line option to chibi-ffi and chibi-genstatic.
...
Needed for cross-compiling.
2015-01-04 23:31:41 -05:00
Alex Shinn
8dedc36609
For FFI setters/getters, don't set the type field length which has different assumptions.
...
Check the existence and length of the corresponding vector instead.
2015-01-03 23:43:02 -05:00
Alex Shinn
0cce37aaa8
Removing unecessary mangling. By default strip namespace prefixes from class names.
2014-12-26 11:04:13 +09:00
Alex Shinn
aafc97acc0
Including local source files verbatim in FFI.
...
Moving huff includes to include dir.
2014-12-25 13:47:24 +09:00
Alex Shinn
b78187c89b
Adding virtual FFI accessors.
2014-12-25 13:14:09 +09:00
Alex Shinn
b3f794568e
Various C++ FFI improvements.
2014-12-22 18:18:52 +09:00
Alex Shinn
ba11e996e6
Adding bounds checking for slot-ref/set!.
2014-12-14 15:16:12 +09:00
Alex Shinn
b7265fcc49
Also tracking slot names for FFI types.
2014-12-13 16:04:07 +09:00
Alex Shinn
7f3c503dcd
Tracking FFI type getters and setters.
2014-12-13 15:17:17 +09:00
Alex Shinn
d10de2f613
Better error message in parse-func.
2014-08-24 22:46:06 +09:00
Alex Shinn
8d636f3ca5
Basic bytevector FFI support.
2014-08-21 21:57:57 +09:00
Alex Shinn
c8e1f4c18c
Mark char* input parameters const where applicable.
2014-05-14 21:30:35 +09:00
Alex Shinn
8b5eb68238
File descriptors maintain a reference count of ports open on them
...
They can be close()d explicitly with close-file-descriptor, and
will close() on gc, but only explicitly closing the last port on
them will close the fileno. Notably needed for network sockets
where we open separate input and output ports on the same socket.
2014-02-20 22:32:50 +09:00