ports: Prepare to factorize custom binary input/output ports.
commit7564bbb647e828f206f6fd7b9a1d8a4fcc595574
authorLudovic Courtès <ludo@gnu.org>
Sun, 19 Apr 2009 20:49:41 +0000 (19 22:49 +0200)
committerLudovic Courtès <ludo@gnu.org>
Sun, 19 Apr 2009 20:49:41 +0000 (19 22:49 +0200)
tree522ef65cfe87535a1ad38838a9103a034d39dc96
parent8c61831ecc655f1e62041ecc60a3616e71800181
ports: Prepare to factorize custom binary input/output ports.

* src/ports.c (SCM_R6RS_CBIP_GET_POSITION_PROC,
  SCM_R6RS_CBIP_SET_POSITION_PROC, SCM_R6RS_CBIP_CLOSE_PROC): Rename to
  `SCM_R6RS_CBP_*'.
  (cbip_mark, cbip_seek, cbip_close): Rename to `cbp_*'.
  (SCM_R6RS_CBIP_BYTEVECTOR): Shifted to slot 4 of the "method vector".
  (make_cbip): Shift BV to slot 4 and methods to slots 0-3.
src/ports.c