HCoop
/
bpt
/
guile.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
Implement efficient 'scm_unget_bytes' and 'unget-bytevector'.
[bpt/guile.git]
/
libguile
/
fports.c
diff --git
a/libguile/fports.c
b/libguile/fports.c
index
727fe27
..
b9a9942
100644
(file)
--- a/
libguile/fports.c
+++ b/
libguile/fports.c
@@
-225,8
+225,7
@@
SCM_DEFINE (scm_setvbuf, "setvbuf", 2, 1, 0,
if (ndrained > 0)
/* Put DRAINED back to PORT. */
- while (ndrained-- > 0)
- scm_unget_byte (drained[ndrained], port);
+ scm_unget_bytes ((unsigned char *) drained, ndrained, port);
return SCM_UNSPECIFIED;
}