X-Git-Url: http://mj.ucw.cz/gitweb/?a=blobdiff_plain;ds=sidebyside;f=charset%2Fmp-charconv.c;h=ac60449563a1d402cc8bf922293092cc1e789f5c;hb=89f86d97def2a365b1799f70e3f254264b9c7615;hp=6615973cb4c23588ae2a6a38cccd90127911fe1f;hpb=13499b70e642fa92ae3152ed8b17bebd778a8ac0;p=libucw.git diff --git a/charset/mp-charconv.c b/charset/mp-charconv.c index 6615973c..ac604495 100644 --- a/charset/mp-charconv.c +++ b/charset/mp-charconv.c @@ -1,5 +1,5 @@ /* - * Sherlock Library -- Character Conversion with Allocation on a Memory Pool + * Sherlock Library -- Character Conversion with Allocation on a Memory Pool * * (c) 2006 Pavel Charvat * @@ -7,22 +7,22 @@ * of the GNU Lesser General Public License. */ -#include "lib/lib.h" +#include "ucw/lib.h" #include "charset/mp-charconv.h" #include #include byte * -mp_strconv(struct mempool *mp, byte *s, uns in_cs, uns out_cs) +mp_strconv(struct mempool *mp, const byte *s, uns in_cs, uns out_cs) { if (in_cs == out_cs) return mp_strdup(mp, s); - + struct conv_context c; char *b[32]; uns bs[32], n = 0, sum = 0; uns l = strlen(s) + 1; - + conv_init(&c); conv_set_charset(&c, in_cs, out_cs); c.source = s;