File: diclib.c

package info (click to toggle)
anthy 1%3A0.4-2
  • links: PTS, VCS
  • area: main
  • in suites: bookworm, bullseye
  • size: 23,596 kB
  • sloc: ansic: 24,444; sh: 4,186; lisp: 1,265; makefile: 238
file content (42 lines) | stat: -rw-r--r-- 583 bytes parent folder | download | duplicates (8)
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();
}