Commit graph

1456 commits

Author SHA1 Message Date
Alex Shinn
9510e5b5c2 busy loop on EAGAIN when srfi-18 isn't loaded instead of returning EOF 2012-08-07 22:30:34 +09:00
Alex Shinn
f60617815d Resetting history ring on empty input in repl. 2012-07-26 22:47:43 +09:00
Alex Shinn
f0dd9c9ddb patch for clean NetBSD and OpenBSD builds from v krishnakumar 2012-07-26 09:55:00 +09:00
Alex Shinn
cc1821a61e (scheme char) now supports full unicode char properties and case mappings 2012-07-23 23:23:39 +09:00
Alex Shinn
287d1a992f Adding string-size and substring-cursor to the ASCII version. 2012-07-23 23:18:48 +09:00
Alex Shinn
b682d77971 fixing string-trim resulting in empty string 2012-07-23 05:54:33 +09:00
Alex Shinn
90ba17a21a s/strcmp/strncmp for abi compatibility checks 2012-07-23 05:32:55 +09:00
Alex Shinn
3ee50bd0d7 length now requires a proper list.
It still accepts cyclic lists and returns #f, like SRFI-1 length+.
It's convenient to be able to accept improper lists (e.g. for
parameter lists), so the old behavior is available as length*.
Fixes issue #97.
2012-07-21 19:22:56 +09:00
Alex Shinn
cb4d0c77f6 Fixing handling of multiple exports in a library. export-all now supported. 2012-07-21 19:01:10 +09:00
Alex Shinn
a3daf9f728 don't check for a timeout on thread-join! unless one was specified 2012-07-21 18:46:56 +09:00
Alex Shinn
fd87e62ec0 need to initialize thread timeout flag to false 2012-07-21 17:36:35 +09:00
Alex Shinn
dccc398621 adding an extra newline when interrupting from the repl 2012-07-21 17:32:03 +09:00
Alex Shinn
275bf31b13 adding optional thread debugging output 2012-07-21 17:28:09 +09:00
Alex Shinn
73e02601e4 changing sexp_call_sigaction to avoid casts 2012-07-21 17:27:09 +09:00
Alex Shinn
1053d99084 chibi main always wants to make stdin/out/err non-blocking 2012-07-21 17:23:12 +09:00
Alex Shinn
cdb8760fcc Need to unpause a paused thread if we want to terminate it. 2012-07-21 17:05:05 +09:00
Alex Shinn
680e2fe169 friendlier error message for self-referential modules 2012-07-19 22:27:15 +09:00
Alex Shinn
a9784b56f8 raising an error on non-numeric input to number->string 2012-07-19 21:37:15 +09:00
Alex Shinn
57b2bc281d apply opcode is now tail-recursive - calling it in a non-tail position is an error 2012-07-18 21:34:53 +09:00
Alex Shinn
016560e5fe Additional OOM checks - harder but still not impossible to segfault on OOM. 2012-07-17 23:40:16 +09:00
Alex Shinn
a5e4bb86ec making sure the exception procedure is valid before trying to lookup its source 2012-07-17 08:27:29 +09:00
Alex Shinn
16b71a1f22 port predicates can be called on any object 2012-07-17 07:46:32 +09:00
Alex Shinn
0c9297d0d6 forgot to add the cxr library 2012-07-17 00:15:32 +09:00
Alex Shinn
71afd5d56a Acknowledging that I may never be free of the \r evil... 2012-07-16 23:40:58 +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
0553dd41b9 Need to rename field parameter names in record constructors. 2012-07-16 22:49:48 +09:00
Alex Shinn
35226238ed Removing spurious ctx argument to sexp_make_character. 2012-07-16 22:27:41 +09:00
Alex Shinn
89dfe9ab35 Patch from Alan Watson for nicer handling of multiple value results
in the repl, and also evaling multiple sexps on the same input line.
2012-07-16 17:46:13 +09:00
Alex Shinn
582a3295d4 returning #<eof> for end of input on read-u8 2012-07-16 17:37:47 +09:00
Alex Shinn
6de7d5621d Keeping track of the maximum stack depth a procedure needs for accurate stack checks
(fixes bug #130).  Done in conjunction with code generation refactoring, so that context
objects temporarily use their specific slot instead of having space for useful fields
at runtime.
2012-07-16 16:23:54 +09:00
Alex Shinn
254f6dee05 propagating exceptions from index->offset translation in substring 2012-07-16 14:11:06 +09:00
Alex Shinn
065cdf5d5f checking type of exception procedure when propagating source info 2012-07-16 14:10:48 +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
d669b8a788 preserving exactness when adding ratios and complex numbers 2012-07-11 23:17:41 +09:00
Alex Shinn
65f5e9823a preserving exactness when multiplying a ratio by a complex 2012-07-11 23:15:23 +09:00
Alex Shinn
884764036b shortcut multiplication by exact 0 2012-07-11 23:09:25 +09:00
Alex Shinn
afacac6127 handling complex negation with a zero real part 2012-07-11 23:03:43 +09:00
Alex Shinn
386b798b35 disabling placeholder digits by default 2012-07-11 22:08:10 +09:00
Alex Shinn
b101e5c585 Fixing some corner cases with mixed rational/complex notation. 2012-07-11 22:07:05 +09:00
Alex Shinn
d45ecf42ca allowing alternate exponent markers d, f, s, l 2012-07-11 21:55:10 +09:00
Alex Shinn
6adeccf173 closing port immediately on return with-{input-from,output-to}-file 2012-07-11 21:28:14 +09:00
Alex Shinn
f895ace01b missed some bignum/ratio normalization cases 2012-07-10 23:56:51 +09:00
Alex Shinn
96d8c7d797 fixing #e prefix combined with non-finite flonums 2012-07-10 23:36:29 +09:00
Alex Shinn
2d62671df8 breaking down and adding polar notation 2012-07-10 23:19:57 +09:00
Alex Shinn
c063dadd2e build fixes for global symbols and vm profiling 2012-07-10 22:42:31 +09:00
Alex Shinn
d4cd223d7e adding a sync to build-tests 2012-07-10 22:29:44 +09:00
Alex Shinn
2af9643115 fixing missing newline for final row of formatted list output 2012-07-10 20:49:37 +09:00
Alex Shinn
0c832129df allowing configurable prompts (patch from Alan Watson) 2012-07-10 20:45:13 +09:00
Alex Shinn
a2c5d63482 makefile changes to allow linking external libs for 3rd party code 2012-07-09 20:28:18 +09:00