diff options
author | Mark H Weaver <mhw@netris.org> | 2013-04-06 01:42:45 -0400 |
---|---|---|
committer | Mark H Weaver <mhw@netris.org> | 2013-04-07 10:14:44 -0400 |
commit | 7f6c3f8f0012e916469fa6c50b44c621ebdc89ac (patch) | |
tree | 220b67e9dc1ee7482a66dc3a5a2e6898499d2f45 /doc/ref/api-scm.texi | |
parent | e1966d0e214b0967c19da71b235196adb057d2b5 (diff) | |
download | guile-7f6c3f8f0012e916469fa6c50b44c621ebdc89ac.tar.gz |
Implement efficient 'scm_unget_bytes' and 'unget-bytevector'.
* libguile/ports.c (scm_i_unget_bytes): New static function.
(scm_unget_bytes): New API function.
(scm_unget_byte): Rewrite to simply call 'scm_i_unget_bytes'.
(scm_ungetc, scm_peek_char, looking_at_bytes): Use 'scm_i_unget_bytes'.
* libguile/ports.h: Add prototype for 'scm_unget_bytes'.
* libguile/fports.c (scm_setvbuf): Use 'scm_unget_bytes'.
* libguile/r6rs-ports.c (scm_unget_bytevector): New procedure.
* module/ice-9/binary-ports.scm (unget-bytevector): New export.
* doc/ref/api-io.texi (R6RS Binary Input): Add documentation.
(R6RS I/O Ports): Update brief description of (ice-9 binary-ports) to
reflect the new reality: it is no longer a subset of (rnrs io ports).
* test-suite/tests/ports.test ("unget-bytevector"): Add test.
Diffstat (limited to 'doc/ref/api-scm.texi')
0 files changed, 0 insertions, 0 deletions