GOOPS: Statically allocate the SMOB class array.
authorLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 15:53:01 +0000 (16:53 +0100)
committerLudovic Courtès <ludo@gnu.org>
Mon, 2 Feb 2009 23:02:50 +0000 (00:02 +0100)
commit04795a1cb259c20896fb2edb50c58086027281b0
tree21d4d40a7a4148e1e2a8592f6cf5029b23fb4da5
parent202271f291971cf14175f5a1a193955f72d43d79
GOOPS: Statically allocate the SMOB class array.

* libguile/goops.c (scm_smob_class): Statically allocate it.
  (create_smob_classes): Don't malloc(3) `scm_smob_class'.

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

* libguile/smob.c (scm_make_smob_type, scm_set_smob_apply): When
  checking whether GOOPS is initialized, check whether the first element
  of SCM_SMOB_CLASS is non-zero.
libguile/goops.c
libguile/goops.h
libguile/smob.c