I/O: Small fixes in `get-bytevector-n' and `get-bytevector-n!'.
commit21f161a67039a2f5b3beddc6653fb4527e24b019
authorLudovic Court`es <ludovic.courtes@laas.fr>
Mon, 26 Feb 2007 13:42:16 +0000 (26 13:42 +0000)
committerLudovic Court`es <ludovic.courtes@laas.fr>
Mon, 26 Feb 2007 13:42:16 +0000 (26 13:42 +0000)
treea4d78a0d50435d4cf665ba5c0ecb3ba06305e4e2
parent8a3b145aab700c35dc6475062ea70fb949b4fc11
I/O: Small fixes in `get-bytevector-n' and `get-bytevector-n!'.

* src/ports.c (scm_r6rs_get_bytevector_n): Don't invoke `scm_c_read ()'
  when C_COUNT is zero since it may block.  Don't return EOF when both
  C_READ and C_COUNT are zero; return the empty bytevector instead.
  (scm_r6rs_get_bytevector_n_x): Likewise.

git-archimport-id: lcourtes@laas.fr--2006-libre/guile-r6rs-libs--devo--0--patch-31
ChangeLog
src/ports.c