Commit Graph

12 Commits

Author SHA1 Message Date
Carlo Dapor 9f2575ce5e Argument to abs() is actually long, not int, thus use labs(). 2017-08-13 20:03:13 +02:00
Doug Currie 8342f9a1e9 fix issue #33 Negating most-negative-fixnum doesn't. (#35)
* fix issue #33 Negating most-negative-fixnum doesn't.

* Add unit test for issue #33 Negating most-negative-fixnum doesn't.
2016-11-15 17:49:18 -05:00
Jeff Bezanson 68c5b12255 fix #22
segfault printing stack trace for error during evaluation of argument
default values
2016-08-09 22:58:44 -04:00
Rick Hanson 74041edf56 Make FreeBSD a "first class citizen" among femtolisp's build OSes.
It looks like FreeBSD should do what OpenBSD does in femtolisp's code.
The biggest change here (I think) is that of determining the correct
value of CC in the Makefile(s).  As of version 10, FreeBSD's base
compiler is clang; so there is now some logic in the Makefile(s) to
determine if the build is occurring on a FreeBSD system >= 10.0.  If
so, then the value of CC will be "clang"; otherwise, it will be "gcc",
as before.
2015-04-11 15:21:02 -04:00
Jeff Bezanson 07dfa697df Merge branch 'master' of github.com:JeffBezanson/femtolisp 2013-06-10 19:13:52 -04:00
Jeff Bezanson 3293630c84 fix argument handling bug in fl_map1
need to pop after _applyn; functions might rewrite the stack to
contain non-values.
2013-06-10 19:12:53 -04:00
Jeff Bezanson 0aa1359a3e Merge branch 'master' of github.com:JeffBezanson/femtolisp 2013-06-08 19:29:46 -04:00
Jeff Bezanson a76b29eee8 several minor changes and additions:
- add io.ungetc and string.isutf8
- maintain input order in delete-duplicates
- error for unicode escapes greater than 0x10ffff
- make more builtins constant (use setc instead of set)
- use prog1 in begin0 macro
- array-ref was incorrectly called array-ref! in aliases.scm
- use (void) instead of () in 0-arg C functions
- don't do arithmetic with void*
2013-06-08 19:29:15 -04:00
James Turner 19a835847c Add support for OpenBSD 2013-06-03 21:40:14 -04:00
Jeff Bezanson ee807a2cf3 fix a bug in map
faster delete-duplicates for long lists
2013-02-11 04:48:21 -05:00
Jeff Bezanson a7c0396a2f setting numeric locale to "C" to make sure literals are parsed correctly 2012-02-21 12:33:35 -05:00
Jeff Bezanson 2b34bcfbd3 moving stuff around some more 2012-02-17 17:53:34 -05:00