Publish the maximum number of port types as `SCM_I_MAX_PORT_TYPE_COUNT'.
authorLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 17:47:20 +0000 (18:47 +0100)
committerLudovic Courtès <ludo@gnu.org>
Sun, 18 Jan 2009 17:47:20 +0000 (18:47 +0100)
commit0953b549464e5bf1433e7f0b8a49ac4b464c3c11
tree77b672ffdafac282c27de444bc6140531df58613
parent474554694f5618be238054e736540f567a0e02a0
Publish the maximum number of port types as `SCM_I_MAX_PORT_TYPE_COUNT'.

* libguile/goops.c (create_port_classes): Use
  `SCM_I_MAX_PORT_TYPE_COUNT' instead of a hard-wired 256.

* libguile/objects.h (SCM_OUT_PCLASS_INDEX, SCM_INOUT_PCLASS_INDEX):
  Likewise.

* libguile/ports.c (scm_make_port_type): Likewise.

* libguile/ports.h (SCM_I_MAX_PORT_TYPE_COUNT): New macro.
libguile/goops.c
libguile/objects.h
libguile/ports.c
libguile/ports.h