Commit graph

45 commits

Author SHA1 Message Date
Alex Shinn
066d24c2d1 Not warning about undefs on an error is bad - modifying to warn for everything
except the irritants of the error, to avoid the duplicate warn+error undefined.
2012-02-02 23:44:15 +09:00
Alex Shinn
2a8fe7738e Giving a more helpful error message when not all I/O ports are available in the repl. 2012-01-02 16:33:59 +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
8eb74156f9 GC preserving in/out/err in REPL. 2011-12-20 00:51:12 +09:00
Alex Shinn
ad10e7d766 Removing cygin warning. 2011-12-17 14:31:50 +09:00
Alex Shinn
5b64ba5a9c heap size utility 'multiplier' not used with boehm 2011-12-11 14:24:45 +09:00
Alex Shinn
ffa59e37a8 Image loading needs fcntl.h (when compiling without threads). 2011-12-09 10:20:17 +09: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
Bakul Shah
0e85ac611d Fix normal exit for plan9 2011-12-04 00:27:41 -08: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
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
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
dd2814953c making command-line a parameter, and importing it and exit into (scheme process-context) 2011-11-15 23:27:58 -08:00
Alex Shinn
7dd811ad57 explicitly casting to unsigned char when using isalpha/digit/etc. 2011-11-14 15:27:02 +09:00
Alex Shinn
c57e71d3dd checking abi version in image files 2011-11-07 23:46:30 +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
a07f46d450 Removing spurious warning about prefix and suffix being used unintialized (even though they can't be). 2011-11-06 21:16:38 +09:00
Alex Shinn
370d990df5 Adding "-x module" option for alternate languages which currently just does an import-only. 2011-11-06 15:39:31 +09:00
Alex Shinn
44ac1bcb89 abstracting to use sexp_ versions of isdigit, tolower, toupper consistently, and casting to avoid warnings in cygwin 2011-11-06 14:37:59 +09:00
Alex Shinn
085afa48b2 Making magic escapes unambiguous. 2011-11-05 03:40:06 +09:00
Alex Shinn
ae77cddba0 image loading fixes 2011-11-02 13:13:07 +00:00
Alex Shinn
6ce131dc04 fixing context offset calculation 2011-10-31 21:49:34 +09:00
Alex Shinn
0bc3c74422 removing unused variable 2011-10-31 00:13:27 +09:00
Alex Shinn
1e01258724 fixing bytecode offsets in images, allowing the image heap size and init heap size to differ 2011-10-31 00:10:56 +09:00
Alex Shinn
7a15968bf5 stricter checks on image functions 2011-10-05 21:38:23 +09:00
Alex Shinn
93696841ed re-creating ports on image loading 2011-09-25 10:55:24 +09:00
Alex Shinn
4f9903db00 initial image file support 2011-09-24 17:18:35 +09:00
Alex Shinn
34638780bd don't try to compile AST types users enter directly at the repl 2011-08-28 17:58:50 +09:00
Alex Shinn
a66dd88158 forgot conditional includes for no case-folding 2011-05-24 07:29:30 +09:00
Alex Shinn
78f0e9bd22 conditionally toggling isalpha/isxdigit between function or macro depending on platform
needed for plan9 where the function definitions are not provided
2011-05-19 23:32:23 -07:00
Alex Shinn
9b0c057343 cleaning up initialization interface, adding sexp_load_standard_ports 2011-04-07 22:48:10 +09:00
Alex Shinn
1b50d709d2 allowing NULL arg to sexp_load_standard_env, updating to SEXP_SEVEN 2011-04-06 01:27:33 +09:00
Alex Shinn
0f9a23f94f -e/-p options in main had a long-standing stupid gc bug 2011-04-03 22:15:48 +09:00
Alex Shinn
e6ba6e59a5 Adding support for case-folding. 2011-03-03 00:31:32 +09:00
Alex Shinn
afc6a96d68 Adding more OOM checks (issue #59), thanks rotty. 2011-02-27 20:53:12 +09:00
Alex Shinn
369836d07b scripts should trace when DEBUG_VM is set 2011-02-12 16:59:19 +09:00
Alex Shinn
00183780fa don't make stdout/err non-blocking 2011-01-04 19:16:48 +09:00
Alex Shinn
23382e9540 allowing per-heap maximum size limit as a new argument to sexp_make_eval_context
can specify on the command line with -h 1M/2M (set to 0 for no limit)
2010-12-30 11:26:15 +09:00
Alex Shinn
a9678e5378 define doesn't overwrite existing imported bindings.
default repl env also imports standard env rather than using it
directly so redefining primitives doesn't affect standard macros.
2010-12-26 17:49:23 +09:00
Alex Shinn
96161ffcf6 fixing non-threaded build 2010-12-26 14:24:19 +09:00
Alex Shinn
2affd2c677 creating initial API for C functions to block on input ports 2010-12-11 22:15:17 -08:00
Alex Shinn
695b44332e adding interface to bytecode-literals
(need to check these when debugging gc)
2010-12-05 16:53:38 -08:00