#include <sys/types.h>
#include <netinet/in.h>
/**/
#include <anthy/diclib.h>
#include <anthy/xstr.h>
#include <anthy/alloc.h>
#include <anthy/conf.h>
#include "diclib_inner.h"
unsigned int
anthy_dic_ntohl(unsigned int a)
{
return ntohl(a);
}
unsigned int
anthy_dic_htonl(unsigned int a)
{
return htonl(a);
}
int
anthy_init_diclib()
{
anthy_do_conf_init();
if (anthy_init_file_dic() == -1) {
return -1;
}
anthy_init_xchar_tab();
anthy_init_xstr();
return 0;
}
void
anthy_quit_diclib()
{
anthy_quit_allocator();
anthy_quit_xstr();
anthy_conf_free();
}
syntax highlighted by Code2HTML, v. 0.9.1