blob: dfe8bb95e42ad5f5cc5845f19dbddd40aa35fd6e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
|
#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();
}
|