Use double-cells to store subrs.
authorLudovic Courtès <ludo@gnu.org>
Tue, 20 Jan 2009 23:24:44 +0000 (00:24 +0100)
committerLudovic Courtès <ludo@gnu.org>
Tue, 20 Jan 2009 23:24:44 +0000 (00:24 +0100)
commit2ee5aa25dbd679b175707762f5961585027e1397
treeef1fad02a694d2ff4942fb1c2a9ce779def90c8e
parent499b5dfa3eff74f525ba07b6c865a970c056a6cb
Use double-cells to store subrs.

* libguile/procs.c (scm_subr_table, scm_subr_table_size,
  scm_subr_table_room, subr_table_gc_hint, scm_init_subr_table): Remove.
  (scm_c_make_subr): Simply return a double-cell, with the procedure
  name and properties stored in a two-element array.

* libguile/init.c (scm_i_init_guile): Remove call to
  `scm_init_subr_table ()'.

* libguile/procs.h (SCM_SUBR_META_INFO): New macro.
  (SCM_SNAME, SCM_SUBR_PROPS): Use it.
  (SCM_SUBR_GENERIC, SCM_SET_SUBR_GENERIC, SCM_SET_SUBR_GENERIC_LOC):
  Update.
  (scm_t_subr_entry, SCM_SUBR_ENTRY, SCM_SUBRNUM, scm_subr_table,
  scm_init_subr_table): Remove.
libguile/init.c
libguile/procs.c
libguile/procs.h