* gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when
authorMarius Vollmer <mvo@zagadka.de>
Mon, 11 Feb 2002 18:06:50 +0000 (18:06 +0000)
committerMarius Vollmer <mvo@zagadka.de>
Mon, 11 Feb 2002 18:06:50 +0000 (18:06 +0000)
commit4c9419ac31f8364db51ccf25f7f9d5d31dd412e7
treeecce968212c4bda96b3531e61b9724ea93777cc7
parentd013f095c14783c193385cb67d3778a1240cd19b
* gc.h, gc.c (scm_gc_sweep): Issue deprecation warning when
non-zero is returned from a port or smob free function.
(scm_malloc, scm_realloc, scm_strndup, scm_strdup,
scm_gc_register_collectable_memory,
scm_gc_unregister_collectable_memory, scm_gc_malloc,
scm_gc_realloc, scm_gc_free, scm_gc_strndup, scm_gc_strdup): New.

* backtrace.c, continuations.c, convert.i.c, coop-threads.c,
debug-malloc.c, dynl.c, environments.c, environments.h,
extensions.c, filesys.c, fports.c, gc.c, gc.h, gh_data.c, goops.c,
guardians.c, hooks.c, init.c, keywords.c, load.c, numbers.c,
ports.c, posix.c, procs.c, rdelim.c, regex-posix.c, root.c,
smob.c, stime.c, strings.c, struct.c, struct.h, symbols.c, unif.c,
vectors.c, weaks.c: Use scm_gc_malloc/scm_malloc and
scm_gc_free/free instead of scm_must_malloc and scm_must_free, as
appropriate.  Return zero from smob and port free functions.

* debug-malloc.c (scm_malloc_reregister): Handle "old == NULL".

* fports.c (scm_setvbuf): Reset read buffer to saved values when
it is pointing to the putback buffer.
36 files changed:
libguile/backtrace.c
libguile/continuations.c
libguile/convert.i.c
libguile/coop-threads.c
libguile/debug-malloc.c
libguile/dynl.c
libguile/environments.c
libguile/environments.h
libguile/extensions.c
libguile/filesys.c
libguile/fports.c
libguile/gc.c
libguile/gc.h
libguile/gh_data.c
libguile/goops.c
libguile/guardians.c
libguile/hooks.c
libguile/init.c
libguile/keywords.c
libguile/load.c
libguile/numbers.c
libguile/ports.c
libguile/posix.c
libguile/procs.c
libguile/rdelim.c
libguile/regex-posix.c
libguile/root.c
libguile/smob.c
libguile/stime.c
libguile/strings.c
libguile/struct.c
libguile/struct.h
libguile/symbols.c
libguile/unif.c
libguile/vectors.c
libguile/weaks.c