1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-05-20 11:40:18 +02:00

Faster read of semicolon comments

There is no need to do character encoding processing within
semicolon comments.

* libguile/read.c (scm_read_semicolon_comment): changed
This commit is contained in:
Michael Gran 2010-02-15 20:45:58 -08:00
parent 44d3d11144
commit 8a8da78d97

View file

@ -860,7 +860,7 @@ scm_read_semicolon_comment (int chr, SCM port)
always represents itself no matter what the encoding is. */
for (c = scm_get_byte_or_eof (port);
(c != EOF) && (c != '\n');
c = scm_getc (port));
c = scm_get_byte_or_eof (port));
return SCM_UNSPECIFIED;
}