Alex Shinn
0299d42807
fixing bug reading SEXP_MIN_FIXNUM
2010-04-15 22:25:35 +09:00
Alex Shinn
d5ddfe6a92
changing type_exception to use self and a type_id
...
this simplifies and reduces the number of different static strings.
specific error messages are still available with sexp_xtype_exception.
2010-04-04 10:10:17 +09:00
Alex Shinn
71821fc95a
convertin plan9 functions to new API
2010-03-30 22:06:16 +09:00
Alex Shinn
74f7c5737c
updating sexp_intern calls
2010-03-25 17:40:02 +09:00
Alex Shinn
a89956fc16
new primitives API
...
Primitives now have a signature of prim(ctx, self, n, args ...)
instead of just prim(ctx, args ...). This allows for variadic
primitives, should help clean up exception handling, and will
allow primitives generated from Scheme->C or JIT compilation.
The primitives sometimes used as utility functions from C such as
sexp_memq have been renamed with a "_op" suffix (e.g. sexp_memq_op)
and a macro sexp_memq has been provided filling in the self and n
args automatically. The self is passed as NULL in these macros,
but will be probably replaced with a reference to the opcode later.
2010-03-24 19:58:50 +09:00
Alex Shinn
e999b1a77a
Need to wrap constant-folded results in a literal.
2010-03-01 12:55:24 +09:00
Alex Shinn
efb6f24a61
don't push back final char when reading a bignum-sized float (issue 32, part 2)
2010-02-06 21:33:45 +09:00
Alex Shinn
e8030d7eb7
fixing bug when reading invalid "." in non-decimal bignums (issue 32)
2010-02-05 13:27:04 +09:00
Alex Shinn
2d8c382978
fixing sign of (- bignum flonum) (issue 31)
2010-02-05 13:17:43 +09:00
Alex Shinn
d4eaecd658
(/ big big) and (- big flo) patches from lorenzo campedelli (issue 31)
2010-01-28 01:02:33 +09:00
Alex Shinn
59e88c7ded
fixing simplify bug, neither var can be mutated for a let id substitution (issue 30)
2010-01-27 22:35:59 +09:00
foof
925401c114
fixing division of flonum by fixnum (issue #25 )
2010-01-12 13:00:37 -05:00
Alex Shinn
7c08c67815
also forgot to propagate the sign in bignum_to_double
2010-01-02 12:19:00 +09:00
Alex Shinn
227a094399
offby1 error in bignum_to_double
...
also fixing exact? definition to include bignums
2010-01-02 12:02:20 +09:00
Alex Shinn
22968ec7b3
sexp_bignum_to_double was backwards
2010-01-02 01:15:26 +09:00
Alex Shinn
4a5cae51ae
forgot to preserve a var on remainder
2010-01-01 16:16:40 +09:00
Alex Shinn
1dba7fb8fd
forgot to preserve some gc vars in the bignum lib
2009-12-30 03:49:21 +09:00
Alex Shinn
f785134851
updating plan9 mkfile to use features.h
2009-12-29 19:03:50 +09:00