unread-char: inline conversion from codepoint to bytes
authorAndy Wingo <wingo@pobox.com>
Sat, 31 Aug 2013 08:44:07 +0000 (10:44 +0200)
committerAndy Wingo <wingo@pobox.com>
Sat, 31 Aug 2013 08:44:07 +0000 (10:44 +0200)
commitbe7ecef05c1eea66f30360f658c610710c5cb22e
treee014d8314071a644bd1dcef5fc9116b38376d41b
parent8ac8e2dfeb88172deab6fe453d7a2f0ad03729d6
unread-char: inline conversion from codepoint to bytes

* libguile/ports.c (scm_ungetc_unlocked): Inline the conversion from
  codepoint to bytes for UTF-8 and latin-1 ports.  Speeds up a
  numbers-reading test case by 100% (!).
libguile/ports.c