Alex Shinn
580aaf35ff
match sexp_gc_releaseN count in sexp_add_import_binding
...
The count is not actually used but could be in the future.
2024-05-29 09:26:40 +09:00
McKay Marston
27071e6c8f
ifdef the return status so that non-plan9 systems get the real value
2023-02-04 16:36:49 -08:00
McKay Marston
0aa515730f
Fix exit call on plan9/9front
...
* make sure exits is passed a nil on success
* make sure main exits with a proper exits call
2023-02-03 17:19:46 -08:00
Alex Shinn
0eeeac7650
Make environment immutable and add mutable-environment alternative (issue #863 ).
2022-10-04 16:07:36 +09:00
Alex Shinn
e7486dd7df
allow -S<standard> (issue #819 )
2022-03-20 10:02:06 +09:00
Alex Shinn
e587881c2c
only add a dummy script name argument for the -R usage, not -r ( fixes #814 )
2022-02-23 07:44:48 +09:00
Alex Shinn
a92289ceb9
use return code from main in SRFI 22 usage ( fixes #783 )
2021-11-07 10:13:49 +09:00
Lassi Kortela
3a5f884144
Simplify snprintf usage
...
snprintf(buf, sizeof(buf), ...) is the canonical idiom.
2021-08-07 23:17:38 +03:00
Nguyễn Thái Ngọc Duy
27adc08ba6
chibi-scheme.1: document -b
...
It's added in fad9e4ca
(don't make stdio nonblocking by default, allow
override with -b, 2017-05-07)
2021-05-04 18:06:06 +07:00
phillbush
681f781208
it's /usr/bin/env
2021-05-02 21:52:21 -03:00
Alex Shinn
8fcd4d1f88
remove spurious debug code
2021-04-27 15:50:22 +09:00
Alex Shinn
3cf62f033a
store stack traces directly in top-level exceptions to more consistently be able to report them from C
2021-04-26 21:40:39 +09:00
Alex Shinn
70af1d6394
Friendlier error for bad trace command (issue #733 ).
2021-03-23 12:13:09 +09:00
Lassi Kortela
ac698ce6ae
Re-implement SRFI 193 (Command line)
2021-02-01 21:29:26 +02:00
Alex Shinn
9f0ed1a869
Revert "Implement SRFI 193: Command lines"
2021-01-24 19:57:55 +09:00
Lassi Kortela
65b197f7de
Implement SRFI 193: Command lines
2020-08-03 13:24:18 +03:00
Alex Shinn
4335d238fb
image options are harmless in non-image build; images not supported on 32-bit arch
2020-07-31 15:32:59 +09:00
Alex Shinn
306cc73bd6
Revert "image options are harmless in non-image build; images not supported on 32-bit arch"
...
This reverts commit 9b859eda36
.
2020-07-31 15:32:18 +09:00
Alex Shinn
9b859eda36
image options are harmless in non-image build; images not supported on 32-bit arch
2020-07-31 15:31:43 +09:00
Alex Shinn
daa7263690
remove debug line
2020-05-27 18:37:03 +09:00
Alex Shinn
95310e5823
no more strcpy/sprintf (issue #653 )
2020-05-27 18:35:18 +09:00
Lassi Kortela
bb0a0054c8
Write usage to stderr when bad options given
2020-04-23 13:59:27 +03:00
Alex Shinn
957ffe6a42
return successfully on --help (issue #626 )
2020-04-23 19:27:52 +09:00
Alex Shinn
336a69a416
-R needs interpreter name, not SRFI 22
2019-01-01 23:18:49 +08:00
Alex Shinn
2962f68ced
fix -R usage
2019-01-01 22:49:50 +08:00
Alex Shinn
43d6d20598
fix -xchibi.primitive and spurious output in snow-chibi (thanks Martin Hayman)
2018-12-28 23:29:13 +08:00
Edwin Watkeys
6c9e5d3c54
fix invocation of main
2018-12-11 14:08:45 +01:00
Alex Shinn
06c27d81ce
command-line shouldn't include interpreter name (fixes issue #484 )
2018-12-10 23:44:39 +08:00
Alex Shinn
7cd26b9823
advanced repl should use (scheme small) by default
2018-01-16 21:23:21 +09:00
joe9
b85201f81d
patch to compile on 9front
2018-01-12 19:26:17 -07:00
Alex Shinn
f5b2ba6fe3
nicer error for bad images
2018-01-07 23:54:31 +09:00
Alex Shinn
63b6151230
fix patch for scheme-r7rs
2017-11-18 18:17:45 +09:00
Alex Shinn
e0dcb88b8a
Merge pull request #435 from omasanori/srfi-22-scheme-r7rs
...
[RFC] Treat `scheme-r7rs` command name as in SRFI 22.
2017-11-18 14:36:07 +09:00
okuoku
5558da5d2b
main: Silence warning with !SEXP_USE_GREEN_THREADS
2017-11-11 04:46:25 +09:00
Alex Shinn
ed0be227cc
-iimage should be non-fatal for a missing image
2017-08-27 10:28:24 +09:00
Alex Shinn
582c46935e
documenting -D, -t and -T options
2017-06-29 14:14:39 +09:00
Masanori Ogino
76bd596aba
Treat scheme-r7rs
command name as in SRFI 22.
...
When the interpreter is named `scheme-r7rs`, SRFI 22's semantics is
assumed, invoking `main` procedure regardless of `-r` option.
Fix #416 .
Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
2017-06-13 22:26:55 +09:00
Masanori Ogino
361e8e6590
Remove argv[0] from the arguments of main_symbol.
...
While the (command-line) in (scheme process-context) contains the
command name (argv[0]), SRFI 22 specifies that the interpreter passes
the command-line arguments except argv[0] to the script.
Fix #413 .
Signed-off-by: Masanori Ogino <masanori.ogino@gmail.com>
2017-06-10 08:54:49 +09:00
Alex Shinn
fad9e4ca8b
don't make stdio nonblocking by default, allow override with -b
2017-05-07 19:42:59 +09:00
Alex Shinn
0fa1179c2f
add -T option to disable TCO
2017-01-14 16:51:07 +09:00
Alex Shinn
57c6d7c1ec
don't try printing a potentially corrupt stack after OOS (issue #371 )
2016-07-10 08:30:30 +09:00
Alex Shinn
82ebd3cbc3
remove unused vars, restore endianess feature
2016-06-12 22:58:35 +09:00
Alex Shinn
08494037ea
making features a context global
2016-06-12 14:25:46 +09:00
Alex Shinn
1278c9b3f6
removing debug line
2016-06-07 23:45:55 +09:00
Alex Shinn
16eae5341e
adding -Dfeature command-line option (issue #356 )
2016-06-07 23:03:38 +09:00
Marc Nieper-Wißkirchen
fb14733921
Prevent segfault when '-t' option is given without argument
2016-06-06 08:57:45 +02:00
Alex Shinn
eed963381c
allow loading images from offsets
2016-03-13 09:08:41 +09:00
Alex Shinn
524179388d
making image save/load functions public
2016-03-08 23:13:16 +09:00
Alex Shinn
8ff6d7f4b8
remove // comments, uneeded checks
2016-02-20 23:35:41 +09:00
Chris Walsh
2005c19ea0
Added full support for packed images, both for static and dynamic libraries.
2016-02-15 21:12:58 -05:00