Commit graph

47 commits

Author SHA1 Message Date
Alex Shinn
e82b500b61 adding explicit type-casts when using sexp_cpointer_value,
not all compilers will allow implicit conversions from void*.
also removing Linux-specific stime and utime from siginfo_t.
2009-12-26 09:01:45 +09:00
Alex Shinn
7392e082cc adding srfi-46 support 2009-12-26 08:07:28 +09:00
Alex Shinn
05ee7c6725 adding (... ...) escapes and SRFI-46 ellipse specifiers to syntax-rules 2009-12-26 02:07:18 +09:00
Alex Shinn
fea2428eb6 auto-expanding hash-tables 2009-12-26 01:48:12 +09:00
Alex Shinn
09b7b7de69 can't have a null timeval in settimeofday 2009-12-26 01:10:27 +09:00
Alex Shinn
a1941ff08a somewhat reluctantly adding dynamic-wind 2009-12-26 00:50:45 +09:00
Alex Shinn
4e5889a6f4 forgot to add signal.c used by process.stub 2009-12-25 23:32:38 +09:00
Alex Shinn
77f2990f28 factoring (chibi posix) into filesystem, process and time modules.
the time module is garbage, because libc time handling is garbage.
the signal handling is still experimental, use at your own risk.
still need a host module for user/group and other host information.
2009-12-25 21:11:56 +09:00
Alex Shinn
bfbc9313ed fixing import bug (was ignoring exports list except when using
only/except/rename/prefix modifiers)
2009-12-24 14:53:30 +09:00
Alex Shinn
cb1859c683 allowing link on input parameters for use with functions like readdir 2009-12-22 22:55:46 +09:00
Alex Shinn
6da435d21c at great pains, the stubber can generate (ugly) code for getcwd 2009-12-22 22:33:53 +09:00
Alex Shinn
e93c1b1483 adding heap-dump utility for outputting the contents of the heap 2009-12-21 16:17:37 +09:00
Alex Shinn
ffdce3639b adding import-immutable to minimize heap usage 2009-12-20 16:08:19 +09:00
Alex Shinn
427eb51ad6 removing unneeded make-syntactic-closure from rsc-macro-transformer 2009-12-18 23:34:24 +09:00
Alex Shinn
69166bb523 moving init.scm and config.scm to the module directory 2009-12-18 21:31:03 +09:00
Alex Shinn
6fe11ffcd1 Renaming all USE_ settings and all OP_, OPC_ and CORE_ enums
to have an SEXP_ prefix.  Now all values from the headers
are prefixed with either sexp_ or SEXP_, important for ease
of embedding.  "make USE_BOEHM=1" still works as an alias
for "make SEXP_USE_BOEHM=1".

Sorry if this patch breaks your code, it had to be done
sooner or later.
2009-12-18 15:58:23 +09:00
Alex Shinn
9c77070888 fixing srfi-27 support for systems with posix rand_r but not random_r 2009-12-18 14:43:28 +09:00
Alex Shinn
c6b0c2319c adding srfi-27 2009-12-16 17:43:56 +09:00
Alex Shinn
366e0ee726 adding heap-stats module (hackers only, not built by default) 2009-12-14 14:34:46 +09:00
Alex Shinn
f1263dcc19 adding trailing newline 2009-12-14 13:57:40 +09:00
Alex Shinn
99d8c585f9 adding srfi-33 support (needs testing) 2009-12-14 13:46:04 +09:00
Alex Shinn
f4bb578d4d adding uri module from hato 2009-12-12 17:23:32 +09:00
Alex Shinn
3f2a9c9630 adding abstract pathname module
this is for use with uri's - it doesn't access the filesystem
or resolve symlinks, that functionality will be provided in
another module.
2009-12-12 17:00:57 +09:00
Alex Shinn
3d02285732 using ER let-keyword-form, removing match dependency 2009-12-12 16:58:31 +09:00
Alex Shinn
d2e094e4c1 simplifying code 2009-12-12 16:51:50 +09:00
Alex Shinn
2a424658b0 adding extra lambda accessors to ast lib 2009-12-12 16:30:06 +09:00
Alex Shinn
e5163d7e3b expanding internal defines in lambdas 2009-12-12 16:02:38 +09:00
Derick Eddington
14c99c4729 fixing identifier comparison bugs 2009-12-06 21:34:30 -08:00
Alex Shinn
f969364176 adding initial macroexpand utility
This expands an expression and gives you an sexp representation
of the resulting ast, renaming symbols when there are conflicts.
It doesn't guarantee the minimum number of renames (neither in
terms of renamed bindings nor renamed instances) but tries to be
minimal and does guarantee no renames if there are no conflicts.

This is just for debugging purposes - chibi itself directly
uses the AST without renaming or doing anything like this.
2009-12-06 23:17:37 +09:00
Alex Shinn
bb804f8062 fixing path of loop.scm 2009-12-06 17:42:16 +09:00
Alex Shinn
0efd491c24 fixing nested let-syntax hygiene, simplifying error handling
also providing better errors in some cases, and exiting with
a non-zero status on script errors
2009-12-06 17:40:50 +09:00
Alex Shinn
01f21cc905 adding initial ast module 2009-12-05 19:05:41 +09:00
Alex Shinn
5d2f5912ce adding parent links to cpointers to prevent freeing shared structures 2009-12-05 17:17:55 +09:00
Alex Shinn
6bd1bd3687 adding directory-files to posix module 2009-12-02 03:51:39 +09:00
Alex Shinn
b49153dfdf adding time_t type handling to stubber, with 2010 "chibi" epoch 2009-12-02 03:13:04 +09:00
Alex Shinn
f9e67daf43 adding initial stubber with partial posix and net modules 2009-11-30 04:07:57 +09:00
Alex Shinn
532a717ed9 using relative paths for include files 2009-11-28 17:44:47 +09:00
Alex Shinn
574b1daa32 using include-shared for shared object files for portability 2009-11-28 17:27:01 +09:00
Alex Shinn
025aae80d6 adding tree search patterns to (chibi match) 2009-11-25 22:46:38 +09:00
Alex Shinn
cca25351fe adding srfi-98 2009-11-23 02:42:03 +09:00
Alex Shinn
671b983214 adding (chibi match) module 2009-11-23 02:07:05 +09:00
Alex Shinn
8481f543a9 cleanup, making infinities optional, fixing build for plan9 2009-11-23 01:54:22 +09:00
Alex Shinn
3ecea4d666 adding define_foreign_opt to bind C functions with optional parameters
moving several opcodes to normal FFI functions, considering
doing the same for all I/O opcodes.
2009-11-16 04:04:23 +09:00
Alex Shinn
0581b41b1e adding hash-tables and a more friendly FFI 2009-11-16 00:52:16 +09:00
Alex Shinn
edd08d6740 adding srfi-9 based on native types 2009-11-11 01:27:20 +09:00
Alex Shinn
eafd40c193 adding some handy syntax modules 2009-11-03 01:44:36 +09:00
Alex Shinn
62c390d68e initial module system 2009-10-13 18:29:18 +09:00