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
53
54
55
56
57
58
|
struct page {
char *page;
char *enc;
char attr[3];
};
struct index {
int num;
char words;
unsigned char *org[3];
unsigned char *dic[3];
unsigned char *idx[3];
struct page *p;
int lnum;
};
/* convert.c */
void initkanatable(void);
int convert(unsigned char *buff1, unsigned char *buff2);
int pnumconv(char *page, int attr);
int dicread(const char *filename);
/* pageread.c */
int lastpage(const char *filename);
/* sort.c */
void wsort(struct index *ind, int num);
void pagesort(struct index *ind, int num);
int alphanumeric(unsigned char c);
int alphabet(unsigned char c);
int numeric(unsigned char c);
int japanese(unsigned char *buff);
int chkcontinue(struct page *p, int num);
/* styfile.c */
void styread(const char *filename);
/* fread.c */
char *mfgets(char *buf, int byte, FILE *fp);
int idxread(char *filename, int start);
/* fwrite.c */
int fprintf2 (FILE *fp, const char *format, ...);
int warn_printf(FILE *fp, const char *format, ...);
int verb_printf(FILE *fp, const char *format, ...);
struct index;
void indwrite(char *filename, struct index *ind, int pagenum);
#ifdef fprintf
#undef fprintf
#endif
#define fprintf fprintf2
#ifdef fputs
#undef fputs
#endif
#define fputs fputs2
|