optimize scm_from_utf8_stringn
authorAndy Wingo <wingo@pobox.com>
Tue, 25 Oct 2011 16:18:39 +0000 (18:18 +0200)
committerAndy Wingo <wingo@pobox.com>
Tue, 25 Oct 2011 16:18:39 +0000 (18:18 +0200)
commit41d1d984aee43bc4964c87229004e1c02a6ddba7
tree4eebf8640402d9581b4aeff66a8640cf2cda97f1
parent25d50a051d8de9c438d6ed910bec13be682b3b12
optimize scm_from_utf8_stringn

* libguile/strings.c (decoding_error): Factor out of scm_from_stringn,
  properly handling errno.
  (scm_from_stringn): Adapt.
  (scm_from_utf8_stringn): Inline the conversion here, to avoid going
  through iconv.
libguile/strings.c