Mikael Djurfeldt
641d17a83a
* gc.c (scm_gc_mark): Don't use GUILE_DEBUG flag to compile in
...
extra tests. (GUILE_DEBUG is only supposed to make extra
debugging functions available.)
2000-08-23 18:22:07 +00:00
Michael Livshin
ca55e62c8e
*** empty log message ***
2000-08-21 10:07:13 +00:00
Michael Livshin
f91f77e64e
* gc.h (SCM_GC_CARD_N_CELLS): change to be a nice non-confusing
...
constant.
2000-08-21 10:06:45 +00:00
Michael Livshin
d8d4d49366
*** empty log message ***
2000-08-19 19:21:59 +00:00
Michael Livshin
7bb8eac780
* gc.c (scm_gc_sweep): added a `continue' statement that have
...
fallen through the cracks in the merge. thanks to Shuji Narazaki!
2000-08-19 19:20:21 +00:00
Michael Livshin
005b59783e
*** empty log message ***
2000-08-18 22:36:11 +00:00
Michael Livshin
35e9b48d79
* gc.h: removed some stuff that broke compilation for people and
...
wasn't actually needed anyway.
2000-08-18 22:33:37 +00:00
Neil Jerram
55892d875c
* filesys.c (scm_fcntl): Docstring fix - missing newlines inserted.
2000-08-18 17:12:37 +00:00
Neil Jerram
d46e47131c
* net_db.c (scm_gethost, scm_getnet, scm_getproto, scm_sethost,
...
scm_setnet, setproto, setserv): Argument names changed to match
doc string.
* feature.c (scm_program_arguments): New docstring.
* simpos.c (scm_getenv): Reflow docstring.
2000-08-18 16:52:15 +00:00
Neil Jerram
cdbc74184f
* Docstring fixes - adding texinfo markup and removing extraneous trailing newlines.
2000-08-18 09:30:54 +00:00
Michael Livshin
bbe6d8db73
*** empty log message ***
2000-08-17 20:46:22 +00:00
Michael Livshin
dc16aa360d
*** empty log message ***
2000-08-17 20:39:05 +00:00
Michael Livshin
d6884e6373
* gc.c: (scm_default_init_heap_size_*): defined to take cards into
...
account, but keeping more or less the same values as previously.
added some simple helper macros.
(CLUSTER_SIZE_IN_BYTES, ALIGNMENT_SLACK): defined to take cards
into account.
(BVEC_*, scm_mark_space_t, current_mark_space, mark_space_ptr,
current_mark_space_offset, mark_space_head, get_bvec,
clear_mark_space): new functions and supporting variables, types
and macros that implement mark space management.
(scm_igc): clear the mark space (all of it) before beginning the
mark phase.
(scm_gc_mark): changed the tests for rogue cells, much simplified
throughout (no different mark bit locations to worry about now).
(scm_mark_locations): don't consider card header cells.
(scm_cellp): ditto.
(scm_gc_sweep): simplified.
(init_heap_seg): changed to take cards into account.
2000-08-17 20:38:44 +00:00
Michael Livshin
e618c9a3c8
* gc.h (SCM_MARKEDP): simplified, there are no different mark bit
...
locations anymore.
(SCM_GC_CARD_*, SCM_C_BVEC_*): lots of new macros to deal with
cards and bvecs (bit-vectors).
2000-08-17 20:38:23 +00:00
Michael Livshin
ee4413093e
* tags.h: (SCM_GCTYPE16, SCM_GCCDR, SCM_GC[8]MARKP,
...
SCM_SETGC[8]MARK, SCM_CLRGC[8]MARK): moved from here into gc.h.
some (most) of these are probably going to be deprecated.
2000-08-17 20:37:55 +00:00
Michael Livshin
83238bc162
*** empty log message ***
2000-08-16 00:25:38 +00:00
Michael Livshin
1c299a6be5
* stime.c (scm_c_get_internal_run_time): new function, same as
...
scm_get_internal_run_time but returns a long. it's used by the GC
for timekeeping, since with scm_get_internal_run_time there is a
(extremely theoretical) possibility of consing.
(scm_get_internal_run_time): redefined in terms of
scm_c_get_internal_run_time.
* stime.h: added prototype for scm_c_get_internal_run_time.
2000-08-16 00:23:59 +00:00
Michael Livshin
c9b0d4b090
* gc.c (scm_gc_stats): add more obscure stats, such as: mark time,
...
sweep time, total marked cells, total swept cells, and number of
times GC was invoked.
(gc_start_stats): renamed from scm_gc_start, made static, taught
to init the new stats.
(gc_end_stats): renamed from scm_gc_end, made static, taught to
calculate the new stats.
(scm_igc): don't call gc_start_stats unless we are sure that we
are indeed going to collect. also, added some timekeeping between
the mark and sweep phases.
(scm_gc_sweep): count number of cells we sweep as we go.
* gc.h: removed prototypes for scm_gc_{start,end}.
2000-08-16 00:23:18 +00:00
Mikael Djurfeldt
1aa621a3d1
Fix
2000-08-13 21:05:03 +00:00
Mikael Djurfeldt
a94da0e030
*** empty log message ***
2000-08-13 20:53:27 +00:00
Mikael Djurfeldt
8a4b993ec3
* alist.c (scm_assq, scm_assv, scm_assoc): Report argument type
...
error for the alist rather than the sublist where the type
mismatch is discovered.
2000-08-13 20:53:09 +00:00
Neil Jerram
2a2a730bfa
* Docstring fixes.
2000-08-12 23:15:48 +00:00
Neil Jerram
ee826bae22
Docstring updated so that make-soft-port example is correct.
2000-08-12 22:18:04 +00:00
Neil Jerram
1670bef991
Docstring fix - quote quotation marks and backslashes.
2000-08-12 22:15:55 +00:00
Neil Jerram
f0a7af1a86
Docstring fix for scm_logand.
2000-08-12 22:13:32 +00:00
Neil Jerram
872e0c7291
* macros.c: Remove surplus newlines from end of docstrings.
...
* list.c (scm_list_tail): Add @deffnx line to docstring for
list-cdr-ref.
* keywords.c: Docstring improvements in conjunction with new
reference manual doc on keywords.
* error.c (scm_error_scm): Fix texinfo syntax error in
docstring. (@code(~S) should be @code{~S}.)
* dynl.c: Remove surplus newlines from end of docstrings.
2000-08-11 15:12:37 +00:00
Mikael Djurfeldt
3a33a9b117
*** empty log message ***
2000-08-11 08:46:32 +00:00
Mikael Djurfeldt
26795895e2
Deprecated scm_top_level_lookup_closure_var
2000-08-11 08:45:19 +00:00
Mikael Djurfeldt
eb8db44059
* symbols.c (scm_can_use_top_level_lookup_closure_var): Removed.
...
#include "modules.h".
2000-08-11 08:44:51 +00:00
Mikael Djurfeldt
07bcf91d63
* strports.c (scm_eval_string): Evaluate in
...
scm_interaction_environment ().
* strports.c: #include "modules.h".
2000-08-11 08:44:43 +00:00
Mikael Djurfeldt
b3138544ef
* script.c (scm_shell): Pass scm_the_root_module () as second arg
...
to new scm_eval_x.
2000-08-11 08:44:32 +00:00
Mikael Djurfeldt
b486ccc869
* modules.h (SCM_MODULEP, SCM_VALIDATE_MODULE,
...
SCM_MODULE_OBARRAY, SCM_MODULE_USES, SCM_MODULE_BINDER,
SCM_MODULE_EVAL_CLOSURE): New macros.
(scm_module_index_obarray, scm_module_index_uses,
scm_module_index_binder, scm_module_index_eval_closure): New
constants; #include "validate.h".
2000-08-11 08:44:16 +00:00
Mikael Djurfeldt
e3365c07da
* modules.c (scm_module_tag, scm_module_system_booted_p): New
...
globals.
(scm_post_boot_init_modules): Initialize scm_module_tag.
(scm_interaction_environment): New primitive.
2000-08-11 08:44:02 +00:00
Mikael Djurfeldt
f33b174d0e
* load.c (load): Use `scm_selected_module' to compute second arg
...
to new scm_i_eval_x; Don't call it if module system hasn't booted.
(scm_read_and_eval_x): Deprecated.
#include "modules.h".
2000-08-11 08:43:49 +00:00
Mikael Djurfeldt
238d517c09
* evalext.c (scm_definedp): Have to work before module system is
...
booted.
2000-08-11 08:43:08 +00:00
Mikael Djurfeldt
37607b5a7b
* eval.h: #include "struct.h".
2000-08-11 08:43:00 +00:00
Mikael Djurfeldt
68d8be66ce
* eval.c (scm_eval): Backward incompatible change: Now takes an
...
environment specifier as second arg. `eval' hereby becomes R5RS
compatible.
(scm_i_eval_x, scm_i_eval): New functions (replace
scm_eval_3).
(scm_eval2, scm_eval_3): Deprecated.
(scm_top_level_lookup_closure_var): Deprecated.
2000-08-11 08:42:50 +00:00
Mikael Djurfeldt
82b3290db7
* debug.c (scm_local_eval): Use scm_i_eval and scm_i_eval_x.
...
(scm_start_stack): Use scm_i_eval.
2000-08-11 08:42:42 +00:00
Mikael Djurfeldt
1807c7b875
*** empty log message ***
2000-08-11 00:45:33 +00:00
Mikael Djurfeldt
cc6f0237bd
* print.c (scm_simple_format): Be case-insensitive for ~A and ~S
...
directives.
2000-08-11 00:45:25 +00:00
Mikael Djurfeldt
1a2f1b9023
*** empty log message ***
2000-08-09 18:29:48 +00:00
Mikael Djurfeldt
85c2133978
* struct.h (SCM_STRUCT_GC_CHAIN, SCM_SET_STRUCT_GC_CHAIN): New
...
macros.
(scm_structs_to_free, scm_struct_prehistory): Declare.
2000-08-09 18:29:39 +00:00
Mikael Djurfeldt
08c880a367
* struct.c (scm_make_struct, scm_make_vtable_vtable): Structs
...
handles are now double cells; Initialize SCM_STRUCT_GC_CHAIN to
0.
(scm_struct_gc_init, scm_free_structs): New GC C hooks.
(scm_struct_prehistory): Install them.
2000-08-09 18:29:31 +00:00
Mikael Djurfeldt
1d49cea8b8
* init.c (scm_boot_guile_1): Call scm_struct_prehistory.
2000-08-09 18:29:21 +00:00
Mikael Djurfeldt
7445e0e8eb
* gc.c (scm_gc_mark, scm_gc_sweep): Remove vcell = 1 magic.
...
(scm_structs_to_free): New variable.
(scm_gc_sweep): Hook up structs to free on the scm_structs_to_free
chain.
2000-08-09 18:29:10 +00:00
Marius Vollmer
b054684d81
*** empty log message ***
2000-08-06 22:04:35 +00:00
Marius Vollmer
d156d3b730
* read.c (scm_flush_ws): Include filename in error message when it
...
is not `#f'.
2000-08-06 22:04:11 +00:00
Marius Vollmer
7ca3873434
*** empty log message ***
2000-08-05 14:34:00 +00:00
Marius Vollmer
a26f1191e3
* iselect.c: Include <unistd.h>. Thanks to Bertrand Petit!
2000-08-05 14:33:31 +00:00
Mikael Djurfeldt
29b4f9fb2c
*** empty log message ***
2000-08-02 06:48:28 +00:00