1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-01 04:10:18 +02:00
Commit graph

2560 commits

Author SHA1 Message Date
Dirk Herrmann
cc4feeca51 * Deprecated function scm_call_catching_errors.
* Updated root-smob initialization.
2000-07-18 07:02:57 +00:00
Marius Vollmer
007e7c3588 *** empty log message *** 2000-07-17 20:00:22 +00:00
Marius Vollmer
1bd07992b6 * eval.c (unmemocopy): Don't rely on V being a list of at least
one element.  Thanks to Bill Schottstaedt!
2000-07-17 19:59:57 +00:00
Michael Livshin
9d47a1e6f2 * gc.c (scm_done_free): new.
expanded comments about scm_done_malloc.

* gc.h: added prototype for scm_done_free
2000-07-15 13:44:04 +00:00
Dirk Herrmann
406c7d9022 * Extend checks performed with SCM_DEBUG_CELL_ACCESSES=1 and make them
configurable at run-time.
* Replace SCM_FREEP by SCM_FREE_CELL_P and scm_gc_heap_lock by
  scm_gc_running_p (not in all places yet).
2000-07-13 15:00:58 +00:00
Dirk Herrmann
c4da09e2dd * Minor cleanups in scm_mark_locations. 2000-07-13 07:40:04 +00:00
Dirk Herrmann
3f5d82cd9a * Use a set of dedicated macros to access and modify free cells. 2000-07-10 14:25:53 +00:00
Dirk Herrmann
f706a58b67 * Make the compiler warn about code like SCM_CELL_WORD (x, n) = y. 2000-07-10 13:54:03 +00:00
Dirk Herrmann
cbaadf0202 * Signal an error when adding entries to a hash table with no slots. 2000-07-07 15:28:56 +00:00
Dirk Herrmann
b6efc9510e * Keep track of the heap segment table size.
* Let the caller of alloc_some_heap determine the behaviour in case of
  malloc failures.  Use this feature in scm_gc_for_newcell.
2000-07-06 09:10:22 +00:00
Dirk Herrmann
a6c12a04cf * Don't include <stdio.h> in gh.h. Thanks to Han-Wen Nienhuys. 2000-07-06 08:48:14 +00:00
Dirk Herrmann
b63a956dc5 * Re-introduced some symbols as deprecated. 2000-06-30 17:37:26 +00:00
Mikael Djurfeldt
38ec519cbf *** empty log message *** 2000-06-30 16:16:08 +00:00
Mikael Djurfeldt
b06a8b87c4 * debug.c: Added #include fluids.h. 2000-06-30 16:14:56 +00:00
Mikael Djurfeldt
a75a7aff74 *** empty log message *** 2000-06-30 16:09:13 +00:00
Mikael Djurfeldt
c76b1eafa3 * numbers.c (scm_gr_p, scm_leq_p, scm_geq_p): Turned into
primitive generics.  (Thanks to Nicolas Neuss.)
2000-06-30 16:08:48 +00:00
Dirk Herrmann
c73879189d * Improved memory error handling.
* Made the behaviour of scm_gc_for_newcell more obvious.
2000-06-30 13:48:28 +00:00
Dirk Herrmann
685c0d7116 * Eliminated use of SCM_ASSERT to check for range errors.
* Fix some error reporting code in list.c
* Added some test cases.
2000-06-30 10:46:35 +00:00
Dirk Herrmann
fdf25853e1 * Fix range checks of SCM_VALIDATE* macros. 2000-06-30 09:48:25 +00:00
Mikael Djurfeldt
627df12801 *** empty log message *** 2000-06-29 23:47:14 +00:00
Mikael Djurfeldt
83d58c8257 * gc.c (scm_gc_for_newcell): Behave gracefully also if scm_igc
doesn't yield any new cells.  In theory this could happen if all
cells allocated with NEWCELL are either in use or conservatively
marked and all cluster spine cells are conservatively marked.
(Thanks to Dirk.)
2000-06-29 23:46:59 +00:00
Dirk Herrmann
2500356c67 * Cleaned up memory error signalling. 2000-06-29 15:54:58 +00:00
Dirk Herrmann
9b166f1273 * Removed some unused identifiers and commented code. 2000-06-29 15:06:31 +00:00
Dirk Herrmann
acf4331fa5 * Use appropriate error signalling functions. 2000-06-29 13:31:33 +00:00
Dirk Herrmann
fc3d77788a * Removed scm_first_type. 2000-06-29 09:13:17 +00:00
Dirk Herrmann
0a7a74453e * Removed unused identifier MIN_GC_YIELD. 2000-06-29 08:27:40 +00:00
Michael Livshin
150c200bdd * gc.c (scm_gc_for_newcell): don't try to do GC if it's blocked,
allocate instead.
2000-06-28 13:17:11 +00:00
Dirk Herrmann
939794ce7f * Cleaned up initialization of asyncs.
* Moved handling of scm_gc_async to gc.c.
* Extracted handling of scheme level after-gc-hook from gc core.
2000-06-28 10:26:52 +00:00
Dirk Herrmann
12acbbef54 * Removed commented code from gc.c.
* Removed unused identifier scm_type_obj_list.
2000-06-28 07:49:25 +00:00
Dirk Herrmann
73ea78af4d * Switch to standard way of smob initialization. 2000-06-27 16:00:01 +00:00
Michael Livshin
7f40b48a9f * guile-doc-snarf.in: use cut instead of sed, that's much much
faster.  also, don't call basename more than needed.  and, to gain
a couple of microseconds more, don't call cat needlessly.  (thanks
to Brad Knotwell).
2000-06-21 15:14:00 +00:00
Dirk Herrmann
3c6d9d717f * Renamed SCM__X tokens to better readable ones that also follow the
SCM_SNARF_ prefix convention.
2000-06-21 08:43:12 +00:00
Mikael Djurfeldt
2b6e0d2b77 *** empty log message *** 2000-06-21 02:47:01 +00:00
Mikael Djurfeldt
7e73eaee6e (SCM_TOP_LEVEL_LOOKUP_CLOSURE): New macro which replaces
SCM_CDR (scm_top_level_lookup_closure_var) everywhere.
2000-06-21 02:46:01 +00:00
Mikael Djurfeldt
51eb747ebf * root.c (mark_root): Removed marking of
s->top_level_lookup_closure_var and s->system_transformer.
2000-06-21 02:45:26 +00:00
Mikael Djurfeldt
de87227851 * root.h (scm_top_level_lookup_closure_var): Removed. (It's no
sense in having the *variable* be a "fluid".)
2000-06-21 02:42:41 +00:00
Mikael Djurfeldt
7f763132bc * modules.c (scm_selected_module): the_module is now a fluid. 2000-06-21 02:42:31 +00:00
Mikael Djurfeldt
a0ea2bf043 * eval.c, eval.h (scm_top_level_lookup_closure_var): Added.
#include "libguile/fluids.h".

* eval.h (SCM_TOP_LEVEL_LOOKUP_CLOSURE): New macro which replaces
SCM_CDR (scm_top_level_lookup_closure_var) everywhere.
2000-06-21 02:42:14 +00:00
Mikael Djurfeldt
549e6ec69d * eval.c, eval.h (scm_top_level_lookup_closure_var): Added.
#include "libguile/fluids.h".
2000-06-21 02:42:03 +00:00
Mikael Djurfeldt
5bc9cbd2d8 *** empty log message *** 2000-06-20 14:58:06 +00:00
Mikael Djurfeldt
076d6063fa * gc.h, tags.h: Be kind to compilers which must see hash signs in
column 0.  (Thanks to Ian Grant.)
2000-06-20 14:57:55 +00:00
Mikael Djurfeldt
9ea8cdcb43 * numbers.h: Put #ifdef HAVE_LONG_LONGS around declarations using
the long_long type.  (Thanks to Bernard Urban.)
2000-06-20 14:57:45 +00:00
Mikael Djurfeldt
f69a01b29c Inserted some comments 2000-06-20 14:55:52 +00:00
Mikael Djurfeldt
b5074b2374 *** empty log message *** 2000-06-20 02:38:36 +00:00
Mikael Djurfeldt
5b99c4a9e7 Layout fix 2000-06-20 02:38:19 +00:00
Mikael Djurfeldt
c72baaaa75 * smob.h: Changed comments for scm_make_smob_type and
scm_make_smob_type_mfpe, warning that the latter might be
deprecated in a future release.
2000-06-20 02:37:53 +00:00
Mikael Djurfeldt
33d0abd7e1 * list.c (scm_cons_star): Updated comment. 2000-06-20 02:37:41 +00:00
Mikael Djurfeldt
aeacfc8fd1 * gc.c, gc.h (scm_default_init_heap_size_1,
scm_default_min_yield_1, scm_default_init_heap_size_2,
scm_default_min_yield_2, scm_default_max_segment_size): New global
variables.  Can be customized by the application before booting
Guile.  (We might want to be able to control these parameters
dynamically through the "options interface" in the future, but
note that that is additional functionality.  Here we're giving
default values which the environment variables can override.)
2000-06-20 02:37:23 +00:00
Mikael Djurfeldt
0a9e521f29 *** empty log message *** 2000-06-19 10:05:54 +00:00
Mikael Djurfeldt
04d894fdb2 * tags.h (SCM_UNPACK_CAR, SCM_NDOUBLE_CELLP): Removed. 2000-06-19 10:05:08 +00:00