File: file_dic.h

package info (click to toggle)
anthy 6300d-2
  • links: PTS
  • area: main
  • in suites: sarge
  • size: 7,400 kB
  • ctags: 2,270
  • sloc: ansic: 17,009; sh: 13,554; lisp: 1,039; makefile: 252; ruby: 212; perl: 10
file content (52 lines) | stat: -rw-r--r-- 1,036 bytes parent folder | download
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
43
44
45
46
47
48
49
50
51
52
/* 饤֥(libanthydic)
 * ξȤ
 * ե뼭ι¤
 */
#ifndef _file_dic_h_included_
#define _file_dic_h_included_

/* ɤhashbit map礭 */
#define YOMI_HASH_ARRAY_SIZE (65536*4)
#define YOMI_HASH_ARRAY_SHIFT 3
#define YOMI_HASH_ARRAY_BITS (1<<YOMI_HASH_ARRAY_SHIFT)

/* Ѥhash */
#define VERSATILE_HASH_SIZE (128*1024)

/* 1ڡˤĤñ뤫 */
#define WORDS_PER_PAGE 256

/** ե 
 * 饤֥
 */
struct file_dic {
  /**/
  int file_size;

  /* mmapʤɤǤμݥ */
  /** ե뼫ΤΥݥ */
  char *dic_file;
  /** 񥨥ȥΥǥå(ͥåȥХȥ) */
  int *entry_index;
  /** 񥨥ȥ */
  char *entry;
  /** ǥåؤΥǥå */
  int *page_index;
  /** Υǥå */
  char *page;
  /** 㼭 */
  char *uc_section;


  /* ñ켭 */
  int nr_pages;
  struct file_dic_page *pages;
  unsigned char *hash_ent;
  /**/
  int nr_ucs;
  int *ucs;
};

int anthy_dic_ntohl(int );

#endif