Commit graph

1225 commits

Author SHA1 Message Date
Alex Shinn
3a511302c4 Calling gc when open returns EMFILE (out of open file descriptors).
This still needs to be done for fd's created as sockets and other sources.
2011-12-17 00:05:55 +09:00
Alex Shinn
9a8395c69d Fixing order of prefix import spec. 2011-12-15 22:12:11 +09:00
Alex Shinn
cc5d5d573c string-ref and string-set! will raise an error on the trailing null byte. 2011-12-12 09:37:58 +09:00
Alex Shinn
6145922589 The non-string-stream variant of sexp_push_char shouldn't push EOF.
Probably this shouldn't actually write the char to the buffer, I need
to verify we never push a char that wasn't just read.
2011-12-11 21:52:12 +09:00
Alex Shinn
0c1ac4b7a1 Simplifying Plan9 CPPFLAGS. 2011-12-11 21:13:31 +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
7d4a3ccde4 Temporarily disabling unboxed locals optimization which may be causing a GC bug. 2011-12-11 21:09:08 +09:00
Alex Shinn
88c283a820 Including type tag in gc debug output for conservatively preserved objects. 2011-12-11 21:06:19 +09:00
Alex Shinn
422beccc7d GC preserving stripped synclos. 2011-12-11 21:03:35 +09:00
Alex Shinn
4c56ec04f9 Fixing equal?'s offset of trailing non-object bytes for non-gcc compilers.
Fixes the case that short strings of the same length were considered equal? on Plan9.
2011-12-11 14:35:30 +09:00
Alex Shinn
7039b32d51 removing string-set! from tests so immutable string config can pass 2011-12-11 14:26:44 +09:00
Alex Shinn
5b64ba5a9c heap size utility 'multiplier' not used with boehm 2011-12-11 14:24:45 +09:00
Alex Shinn
d29d7733fc adding basic string tests 2011-12-11 14:20:42 +09:00
Alex Shinn
72a2f237c7 removing a warning in accept.c and verifying non-thread lib tests all pass w/o threads. 2011-12-09 21:31:50 +09:00
Alex Shinn
1c60d4b5eb fixing (chibi process) build when threads are disabled. 2011-12-09 21:28:57 +09:00
Alex Shinn
9499258d9a (srfi 39) now works without threads 2011-12-09 21:15:57 +09:00
Alex Shinn
bafab6e49d Adding -DSEXP_USE_GREEN_THREADS=0 to test build configs. 2011-12-09 10:21:02 +09:00
Alex Shinn
ffa59e37a8 Image loading needs fcntl.h (when compiling without threads). 2011-12-09 10:20:17 +09:00
Lorenzo Campedelli
0d5ac322fd Fixing srfi-38 parsing non-decimal numbers followed by EOF or containing the #\f digit.
Added related tests.
2011-12-08 10:56:46 +01:00
Alex Shinn
edb73cf250 -h <size> option not supported with Boehm 2011-12-07 09:04:12 +09:00
Alex Shinn
f34b9267c1 Typo, used wrong preprocessor directive to check for module support in help. 2011-12-07 08:34:59 +09:00
Alex Shinn
be10dca2cc Adding a brief option summary when usage is wrong (including just -h, or --anything). 2011-12-06 22:30:42 +09:00
Alex Shinn
376e36610c Adding bash_completion support for chibi-scheme. 2011-12-06 21:53:58 +09:00
Alex Shinn
34a4b00847 Plan9 can build with modules, just no dl. 2011-12-06 21:46:05 +09:00
Alex Shinn
aa07c6b022 Adding tab-completion on all identifiers in the current environment. 2011-12-04 20:35:41 +09:00
Alex Shinn
81567045f3 Adding environment-parent binding so we can traverse a full env hierarchy. 2011-12-04 20:35:13 +09:00
Alex Shinn
ca55194c78 Adding hook for basic tab-completion. 2011-12-04 20:32:36 +09:00
Bakul Shah
0e85ac611d Fix normal exit for plan9 2011-12-04 00:27:41 -08:00
Alex Shinn
c8c31076ce Added tag 0.5.2 for changeset bb4e7b7d3f57 2011-12-04 16:31:50 +09:00
Alex Shinn
a057d5974b Bumping version. 2011-12-04 16:27:20 +09:00
Alex Shinn
86fe354c43 Adding srfi-38 read/write tests. 2011-12-04 16:26:56 +09:00
Alex Shinn
f61204d5e1 Adding cond-expand to the initial empty environment along with import for writing portable scripts. 2011-12-04 15:31:03 +09:00
Alex Shinn
c83dbf1cc0 Documentation updates. 2011-12-04 15:01:52 +09:00
Alex Shinn
f2502229e6 Warn when importing bad bindings with `only'. 2011-12-04 13:43:34 +09:00
Alex Shinn
cd708b9f90 Fixing only/except/rename modified importing from (chibi repl). 2011-12-04 13:25:29 +09:00
Alex Shinn
a991cedec4 Bugfix, wasn't extracting env from the meta module. 2011-12-04 13:13:47 +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
5847e6b631 -m and -x are ignored when compiled without modules, -e, -p and -l disable env reinitializing 2011-12-01 21:38:12 +09:00
Alex Shinn
fcb58f75c4 test calling sexp_apply repeatedly from C 2011-12-01 21:30:49 +09:00
Alex Shinn
32a68effe0 Fixing bug off-by-one bug in sexp_apply - stack top was left one higher than on entry to hold the result.
This was never noticed before because other functions like eval cleanup the
top, and otherwise sexp_apply was never called directly from C code in a loop.
2011-12-01 08:43:39 +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
64fdfc1c8c Scripts start with an env empty of everything but `import' following R7RS semantics.
We make an exception for this if any -m or -x options have been specified.
2011-11-30 09:39:05 +09:00
Alex Shinn
46008a0cc0 renaming quote in repl-import 2011-11-30 09:20:38 +09:00
Alex Shinn
ab5398bba0 fix reading numbers beginning with "." in srfi-38 2011-11-29 21:47:54 +09:00
Alex Shinn
b22b0bc7a4 Fix for letrec* - trailing non-procedure definitions cause earlier procedures to be treated as set!s.
Technically this is only needed if the non-proc defs reference the
earlier procedures, which leaves room for optimization later.
2011-11-29 08:33:30 +09:00
Alex Shinn
e3d1414dcc fix for (inexact->exact ratio) 2011-11-29 08:19:01 +09:00
Alex Shinn
f632037344 catching potential overflow in fixnum+fixnum cases in sexp_add similar to last change 2011-11-28 22:20:24 +09:00
Alex Shinn
d9b57ab6b1 handling overflow in the fixnum*fixnum case of sexp_mul, which is never reached directly from the vm 2011-11-28 13:12:46 +00:00
Alex Shinn
e7dbddadef non-standard extension - allowing empty expressions in case clauses 2011-11-28 20:51:34 +09:00