Commit graph

119 commits

Author SHA1 Message Date
Daniel Kochmanski
72e422f1b3 cleanup: remove hierarchical packages interface
It didn't work for some cases and wasn't documented, so I'm removing
it. Freshly written tests are left in tests for someone, who would
like to reimplement them.
2017-05-13 18:06:26 +02:00
Daniel Kochmanski
818c187da5 package local nicknames: delete-package: fix removal loop 2017-05-02 08:51:03 +02:00
Daniel Kochmanski
8f7cf72636 delete-package: remove local nickname bits 2017-05-02 08:04:41 +02:00
Daniel Kochmanski
e72951826c local package nicknames: add missing functions 2017-05-01 23:13:25 +02:00
Daniel Kochmanski
8047148c8a cosmeitc: add "." to the continue statements in packages 2017-05-01 21:22:04 +02:00
Daniel Kochmanski
4d549206d5 cosmetic: bump ego :-) 2017-05-01 18:28:47 +02:00
Daniel Kochmanski
7260bfddd9 cosmetic: keep convention from other places 2017-05-01 18:27:53 +02:00
Daniel Kochmanski
f9006d4371 packages: add nicknamedby field and accessors
Add accessors to probe for local nicknames.
2017-05-01 18:27:00 +02:00
Daniel Kochmanski
b01968a320 package: process local nicknames according to their structure
(cons nickname package)
2017-05-01 15:36:32 +02:00
Daniel Kochmanski
9a1a4d48c8 packages: accessors: allocate new objects
There were two fixme's which returned internal data structure (without
copying it).
2017-04-30 12:38:48 +02:00
Daniel Kochmanski
57d588116a find-package: look first for local package nicknames 2017-04-30 12:38:13 +02:00
Daniel Kochmanski
9c2aef5599 packages: add local-nicknames to the internal structure
adjust internal functions to accept the argument.
2017-04-30 12:35:00 +02:00
Daniel Kochmański
36b1b1d3cc add package-locks abstraction
We follow the protocol proposed by SBCL.
2016-11-09 16:44:51 +01:00
Daniel Kochmański
5e8ec11bdd cosmetic: fix indent (rest of C) 2016-05-06 08:41:52 +02: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
4d19a27424 cosmetic: untabify
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-06-21 14:38:20 +02:00
Daniel Kochmański
c7e8144062 unicode: Fix builds without unicode support.
Signed-off-by: Daniel Kochmański <dkochmanski@turtle-solutions.eu>
2015-05-12 11:18:12 +02:00
Philipp Marek
997412481c Add two "t_string" cases, as the reader now always returns STRINGs.
See http://article.gmane.org/gmane.lisp.ecl.general/10410 for a discussion.
2014-05-04 20:46:14 +02:00
Philipp Marek
34253898c7 Not only BASE-STRINGs but STRINGs may be package-specifiers, too.
Needed because quoted strings are read now always read as STRING.
2014-04-28 07:42:06 +02:00
Philipp Marek
77a267c7e4 Make (EXT:PACKAGE-LOCK) return the promised value.
The (possibly invalid!) pack.locked was returned; for STRING inputs
the field aliased to "elttype", which was eg. 0xf for t_base_strings.
2014-03-09 20:35:43 +01:00
Philipp Marek
e161690265 Fixed a typo. 2014-03-09 20:31:59 +01:00
Juan Jose Garcia Ripoll
d905fb69c1 SI:PACKAGE-LOCK did not return the last value. 2012-10-09 22:41:27 +02:00
Juan Jose Garcia Ripoll
e54d9a6173 Rename type_of -> ecl_t_of 2012-07-05 23:07:34 +02:00
Juan Jose Garcia Ripoll
825fc8cbd3 Cnil and Ct are now part of legacy 2012-06-30 23:01:40 +02:00
Juan Jose Garcia Ripoll
288d5e8ce6 Force LISTP,CONSP,ATOM and SYMBOLP into legacy.h 2012-06-30 21:59:10 +02:00
Juan Jose Garcia-Ripoll
05a16801ca Rename cl_va_* macros to ecl_va_* 2012-06-24 20:46:55 +02:00
Juan Jose Garcia Ripoll
95aaab87a5 Added ecl_make_symbol() and ecl_find_package() 2012-06-10 20:35:05 +02:00
Juan Jose Garcia Ripoll
52512c15a4 Rename the stp_* and aet_* enumeration names with the ecl_ prefix 2012-06-08 00:12:48 +02:00
Juan Jose Garcia Ripoll
64a9168434 CHARACTERP, BASE_CHAR_P, BASE_CHAR_CODE_P, CODE_CHAR, CHAR_CODE, REAL_TYPE, IMMEDIATE, IMMEDIATE_TAG, FIXNUM_TAG, FIXNUM_MINUSP, FIXNUM_PLUSP, FIXNUMP and fix get the ecl_ prefix 2012-06-06 11:19:55 +02:00
Juan Jose Garcia Ripoll
fbd3587b1a Removed further warnings about uninitialized or unused variables and functions 2012-04-11 23:04:27 +02:00
Juan Jose Garcia Ripoll
036cb55928 Fixes to remove warnings about unused variables. Replaced some uses of @(return) with ecl_return*() 2012-04-10 23:20:40 +02:00
Juan Jose Garcia Ripoll
1a9789f271 Directly access the option values array and only block the process interrupt in ecl_wait_on(). 2012-03-29 22:11:29 +02:00
Juan Jose Garcia Ripoll
61aa50f929 ecl-inl.h is needed by package.d 2011-12-18 14:22:26 +01:00
Juan Jose Garcia Ripoll
ee13dcd388 Introduce _ecl_funcall[0-5] to move the core from using cl_funcall to ecl_function_dispatch. 2011-12-18 00:26:53 +01:00
Juan Jose Garcia Ripoll
e6bb812e38 Protect the GET/SET-SYSPROP hash using the same global lock as packages, which is now called cl_core.global_env read/write-lock 2011-07-31 17:03:24 +02:00
Juan Jose Garcia Ripoll
cb6fc56fc4 Remove the 'thread-safe' argument from remaining calls to cl__make_hash_table 2011-07-31 16:45:34 +02:00
Juan Jose Garcia Ripoll
4910aaf61a Premature exit out of USE-PACKAGE when a symbol can not be imported. 2011-01-30 18:11:22 +01:00
Juan Jose Garcia Ripoll
a8cd321f53 In package.d, fix wrong use of end_loop_for_in. 2011-01-23 14:50:39 +01:00
Juan Jose Garcia Ripoll
88befa2d59 Uninitialized variable in ecl_make_package(). 2011-01-16 22:36:46 +01:00
Juan Jose Garcia Ripoll
ba200e2d07 TRY_AGAIN is not a valid label name in Windows. 2010-12-17 23:54:16 +01:00
Juan Jose Garcia Ripoll
7bb3a31182 Remove unused #define in package.d 2010-10-30 00:04:58 +02:00
Juan Jose Garcia Ripoll
4eee8dce57 Simplify and reorganize RENAME-PACKAGE 2010-10-25 22:43:04 +02:00
Juan Jose Garcia Ripoll
c86c8bd5c0 Move packages to read/write locks 2010-10-24 17:53:44 +02:00
Juan Jose Garcia Ripoll
1e3eb5b62a Global locking is done through three different locks, cl_core.global_lock, error_lock and package_lock. 2010-10-24 17:53:29 +02:00
Juan Jose Garcia Ripoll
89ad07fefc The list of packages to be created is now thread-local and its manipulation is thus thread safe. 2010-10-24 00:00:22 +02:00
Juan Jose Garcia Ripoll
c4dd32ca96 Third iteration at the problem with packages_to_be_created. Now this variable is associated to a flag that deactivates its use outside read_VV's reader. 2010-09-05 22:43:49 +02:00
Juan Jose Garcia Ripoll
b9b648e16e The default rehash size and threshold are now static constants. 2010-08-21 11:53:33 +02:00
Juan Jose Garcia Ripoll
cdc6ea3363 It is necessary to check that the right symbol is being processed by UNEXPORT2, because blindly proceeding causes slight corruption of the package structure and may result in quite cryptic error messages in loosely connected pieces of code (A. Gavrilov) 2010-03-20 12:12:48 +01:00
Juan Jose Garcia Ripoll
01e227c402 Replaced many uses of type_of() with specialized macros (ECL_BIT_VECTOR_P, ECL_BASE_STRING_P, etc) 2010-02-28 01:09:13 +01:00
Juan Jose Garcia Ripoll
86c211a6a1 Optimize ecl-inl.h for small cons and use of ecl_unlikely. New macros ECL_CONSP, ECL_LISTP, ECL_ATOM, ECL_SYMBOLP 2010-02-27 09:47:05 +01:00