First ``working'' Guile! Crashes in `flush-all-ports' (relates to SCM_I_PORT_TABLE).
authorLudovic Courtes <ludovic.courtes@laas.fr>
Sun, 2 Apr 2006 21:05:04 +0000 (21:05 +0000)
committerLudovic Courtès <ludo@gnu.org>
Thu, 4 Sep 2008 22:46:14 +0000 (00:46 +0200)
commitfca4388748645f817e69505cb2c2c7733debb99b
tree109d3297fb1525f7c6a6288f509f57c8ee9fa5b5
parentc812243ba15a9d13bb6f1876892e7a1efea9bf4e
First ``working'' Guile!  Crashes in `flush-all-ports' (relates to SCM_I_PORT_TABLE).

* libguile/gc.c (scm_gc_stats): Fixed so that it returns a relevant
  result instead of just `SCM_EOL'.

* libguile/ports.c: Include `assert.h'.  Don't include `malloc.h'.
  (scm_make_port_type): Use `scm_gc_realloc ()' instead of `realloc ()'.
  (scm_new_port_table_entry): Likewise.
  (scm_flush): Added an assertion on the port number.
  (scm_ports_prehistory): Use `scm_gc_malloc ()' instead of `scm_malloc ()'.

git-archimport-id: lcourtes@laas.fr--2005-libre/guile-core--boehm-gc--1.9--patch-3
libguile/gc.c
libguile/ports.c