From: Max Kellermann Date: Sun, 11 Oct 2009 17:20:49 +0000 (+0200) Subject: charset: make utf8_with() "pure" X-Git-Tag: release-0.16~110 X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dac2963841c7c8ff7e6620a0bfede82d77bc5d12;p=ncmpc.git charset: make utf8_with() "pure" This allows gcc to optimize further. --- diff --git a/src/charset.h b/src/charset.h index e5a9e95..d1b3f75 100644 --- a/src/charset.h +++ b/src/charset.h @@ -22,8 +22,9 @@ #include "config.h" +#include + #include -#include #ifdef ENABLE_LOCALE const char * @@ -33,6 +34,7 @@ charset_init(void); /** * Returns the number of terminal cells occupied by this string. */ +G_GNUC_PURE unsigned utf8_width(const char *str);