aboutsummaryrefslogtreecommitdiff
path: root/lib/utf8.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-07-22 02:31:33 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2008-07-22 02:31:33 +0300
commitafa03c5b4a4c365462cde8c7ce404881cb983ea6 (patch)
treee680887c05388951f849a6850fff89fdb1a21f7a /lib/utf8.c
parentceaf4599a4c4a801d475bc9dd10d3be9f0e28587 (diff)
downloaddico-afa03c5b4a4c365462cde8c7ce404881cb983ea6.tar.gz
dico-afa03c5b4a4c365462cde8c7ce404881cb983ea6.tar.bz2
Minor changes.
* dico/dico-priv.h, dico/func.c (ds_show_info): New function. * dico/pager.c: Setting pager to "-" disables it. * dico/shell.c (funtab): Add info command. * dico.texi: Update. * doc/libdico.texi (utf8_strbytelen): Remove. * lib/tokenize.c, lib/utf8.c, lib/xstream.c: Use strlen instead of the removed utf8_strbytelen.
Diffstat (limited to 'lib/utf8.c')
-rw-r--r--lib/utf8.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/utf8.c b/lib/utf8.c
index f16715f..8bd1a3d 100644
--- a/lib/utf8.c
+++ b/lib/utf8.c
@@ -1538,7 +1538,7 @@ utf8_strlen (const char *s)
}
size_t
-utf8_strbytelen (const char *s)
+strlen (const char *s)
{
size_t len = 0;
size_t n;
@@ -1970,7 +1970,7 @@ utf8_wc_to_mbstr(const unsigned *wordbuf, size_t wordlen, char *s, size_t size)
int
utf8_mbstr_to_wc(const char *str, unsigned **wptr)
{
- size_t sc = utf8_strbytelen(str);
+ size_t sc = strlen(str);
size_t len, i;
unsigned *w = calloc(sizeof(w[0]), sc+1);

Return to:

Send suggestions and report system problems to the System administrator.