Fixed handling of closed ports in `put-{bytevector,u8}'.
commitcab5d0182674a6e8cf2a613405442bdae320bc8e
authorLudovic Courtes <ludo@gnu.org>
Sat, 11 Aug 2007 15:52:47 +0000 (11 15:52 +0000)
committerLudovic Courtes <ludo@gnu.org>
Sat, 11 Aug 2007 15:52:47 +0000 (11 15:52 +0000)
treebe2fd6abfcd0d2dbc6ab5cbc3673ac9d8bac744b
parent252a126cc473aea70f6f9a58e7e648936407e640
Fixed handling of closed ports in `put-{bytevector,u8}'.

* NEWS: Mention `put-{bytevector,u8}' fix.

* src/ports.c (SCM_VALIDATE_R6RS_BINARY_OUTPUT_PORT): Use
  `SCM_VALIDATE_OPOUTPORT' so that open ports are rejected.

* tests/io-ports.test (put-bytevector with closed port): New.

git-archimport-id: lcourtes@laas.fr--2006-libre/guile-r6rs-libs--devo--0--patch-44
ChangeLog
NEWS
src/ports.c
tests/io-ports.test