Commit graph

21 commits

Author SHA1 Message Date
Alex Shinn
b4ea0a437f removing set! 2013-06-20 23:01:27 +09:00
Alex Shinn
aba919f1b4 Binding C types, and adding declare-c-struct/class/union to access them from imported libraries. 2013-05-30 08:08:42 +09:00
Alex Shinn
dcb8fc292c Commented out warning. 2013-05-29 23:35:35 +09:00
Alex Shinn
20c62ffe4a The global ABI error object needs to be an immediate, since if
the ABI is incompatible we can't even necessarily refer to a
global from within the bad library.
2013-02-10 16:38:18 +09:00
Alex Shinn
2a1f916475 chibi-ffi uses execute instead of system when compiling to pass through the result 2013-01-31 22:26:19 +09:00
Alex Shinn
5127e30ab2 Booleans are passed as #t/#f in Scheme but ints in C. 2013-01-31 22:20:15 +09:00
Alex Shinn
ed308c4063 Adding char validator. 2013-01-25 00:45:03 +09:00
Alex Shinn
5f705339ef Supporting an arbitrary number of gc vars in FFI (e.g. as caused by more than 5 result params). 2013-01-23 23:35:51 +09:00
Alex Shinn
fa44ad7cf8 Binding finalizers. Handling multiple implicit or explicit calls to finalizers. 2013-01-23 23:06:39 +09:00
Alex Shinn
8f956416fc A void return type combined with result parameters will discard the void result.
Enhancement request from issue #170.
2013-01-20 18:25:04 +09:00
Alex Shinn
0a9dce93b0 Ports can be passed for fileno arguments. The fileno-nonblock return type
can be specified to automatically make the result non-blocking.
2012-12-31 00:21:43 +09:00
Alex Shinn
3373469883 SRFI-22 now requires the -r (run) option. 2012-11-11 16:17:26 +09:00
Alex Shinn
41c80d06ca Maybe-null patch for strings in chibi-ffi from Lorenzo. 2012-11-10 20:56:27 +09:00
Alex Shinn
08a5a2e0e8 Renaming the (scheme) library to (chibi). Leaving (scheme) as an alias for backwards compatibility. 2012-10-14 22:11:47 +09:00
Alex Shinn
5b31263136 Linked values will be applied to the first result in a multi-result function.
Also adding support for value function conversions (e.g. string-length
-> sexp_string_length).
2012-10-09 21:50:56 +09:00
Alex Shinn
69646a0c94 don't free stack-allocated arrays in ffi generated code 2012-07-16 23:34:10 +09:00
Alex Shinn
ea8a3df083 using 0 for final array value initialization instead of NULL 2012-07-16 23:30:54 +09:00
Alex Shinn
35226238ed Removing spurious ctx argument to sexp_make_character. 2012-07-16 22:27:41 +09:00
Alex Shinn
7e67460770 Fixing handling of [un]signed integer type names in the FFI. 2012-07-13 06:48:13 +09:00
Alex Shinn
c8f13f8538 Adding (scheme cxr) library, removing all other references to c[ad]{3,4]r. 2012-05-20 15:16:11 +09:00
Alex Shinn
85a7efc003 automatically making sockets non-blocking on accept 2012-05-14 08:37:45 -04:00