aboutsummaryrefslogtreecommitdiff
path: root/lib/utf8.c
diff options
context:
space:
mode:
authorSergey Poznyakoff <gray@gnu.org.ua>2008-05-06 14:12:40 +0300
committerSergey Poznyakoff <gray@gnu.org.ua>2008-05-06 14:12:40 +0300
commit4eede51312875906a96ee52d1ccc880b7dc06972 (patch)
treee419ef612f234576071dcbdf89d32b02afe8affc /lib/utf8.c
parentba200bb8510ac7a857b36ccd2578c80fa0aa2f0f (diff)
downloaddico-4eede51312875906a96ee52d1ccc880b7dc06972.tar.gz
dico-4eede51312875906a96ee52d1ccc880b7dc06972.tar.bz2
Provide an installable library and header files for dico
database modules. * include/dico/Makefile.am: New file. * include/dico/assoc.h: New file. * include/dico/list.h: New file. * include/dico/url.h: New file. * include/dico/xlat.h: New file. * include/xdico.h: New file. * include/dico.h: Rewrite. Installable header. * include/Makefile.am (pkginclude_HEADERS): New var. Add SUBDIRS. * dictd/linebuf.c: Move to ... * lib/linebuf.c: ... this (with mods). * dictd/stream.c: Move to ... * lib/stream.c: ... this (with mods). * lib/Makefile.am (lib_LTLIBRARIES): New installable library libdico.la. (noinst_LIBRARIES): New library libxdico. * lib/assoc.c, lib/list.c, lib/url.c: Avoid using xalloc calls, instead return error status and set errno. * lib/diag.c, lib/iputil.c, lib/userprivs.c, lib/utf8.c, lib/xalloc-die.c: Include xdico.h * lib/util.c: Likewise. (xdico_list_create, xdico_iterator_create, xdico_list_append) (xdico_list_prepend, xdico_assoc_create, xdico_assoc_add): New functions. * .gitignore: Update. * configure.ac (AC_CONFIG_FILES): Add include/dico/Makefile * dictd/Makefile.am (dictd_SOURCES): Remove linebuf.c and stream.c. (LDADD): Add libxdico.a, libdico.la * dictd/auth.c, dictd/capa.c, dictd/commands.c, dictd/config-gram.y, dictd/dictd.c, dictd/dictd.h, dictd/fdio.c, dictd/main.c, dictd/server.c, dictd/udb.c: Reflect changes to the namespace. * makedict/Makefile.am (LDADD): Add libxdico.a, libdico.la * makedict/makedict.h: Include xdico.h
Diffstat (limited to 'lib/utf8.c')
-rw-r--r--lib/utf8.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/utf8.c b/lib/utf8.c
index a1f2b3c..19816a3 100644
--- a/lib/utf8.c
+++ b/lib/utf8.c
@@ -17,7 +17,8 @@
#ifdef HAVE_CONFIG_H
# include <config.h>
#endif
-#include <dico.h>
+#include <xdico.h>
+#include <xalloc.h>
#include <limits.h>
#include <errno.h>
#include <string.h>

Return to:

Send suggestions and report system problems to the System administrator.