GOOPS: Statically allocate the PORT class array.
authorLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 19:21:44 +0000 (20:21 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 2 Feb 2009 23:03:09 +0000 (00:03 +0100)
commit6290d3f10927f887102a164ccb1a7291cc62288d
treebc43eeb9b5e683fa13a660d36dfd7f33179948fa
parent5bb2d903b9e54fdd5858a16ba11fa91a9dc0c692
GOOPS: Statically allocate the PORT class array.

* libguile/goops.c (scm_port_class): Statically allocate it.
  (create_port_classes): Don't use `scm_calloc ()'.

* libguile/goops.h (scm_port_class): Update declaration.

* libguile/ports.c (scm_make_port_type): When checking whether
  GOOPS is initialized, check whether the first element of
  SCM_PORT_CLASS is non-zero.
libguile/goops.c
libguile/goops.h
libguile/ports.c