1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-06 15:40:29 +02:00
Commit graph

9141 commits

Author SHA1 Message Date
Neil Jerram
92ccc1f1f3 * Docstring fixes. 2000-08-25 17:33:01 +00:00
Dirk Herrmann
5d3e2388f3 * Added Jost Boekemeier's implementation of environments to guile.
* Added a test suite for (up to now only) leaf environments.
2000-08-25 17:01:32 +00:00
Mikael Djurfeldt
167d89cff9 *** empty log message *** 2000-08-25 04:09:45 +00:00
Mikael Djurfeldt
28819f62b5 *** empty log message *** 2000-08-25 04:09:08 +00:00
Mikael Djurfeldt
5540e847f4 * procprop.c: #include "libguile/smob.h"; Check applicable smobs. 2000-08-25 04:08:50 +00:00
Keisuke Nishida
14fb1c83d6 *** empty log message *** 2000-08-25 02:26:47 +00:00
Keisuke Nishida
0717dfd871 * smob.h (scm_smob_descriptor): Added apply\' and gsubr_type\'.
* smob.c (scm_make_smob_type): Initialize `apply\' and `gsubr_type\'.
(scm_set_smob_apply): New function.
(scm_smob_apply_0, scm_smob_apply_1, scm_smob_apply_2,
scm_smob_apply_3): New functions.
* eval.c (SCM_CEVAL, SCM_APPLY): Added dispatch for applicable smobs.
* procs.c (s_scm_procedure_p): Check applicable smobs.
2000-08-25 02:26:22 +00:00
Mikael Djurfeldt
665fc4e600 *** empty log message *** 2000-08-24 00:27:22 +00:00
Mikael Djurfeldt
5b03c15cbf * Makefile.am (BUILT_SOURCES): Experimentally added scmconfig.h
also here.  (This is supposed to make sure that scmconfig.h is
built before all sources in order to prevent that everything has
to be rebuilt again.  Hope it works---I'm just guessing. :)
2000-08-24 00:27:08 +00:00
Mikael Djurfeldt
86f9f9ae85 * fluids.c (scm_fluid_set_x): Return SCM_UNSPECIFIED. 2000-08-24 00:23:19 +00:00
Mikael Djurfeldt
38525772e4 *** empty log message *** 2000-08-23 18:22:19 +00:00
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