Commit graph

2746 commits

Author SHA1 Message Date
Daniel Kochmański
2b1db01c39 cosmetic: vp 2016-05-06 08:43:40 +02:00
Daniel Kochmański
5e8ec11bdd cosmetic: fix indent (rest of C) 2016-05-06 08:41:52 +02:00
Daniel Kochmański
794abd1ff6 c-indent: g-n 2016-05-05 16:28:32 +02:00
Daniel Kochmański
c5cfe372f8 random: fix rng type bug 2016-05-05 16:27:04 +02:00
Daniel Kochmański
3bd9799a2f gbc: remove leftover 2016-05-05 15:30:46 +02:00
Daniel Kochmański
ae7cae404d indent: d-f 2016-05-05 15:24:58 +02:00
Daniel Kochmański
749b97d06c indent: indent files according to GNU standard
(a-c)

doc: list files
2016-05-05 13:40:27 +02:00
Daniel Kochmański
ac5f011f57 getcwd: fix too long pathnames bug 2016-04-18 10:45:12 +02:00
Daniel Kochmański
6ff5d20417 unify: remove obsolete interface 2016-03-11 16:06:45 +01:00
Daniel Kochmański
61500316b7 gbc: remove obsolete (non-functional) GC
I would like to bring it back to life in the future, but we have to
clean the interfaces first.
2016-03-11 16:06:45 +01:00
Daniel Kochmański
562b30dff0 ms-dos: remove lingering references 2016-03-11 16:06:45 +01:00
Daniel Kochmański
edfc2ba785 earith: remove obsolete bignum arith 2016-03-11 16:06:45 +01:00
Daniel Kochmański
645b29992b loop: remove obsolete MIT loop system 2016-03-11 16:06:45 +01:00
Daniel Kochmański
8583b08258 Merge branch 'win_merge' into 'develop'
Win64 and Visual Studio compiler

* Fix compilation error.
* Fix feature discover on cl compiler.

Kindest Regards.
f.

See merge request !19
2016-03-02 19:21:46 +00:00
Fabrizio Fabbri
ce828c4000 Win64 and Visual Studio compiler
* Fix compilation error.
* Fix feature discover on cl compiler.
2016-03-02 12:43:36 -05:00
Fabrizio Fabbri
52de2ceea6 Fix compilation for AIX and xlc compiler. 2016-03-02 12:08:48 -05:00
Daniel Kochmański
10bd3b613f cleanup: remove obsolete dffi code
ECL uses libffi for a long time and these code isn't even
compiled. ECL_DYNAMIC_FFI supported only limited number of x86 and
x86_64 bit platforms (transcended by libffi) and was basically dead. Not
sure if it would even compile even fater changing the scripts.

This changes were pretty straightforward, since the code was nicely
isolated with the appropriate ifdefs, but some testing is necessary
here.
2016-03-01 12:27:03 +01:00
Daniel Kochmański
093ba0ab62 Merge branch 'signals' into develop 2016-02-03 15:14:33 +01:00
Daniel Kochmanski
cd2e04bb22 windows: some love for this poor system 2016-02-03 15:13:39 +01:00
Daniel Kochmański
a119b491c0 windows: handle events 2016-02-02 13:14:36 +01:00
Daniel Kochmański
b5809f7e96 current_dir: signal internal error getcwd fails
Fixes #211.
2016-01-30 18:11:38 +01:00
Daniel Kochmański
4ea78920f9 feature: add 'Del' for 'Rubout' character 2016-01-28 11:48:55 +01:00
Daniel Kochmański
e20576df32 fix: si:open-unix-socket-stream accepts both string and base-string
(automatic coercion is performed)
2016-01-28 11:47:48 +01:00
Daniel Kochmański
4d0433ed7e defsetf: change DO-DEFSETF function prototype
Carry STORES to do-setf-method-expansion in order to fix bug with long
form of DEFSETF (using multiple values as assignment variables is
legal). Change is backwards compatible.
2016-01-26 17:40:52 +01:00
Daniel Kochmański
2ed54ffee6 cleanup: unixint: remove dead code
Old implementation of `asynchronous_signal_servicing_thread' was
reimplemented long time ago. Old implementation was still present in
sources surrounded with `#if 0 ... #endif'. Remove it.
2016-01-23 18:07:40 +01:00
Daniel Kochmański
4aa1142c6f extensions: include cmuutil.lsp in the build file
Also add symbol with-clean-symbols to the symbols list. This utilities
are used all across the sources and it's easier to navigate and
understand ECL sources if all the utilities it uses are available.
2016-01-04 12:01:11 +01:00
Daniel Kochmański
f0ba1d3ecb ffi: fix bug in si_make_foreign_data_from_array
Use ECL_ARRAYP instead of testing for a specific types of array. It's
worth to keep in mind, that STRING will be an array of integers, while
BASE-STRING will be an array of the ordinary chars. Fixes #142.
2016-01-04 10:35:45 +01:00
Daniel Kochmański
81573a3fe6 Merge branch 'develop' into mobile 2015-11-07 19:54:36 +01:00
Stas Boukarev
dfe68fe96a Reduce cache size for generic functions.
Instead of occupying two vector elements (one for the actual value and
one for a bit indicating whether it's an eql-specializer) store cons
cells containing eql specializer values from
CLOS::GENERIC-FUNCTION-SPEC-LIST.
2015-11-01 21:52:57 +03:00
Daniel Kochmański
5532d4b996 generic-dispatch: move copy operation
Move copy operation before the function which has side-effects. Reported
and fixed by clasp dev team. Thanks!
2015-10-31 13:29:35 +01:00
Daniel Kochmański
c103323cf6 c-streams: use `read' when FILE_CNT not available
`fread' may buffer some input and `listen' will return an incorrect
value. This is mainly the case when we cross-compile and user is too
lazy to check his `stdio.h' file. Fixes #185.
2015-10-23 18:16:50 +02:00
Daniel Kochmański
7280f14f55 mobile: fix compilation of android app from examples/
Don't use C99 specific syntax for `for' loop and use functions
lib_init_* instead of main_lib_init_* which aren't exported.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-10-23 18:16:50 +02:00
Sylvain Ageneau
df019224f8 mobile: support Nacl and PNacl
This patch adds support for chrome's Native Client and Portable Native
Client
2015-10-23 18:12:54 +02:00
Daniel Kochmański
30e3184d08 buildscripts: use provided ${AR} instead of host ar
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-10-23 18:12:54 +02:00
Daniel Kochmański
fe68809a34 mobile: add android platform to the build scripts
This allows enables building of ECL for android platform.
Based on work of Sylvain Ageneau.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-10-23 18:12:54 +02:00
Daniel Kochmański
251bf80461 Merge branch 'develop' into random-64 2015-10-01 14:10:41 +02:00
Attila Lendvai
15f3d7feab fix bootstrap error printing in universal_error_handler.
Signed-off-by: Attila Lendvai <attila@lendvai.name>
2015-09-29 17:41:28 +02:00
Daniel Kochmański
0d639873ff hash.d: compute hash_string properly
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 22:55:35 +02:00
Daniel Kochmański
61b30811c1 random: provide 64 bit implementation
This change pulls dependency on C99 types

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 22:37:48 +02:00
Daniel Kochmański
f1dda6384c random-state: use portable solution
This results in twice as big array as we could use if uint32_t was
granted with C99 - half of the bytes on 64 bit platforms are filled
with 0. Despite that it's clean and portable solution without
immediate imposing dependency on C99.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 20:36:20 +02:00
Daniel Kochmański
de322d9b0c cosmetic: use (void) instead of ()
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 18:07:21 +02:00
Daniel Kochmański
dd37dd2851 random-state: more informative message
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 16:32:50 +02:00
Daniel Kochmański
a8432f4f9c random-state: use 32 bit types for 32 bit implementation
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-22 16:16:40 +02:00
Daniel Kochmański
82ef9aa318 random-state: allow initialization from the array
Array used for initialization is an array of the final values of
internal vector used to generate next randoms which should be a
product of initialization from a random seed.

This ability is required by CLHS to be able to read back the printed
random state. To print readable representation of random state
*print-readably* should be bound to T.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-21 18:08:50 +02:00
Daniel Kochmański
03efe83b99 random-state: use byte32 array for internal representation
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-21 17:09:39 +02:00
Daniel Kochmański
3e3423bce4 random: add comment for 64 rng
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-09-21 10:30:07 +02:00
Daniel Kochmański
07ad0fc2f2 init-random: fix #$ for fixnums (allow providing seed)
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-09-21 10:22:51 +02:00
Daniel Kochmański
783f4730a8 init-random: move array allocation to init_genrand
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-09-21 10:21:44 +02:00
Daniel Kochmański
fc7443732b init-random-state: factor out function taking seed argument
We want this to be able to initialize random state from the fixnum and
from the array (following commits). This also simplifies code a
little.

Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-20 18:37:18 +02:00
Daniel Kochmański
079976263c cosmetic: add copyright and fix whitespaces
Signed-off-by: Daniel Kochmański <daniel@turtleware.eu>
2015-09-20 16:30:53 +02:00