diff options
author | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-22 02:31:33 +0300 |
---|---|---|
committer | Sergey Poznyakoff <gray@gnu.org.ua> | 2008-07-22 02:31:33 +0300 |
commit | afa03c5b4a4c365462cde8c7ce404881cb983ea6 (patch) | |
tree | e680887c05388951f849a6850fff89fdb1a21f7a /lib/utf8.c | |
parent | ceaf4599a4c4a801d475bc9dd10d3be9f0e28587 (diff) | |
download | dico-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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); |