Marc Nieper-Wißkirchen
232dc6ef20
Fix SRFI 227 exports
2021-12-11 14:27:20 +01:00
Alex Shinn
3080087d8c
stop after first compile error in an if ( fixes #792 )
2021-12-05 09:18:54 +09:00
Alex Shinn
9a17254536
guard against opcodes
2021-12-03 08:33:28 +09:00
Alex Shinn
9a48a110b8
add bounds check
2021-12-02 22:07:57 +09:00
Alex Shinn
0da288d053
implement (srfi 229)
2021-12-02 22:03:58 +09:00
Alex Shinn
71cc9b0d3c
add make-procedure to (chibi ast)
2021-12-02 22:02:03 +09:00
Alex Shinn
6e636594a5
simplify opt-lambda def; copy list tail for rest arguments
2021-11-25 22:01:59 +09:00
Alex Shinn
f29af14e2e
Merge branch 'master' of github.com:ashinn/chibi-scheme
2021-11-25 00:16:56 +09:00
Alex Shinn
1eee928e67
allow non-optional bindings in let-optionals[*]
2021-11-25 00:14:15 +09:00
Alex Shinn
2820aab6e5
Merge pull request #788 from dpk/srfi-227
...
Add support for SRFI 227
2021-11-24 18:36:58 +09:00
Daphne Preston-Kendal
427629a43e
Add support for SRFI 227
2021-11-24 10:24:21 +01:00
Alex Shinn
7a6aae39a0
Merge pull request #787 from arthurgleckler/master
...
Fix disconnects. Support more MIME types. Fix comment.
2021-11-19 16:17:30 +09:00
Arthur A. Gleckler
9b6099ca87
Support more MIME types for common file types.
...
In `servlet-respond', the server defaults to Content-Type "text/html;
charset=UTF-8" for extensions that don't appear in
`mime-type-from-extension'. This meant that CSS files, JavaScript
files, and various types of image files were getting the wrong
Content-Type, which was fine when they were served directly, but
caused clients to close the connection when they were loaded over
HTTP/1.1, which can deliver back-to-back resources on the same
connection.
Sort the types in the `mime-type-from-extension' list now that it is
longer. It's still not long enough for the order to be material for
performance.
2021-11-18 22:09:47 -08:00
Arthur A. Gleckler
153b4d894a
Fix typo in comment.
2021-11-18 18:06:40 -08:00
Alex Shinn
4dde693435
http servers should ignore SIGPIPE by default
2021-11-19 10:49:04 +09:00
Alex Shinn
182048ed9a
adjust for rounding up converting from fixnum to double in exact-integer-sqrt ( fixes #786 )
2021-11-08 09:27:50 +09:00
Alex Shinn
a92289ceb9
use return code from main in SRFI 22 usage ( fixes #783 )
2021-11-07 10:13:49 +09:00
Alex Shinn
7be38e044a
Merge pull request #780 from jpellegrini/srfi-144-fix
...
Add missing constants to SRFI-144
2021-11-07 09:56:24 +09:00
Alex Shinn
1f0f07114b
fix sqrt of complex negative zero (issue #785 )
2021-11-07 09:55:24 +09:00
Jeronimo Pellegrini
ce97808201
Add missing constants to SRFI-144
...
The following constants were missing from Chibi's SRFI-144
implementation:
fl-1/e
fl-e-pi/4
fl-1/log-2
fl-log-3
fl-log-pi
fl-1/log-10
fl-2pi
fl-pi-squared
fl-degree
fl-gamma-1/2
fl-gamma-1/3
fl-gamma-2/3
2021-09-29 00:57:31 -03:00
Lukas Böger
bf881b3e61
Explicitly add -lm and conditionally -lutil/-ldl on linux
2021-09-19 22:18:12 +09:00
Alex Shinn
9e523b6832
Merge pull request #764 from jgesswein/fix-test-runner-indentation
...
Fix indentation of test runner output
2021-09-06 14:11:54 +09:00
Jürgen Geßwein
e2c8619a21
Implement review comments
...
Add comment to procedure indent-string to indicate need for a reset for
a second report.
Correct import of (chibi optional).
2021-09-05 13:15:00 +02:00
Alex Shinn
1881116804
enforce order of let-optionals* val/rest binding in non-chibi impl (issue 778)
2021-09-02 12:58:41 +09:00
Alex Shinn
6be3784db0
nitpick (issue #778 )
2021-08-30 17:27:33 +09:00
Alex Shinn
08d2847767
explicitly state that it is an error if the default values mutate the let-optionals list (issue #778 )
2021-08-30 16:15:57 +09:00
Alex Shinn
22e89b168a
fix array-tile
2021-08-19 19:22:29 +09:00
Alex Shinn
57e4652ea6
Assert same domains in array-for-each, as per the spec and implicitly
...
depended on by the implementation.
2021-08-16 20:28:03 +09:00
Alex Shinn
a14f2d179a
rename bare let in case expansion (issue #772 )
2021-08-14 00:03:01 +09:00
Alex Shinn
6cafda8916
Decouple syntax-case from the Chibi core.
...
This restores third-party (ab)users of the Chibi macro system such
as in https://gist.github.com/baguette/2632464 , while allowing us
to break those uses in more interesting ways.
It also keeps the core slightly smaller (both in C and Scheme)
and speeds up the macro expansion process.
2021-08-10 23:19:35 +09:00
Alex Shinn
d10ea607e2
Merge pull request #770 from lassik/snprintf
...
Simplify snprintf usage
2021-08-10 14:19:23 +09:00
Lassi Kortela
3a5f884144
Simplify snprintf usage
...
snprintf(buf, sizeof(buf), ...) is the canonical idiom.
2021-08-07 23:17:38 +03:00
Jürgen Geßwein
e0497b3084
Implement review comments
...
Add some newlines and a comment to improve readability.
Use local string port instead of parameterizing current-output-port.
Pass symbol 'BEGIN to tell test reporter that evaluation of a test
starts. Adapt documentation of current-test-reporter accordingly.
Use define-opt instead of case-lambda.
2021-08-07 21:14:11 +02:00
Alex Shinn
4907d53922
make pid_t and some other POSIX integer types signed (issue #769 )
2021-08-04 16:26:11 +09:00
Alex Shinn
f1b8a5bce9
Merge pull request #768 from ashinn/syntax-rules-parser
...
Parse syntax-rules more strictly
2021-08-04 00:11:58 +09:00
Marc Nieper-Wißkirchen
1f9b4796d6
Parse syntax-rules more strictly
...
See issue #767 .
2021-08-03 17:05:37 +02:00
Alex Shinn
1f508fbdb5
Merge branch 'master' of github.com:ashinn/chibi-scheme
2021-07-28 17:04:36 +09:00
Alex Shinn
18d0adf13b
signal error on improper lists passed to map/for-each
2021-07-28 17:00:40 +09:00
okuoku
5de159a72a
Merge pull request #761 from lubgr/cmake-install-target
...
CMake update 3/3: provide install target
2021-07-28 10:46:45 +09:00
Alex Shinn
9710962cd2
don't assume map works on improper lists in cpp-define
2021-07-28 10:35:05 +09:00
Alex Shinn
7854371728
ensure ffi assertions are a proper list
2021-07-28 10:25:18 +09:00
Alex Shinn
dd05444d91
Merge pull request #763 from lubgr/fix-unused-variable-warning
...
Triviality: silence an unused variable warning in compiled test
2021-07-25 22:24:24 +09:00
Jürgen Geßwein
b23db00aed
Fix indentation of test runner output
...
Fix standard test runner so that its output is properly indented and
lines are properly terminated.
Refactor standard test runner so that it is possible to plug in another
runner with different output.
2021-07-25 13:21:34 +02:00
Lukas Böger
2e41cf06b2
don't dump images in static library configurations
2021-07-23 22:47:41 +01:00
Lukas Böger
cbf8cfb392
remove unused variable
2021-07-23 22:19:27 +01:00
Lukas Böger
b827cfb429
Build images and .meta lists with ALL target
2021-07-23 22:13:46 +01:00
Lukas Böger
fe953319ff
fix dependencies of package list generation command
2021-07-22 21:08:41 +01:00
Alex Shinn
24fb7585c7
set! should guard against exceptions in the var ref lookup (fixes issue #762 )
2021-07-22 21:43:50 +09:00
Lukas Böger
cba39c2ede
install an EXPORT set and cooperate with find_package
2021-07-21 21:01:33 +01:00
Lukas Böger
7015657c42
add missing template/helper files for install targets
2021-07-21 21:01:33 +01:00