Alex Shinn
12e18c9997
Need to set return type for zero-argument constructors.
2012-01-15 21:28:41 +09:00
Alex Shinn
1dd61a26f3
Adding support for bi-directional ports, and making (chibi net) use them for sockets.
...
Also modifying FFI to automatically make input ports non-blocking,
and fixing R7RS incompatibility where closing an already closed
port signalled an error.
2012-01-05 23:39:00 +09:00
Travis Cross
7b23858d86
Fix off-by-one error in command-line argument handling.
...
Previously (command-line) did not include the script name, but did
include the executable name if no script was given. Now if a script
is given its name will be the first element of the list returned by
(command-line) and will be the first element of the list passed to
(main).
This brings us into compliance with SRFI-22. Our man page was already
correct on this point.
2011-12-31 09:03:21 +00:00
Alex Shinn
9f25895e8c
FFI needs to check for FILE* backed ports when wrapping a C function that expects a FILE* and string streams are not supported.
...
Also fixing bug in make-custom-output-port that didn't check for exceptions.
2011-12-17 14:51:58 +09:00
Alex Shinn
f9b827245b
Modifying chibi-genstatic to take a list of .sld files on stdin and an optional -x <excluded-mods> ... option.
2011-12-11 21:10:09 +09:00
Alex Shinn
3895be298a
Fixing vector sizing bug in FFI for functions of 6 or more arguments.
2011-12-02 22:54:20 +09:00
Alex Shinn
75f67b5474
Setting interaction environment to load environment when running scripts.
...
This maintains backwards compatibility, and is convenient in many cases.
If you want to run a script which really does want an interaction-environment,
such as a repl or editor, you should reset the env to a fresh one.
2011-12-01 21:54:56 +09:00
Alex Shinn
47ad791d5d
Followup to previous patch - updating scripts to import (scheme), and tests to run with -xscheme.
2011-11-30 09:43:27 +09:00
Alex Shinn
8ca510bcb3
another fix to 1004
2011-11-26 16:32:33 +09:00
Alex Shinn
fd425fb1ec
fix bug in previous patch - only use array length in sexp_c_string for explicit result params
2011-11-26 06:57:24 +00:00
Alex Shinn
e608bec866
using result length from fread; string-count optimized and safe for invalid strings.
2011-11-26 13:04:51 +09:00
Alex Shinn
4d23c1e7c5
adding basic process and system tests, with some fixes
2011-11-24 10:11:12 +09:00
Alex Shinn
e1731fabf3
FFI struct types no longer use global variables (with improved type-inference as a bonus)
2011-11-24 01:20:47 +09:00
Alex Shinn
327be34719
don't try to make ports from NULL FILE*s
2011-11-23 10:47:36 +09:00
Alex Shinn
da2795cfa5
Doing the right thing for value-result parameters.
2011-11-22 08:21:32 +09:00
Alex Shinn
adef7b2116
Adding support for list FFI values.
2011-11-17 23:41:44 -08:00
Alex Shinn
a7d6998a96
Fixing static libs and immutable strings builds.
2011-11-14 09:17:53 +09:00
Alex Shinn
7a5dd6351c
Shared libraries are now versioned and annotated with the ABI compile-time options.
2011-11-07 23:39:38 +09:00
Alex Shinn
1b4cc2ad14
Removing uses of sexp_api_params and sexp_api_pass which were ugly and no longer supported anyway.
...
The definitions are still provided for backwards compatibility.
2011-11-07 01:30:55 +09:00
Alex Shinn
163b21a815
Adding define-c-int-type to the FFI and using it for socklen_t.
2011-11-04 22:17:26 +09:00
Alex Shinn
1cec98193e
s/sld/module to reflect change in library definition extension
2011-11-04 19:11:24 +09:00
Alex Shinn
4ae5949d54
fixing header alignment in disasm
2011-11-01 22:51:09 +09:00