diff options
author | Andy Wingo <wingo@pobox.com> | 2012-03-06 22:21:39 +0100 |
---|---|---|
committer | Andy Wingo <wingo@pobox.com> | 2012-03-06 22:21:39 +0100 |
commit | 24ea9f9c3abb8d9398df4810b815075593ba67c8 (patch) | |
tree | 0cd16182898463275c918c28e7fbc85cddc98c97 | |
parent | 4164dd6d1f97505748a8476f2524efff87be4bb0 (diff) | |
download | guile-24ea9f9c3abb8d9398df4810b815075593ba67c8.tar.gz |
ports.c: inline get_codepoint
* libguile/ports.c (get_codepoint): Add inline keyword. It showed up
high in benchmarks, and it's static, so it's probably important to
inline.
-rw-r--r-- | libguile/ports.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libguile/ports.c b/libguile/ports.c index a4651ca93..8b4dc47ff 100644 --- a/libguile/ports.c +++ b/libguile/ports.c @@ -1678,7 +1678,7 @@ get_iconv_codepoint (SCM port, scm_t_wchar *codepoint, with the byte representation of the codepoint in PORT's encoding, and set *LEN to the length in bytes of that representation. Return 0 on success and an errno value on error. */ -static int +static SCM_C_INLINE int get_codepoint (SCM port, scm_t_wchar *codepoint, char buf[SCM_MBCHAR_BUF_SIZE], size_t *len) { |