X-Git-Url: https://git.lizzy.rs/?a=blobdiff_plain;f=stringbuf.c;h=f83c1b8d54fee7c3964ad68a208c7f0f68db1905;hb=f34b3b9aa275e4f6b9fed07e74d9c8b6b97d8785;hp=acac04c9d3d95974192fec0a36ad6115829cedd8;hpb=08d3e5963297d275b5420b12e311381bee4d37f5;p=linenoise.git diff --git a/stringbuf.c b/stringbuf.c index acac04c..f83c1b8 100644 --- a/stringbuf.c +++ b/stringbuf.c @@ -4,7 +4,9 @@ #include #include +#ifndef STRINGBUF_H #include "stringbuf.h" +#endif #ifdef USE_UTF8 #include "utf8.h" #endif @@ -45,7 +47,6 @@ void sb_append(stringbuf *sb, const char *str) void sb_append_len(stringbuf *sb, const char *str, int len) { - int utf8_strlen(const char *str, int bytelen); if (sb->remaining < len + 1) { sb_realloc(sb, sb->last + len + 1 + SB_INCREMENT); }