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

3562 commits

Author SHA1 Message Date
Neil Jerram
11768c044a * Docstring updates. 2000-09-02 23:23:16 +00:00
Neil Jerram
09831f943c * Docstring fixes. 2000-09-02 23:20:40 +00:00
Neil Jerram
6386e25c29 * Docstring updates for scm_make_struct and scm_make_vtable_vtable. 2000-09-02 23:17:23 +00:00
Neil Jerram
ae42688c46 * Docstring updates for scm_symbol_to_string. 2000-09-02 23:16:00 +00:00
Neil Jerram
ec57ce2eca * Docstring updates for scm_uniform_vector_ref and scm_array_set_x. 2000-09-02 23:15:04 +00:00
Neil Jerram
31daeb2db8 * Docstring update for scm_vector. 2000-09-02 23:13:33 +00:00
Michael Livshin
eacb9dc265 *** empty log message *** 2000-09-02 21:54:13 +00:00
Michael Livshin
98185197b1 * tags.h (scm_tc16_allocated): removed. 2000-09-02 21:53:38 +00:00
Michael Livshin
228c97488a * smob.c (scm_smob_prehistory): don't init the "allocated" smob
type.
2000-09-02 21:53:20 +00:00
Michael Livshin
3c8018e61e * gc.h: removed now-obsolete comments about the `allocated' cell
state.
(SCM_NEWCELL): don't change cell type to `allocated'.
(SCM_NEWCELL2): ditto.
2000-09-02 21:53:02 +00:00
Michael Livshin
3731149d83 * gc.c (scm_mark_locations): mark freecells too, and don't worry
about any possible false positives.
(scm_debug_newcell): don't change cell type to `allocated'.
(scm_debug_newcell2): ditto.
(scm_gc_for_newcell): ditto.
(scm_gc_mark): remove the tc16_allocated case.
2000-09-02 21:52:35 +00:00
Mikael Djurfeldt
adf9e9592d *** empty log message *** 2000-08-27 03:34:38 +00:00
Mikael Djurfeldt
51a4264b15 * gdbint.c (gdb_print): Removed superfluous macro definition. 2000-08-27 03:34:27 +00:00
Mikael Djurfeldt
0745d3872f *** empty log message *** 2000-08-27 03:21:35 +00:00
Mikael Djurfeldt
7c31152f99 * struct.c (scm_make_struct_layout): Removed reference to
"read-only string" in comment; Check that argument is a string.
(scm_make_vtable_vtable): Check that argument is a string.
2000-08-27 03:21:16 +00:00
Mikael Djurfeldt
b299f5cd5b * stacks.c (scm_init_stacks): Pass a string, not a layout object,
to scm_make_vtable_vtable.  (Thanks to Dale P. Smith.)
2000-08-27 03:21:03 +00:00
Mikael Djurfeldt
3ce4544cfa * objects.c (scm_init_objects), print.c (scm_init_print), struct.c
(scm_init_struct): First arg to scm_make_vtable_vtable should be a
string, not a symbol.  (`make-vtable-vtable' needs to append this
string to another string and then pass it through
`make-struct-layout'.)
2000-08-27 03:20:55 +00:00
Mikael Djurfeldt
69b5f65aaa *** empty log message *** 2000-08-26 20:57:57 +00:00
Mikael Djurfeldt
e53cc81710 * strings.c (scm_make_shared_substring, scm_read_only_string_p):
Deprecated.
(scm_string_length, scm_string_ref, scm_substring,
scm_string_append): Don't accept symbols as arguments (R5RS).
2000-08-26 20:56:48 +00:00
Mikael Djurfeldt
29a34ff64a Added comment about possible optimization 2000-08-26 20:56:36 +00:00
Mikael Djurfeldt
480a873ce1 * environments.c (scm_init_environments): All internal includes in
libguile must use the prefix "libguile/" in path names since inly
the top-level source directory is on the include list.  (That, in
turn, is because we want to distinguish between system header
files and hedares files internal to libguile.)
2000-08-26 20:55:49 +00:00
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