Commit graph

6210 commits

Author SHA1 Message Date
Matthew Mondor
dfb0f28ca2 Merge branch 'infinity-fix' into 'develop'
Infinity fix

Produce valid C code for all kinds of infinity

I have also pending NaN changes, but this requires more work.

See merge request !9
2015-09-04 19:42:38 +00:00
Daniel Kochmański
4e72ce7113 changelog: update changelog
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:32:09 +02:00
Daniel Kochmański
c8d3836f56 infinity: add regression tests
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:32:09 +02:00
Daniel Kochmański
a461f561df internal.h: fake ISO C99 INFINITY and NAN if not defined
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:32:09 +02:00
Daniel Kochmański
899f51106e cmpc: when infinity is used, emit macro "INFINITY"
and "-INFINITY" for negative infinity. These corner-cases lead to
compilation error, so no regression will be imposed even against
non-c99 compilers.

INFINITY and NAN macros are introduced by C99 standard, so such code
requires C-backend to support this math extension. Fixes #156.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:32:08 +02:00
Daniel Kochmański
43c3f21fbc changelog: update
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:31:16 +02:00
Daniel Kochmański
0d25eccfb8 regression: add back removed interfaces
Adds back ecl_import_current_thread and ecl_release_current_thread.
Closes #8.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 21:29:08 +02:00
Daniel Kochmański
0df10e8b8d changelog: update changelog
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 08:59:58 +02:00
Daniel Kochmański
aaa62d4a24 format: float: use prin1 when passed NaN or infinity
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 08:58:27 +02:00
Daniel Kochmański
ac6a446af8 style: fix broken modeline
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-04 06:45:50 +02:00
Matthew Mondor
385b8d04a8 Merge branch 'develop' of gitlab.com:embeddable-common-lisp/ecl into develop 2015-09-03 16:18:01 -04:00
Matthew Mondor
4f89d66d41 Fix some fallout from the script to correct/add Emacs and ViM syntax
directives.  Some files had more than one existing Emacs directives,
breaking the script which didn't expect this.
2015-09-03 16:16:12 -04:00
Daniel Kochmański
faf26ab48a cosmetic: bdwgc: remove autom4te.cache
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-03 21:48:21 +02:00
Daniel Kochmański
c80e3cad11 Merge branch 'style' into 'develop'
"style" temporary branch

The ECL code no longer uses tabulator characters, they were replaced
by spaces.

A custom script was used to insert/replace Emacs and ViM per-file editor
settings according to their type and the new ECL coding style.

See merge request !8
2015-09-03 18:07:04 +00:00
Matthew Mondor
8f07cd58d8 The ECL code no longer uses tabulator characters, they were replaced
by spaces.

A custom script was used to insert/replace Emacs and ViM per-file editor
settings according to their type and the new ECL coding style.
2015-09-03 07:35:47 -04:00
Daniel Kochmański
527be2a017 printer: coerce float infinity more roboustly
Basically use C function instead of a generic Lisp one.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-03 08:47:00 +02:00
Daniel Kochmański
d15c42d2a1 printer: float infinity/nan: coerce printed form to base-string
CLOS printer uses normal strings while float_to_string.d calls
push_base_string to cache printable form of infinity (and nan). Coerce
clos strings to base-string. Fixes #153. Related to #114.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-03 08:12:08 +02:00
Daniel Kochmański
9720adf0c0 tests: add stress tests submitted by James M. Lawrence
This suite needs integration and tweaking to avoid infinite loop.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 21:29:30 +02:00
Daniel Kochmański
ee2cab9c6e Merge branch 'develop' of gitlab.com:embeddable-common-lisp/ecl into develop 2015-09-02 15:59:35 +02:00
Daniel Kochmański
5f702cf071 gmp: issue autoreconf -ivf (fixes ppc64le builds)
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 15:59:18 +02:00
Philipp Marek
98faa3c60c Merge branch 'cleanup-testing' into 'develop'
Cleanup testing

Separated tests from auxiliary tools, merged tests into files corresponding to interface (aspects are separated with ^L, navigable with C-x [ and C-x ]), renamed "bugs" to "regressions" - what these tests really are.

TODO (in indefinete future):
- some tests have auxiliary functions, these should be moved to auxiliary/ directory and loaded from there, so test files contain only tests

- add back ansi-tests suite as git subtree (to keep in sync with upstream on demand)

- add mop-features suite (subtree)

- modify deftest macro to "remember" file, from which test was load and report that back

- keep test suites / interfaces in separate packages

- make running tests possible without installing ECL (not tests thing though, rather buildsystem)

See merge request !7
2015-09-02 10:22:45 +00:00
Daniel Kochmański
469b35f747 Merge branch 'develop' of gitlab.com:embeddable-common-lisp/ecl into develop 2015-09-02 11:09:49 +02:00
Daniel Kochmański
031167128a cosmetic: rename Copyright to LICENSE
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 11:09:04 +02:00
Daniel Kochmański
dc89946ae5 tests: rename 'bugs' to 'regressions'
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 10:51:51 +02:00
Daniel Kochmański
f768ad56e2 changelog: upate wrt testing
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 10:40:09 +02:00
Daniel Kochmański
0ca316c2f4 Merge branch 'develop' into cleanup-testing 2015-09-02 10:38:54 +02:00
Daniel Kochmański
6b0ccedf08 tests: fix remaing things
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 10:36:27 +02:00
Daniel Kochmański
ee77d6a1a9 tests: adjust files
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 09:33:16 +02:00
Daniel Kochmański
1d8fb039fa tests: Move tests to separate directory
Don't keep them in same directory as aux tools

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-02 09:22:24 +02:00
Daniel Kochmański
1f892acedc Merge branch 'develop' into 'develop'
cosmetic: Untabify everything.

If anything has been messed up (which it seems there hasn't), let me know.

See merge request !6
2015-09-02 06:56:06 +00:00
Zack Piper
00521d869a Untabify everything. 2015-09-01 20:10:10 +00:00
Daniel Kochmański
8b24477fda tests: rename ffi and emb tests
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 18:13:53 +02:00
Daniel Kochmański
37bebe172e tests: merge reported bugs and mixed regressions
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 18:11:55 +02:00
Daniel Kochmański
1b39e1fcf5 tests: merge compiler tests to compiler.lsp (missing files)
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 18:03:27 +02:00
Daniel Kochmański
a36d40d863 tests: merge compiler tests to compiler.lsp
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 17:32:03 +02:00
Daniel Kochmański
1173538d85 tests: merge sourceforge reports to reported-bugs
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 17:19:41 +02:00
Daniel Kochmański
2609765524 tests: merge multiprocessing tests (a few left)
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 17:08:14 +02:00
Daniel Kochmański
5da6743f3f tests: merge multiprocessing tests
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 16:54:46 +02:00
Daniel Kochmański
0188e5559c tests: merge metaobject protocol tests
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 16:42:11 +02:00
Daniel Kochmański
d5fd24d267 changelog: add #s fix
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 16:35:55 +02:00
Daniel Kochmański
dc1abbb23c tests: add regression test for #s reader
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 16:34:25 +02:00
Daniel Kochmański
1ed1a45fb2 sharp-s-reader: read should be invoked recursively
Patch provided by drmeister. Test case:

(defstruct foo a)
(read-from-string
 "(#1=\"Hello\" #S(FOO :A #1#))"))

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 15:07:06 +02:00
Daniel Kochmański
d1503ed767 tests: merge external-format tests
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-01 14:57:23 +02:00
Daniel Kochmański
a584aeb7c3 update readme (typos) 2015-08-31 08:22:52 +00:00
Daniel Kochmański
1675706f6c Merge branch 'develop' of gitlab.com:embeddable-common-lisp/ecl into develop 2015-08-31 08:58:15 +02:00
Matthew Mondor
43d854834c Merge branch 'fixnum-bits' into 'develop'
FIXNUM_BITS -> ECL_FIXNUM_BITS consistently, second try

Somehow the develop branch still used a mix of both

See merge request !5
2015-08-31 05:06:47 +00:00
Matthew Mondor
414af2ada2 Avoid constant value 32-bit rollback for 64-bit/4GB heap 2015-08-30 22:59:43 -04:00
Matthew Mondor
fb09755db4 FIXNUM_BITS -> ECL_FIXNUM_BITS consistently, second try 2015-08-30 16:35:14 -04:00
Daniel Kochmański
2f39822b29 cosmetic: remove spaces on blank lines
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-30 11:54:00 +02:00
Daniel Kochmański
c014377fe0 readme: a few stylistic cleanups
As suggested by Matthew Mondor capitalized "Lisp" and specified
additional information. Fixes #148.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-08-30 10:16:31 +02:00