OSDN Git Service

* default fold-margin is not 5 but 10.
[nkf/nkf.git] / config.h
1 #ifndef _CONFIG_H_
2 #define _CONFIG_H_
3
4 /* UTF8 \e$BF~=PNO\e(B */
5 #define UTF8_INPUT_ENABLE
6 #define UTF8_OUTPUT_ENABLE
7
8 /* Shift_JIS \e$BHO0O30$NJ8;z$r!"\e(BCP932 \e$B$GF1CM$JJ8;z$KFI$_49$($k\e(B */
9 #define SHIFTJIS_CP932
10
11 /* \e$B%*%W%7%g%s$GF~NO$r;XDj$7$?;~$K!"J8;z%3!<%I$r8GDj$9$k\e(B */
12 #define INPUT_CODE_FIX
13
14 /* --overwrite \e$B%*%W%7%g%s\e(B */
15 /* by Satoru Takabayashi <ccsatoru@vega.aichi-u.ac.jp> */
16 #define OVERWRITE
17
18 /* --cap-input, --url-input \e$B%*%W%7%g%s\e(B */
19 #define INPUT_OPTION
20
21 /* --numchar-input \e$B%*%W%7%g%s\e(B */
22 #define NUMCHAR_OPTION
23
24 /* --debug, --no-output \e$B%*%W%7%g%s\e(B */
25 #define CHECK_OPTION
26
27 /* JIS X0212 */
28 #define X0212_ENABLE
29
30 /* --exec-in, --exec-out \e$B%*%W%7%g%s\e(B
31  * pipe, fork, execvp \e$B$"$?$j$,L5$$$HF0$-$^$;$s!#\e(B
32  * MS-DOS, MinGW \e$B$J$I$G$O\e(B undef \e$B$K$7$F$/$@$5$$\e(B
33  * child process \e$B=*N;;~$N=hM}$,$$$$$+$2$s$J$N$G!"\e(B
34  * \e$B%G%U%)%k%H$GL58z$K$7$F$$$^$9!#\e(B
35  */
36 /* #define EXEC_IO */
37
38 /* SunOS \e$B$N\e(B cc \e$B$r;H$&$H$-$O\e(B undef \e$B$K$7$F$/$@$5$$\e(B */
39 #define ANSI_C_PROTOTYPE
40
41 /* int \e$B$,\e(B 32bit \e$BL$K~$N4D6-$G\e(B NUMCHAR_OPTION \e$B$r;H$&$K$O!"\e(B
42  * \e$B%3%a%s%H$r30$7$F$/$@$5$$!#\e(B
43  */
44 /* #define INT_IS_SHORT */
45
46 /* Unicode Normalization */
47 #define UNICODE_NORMALIZATION
48
49 #ifndef WIN32DLL
50 /******************************/
51 /* \e$B%G%U%)%k%H$N=PNO%3!<%IA*Br\e(B */
52 /* Select DEFAULT_CODE */
53 #define DEFAULT_CODE_JIS
54 /* #define DEFAULT_CODE_SJIS */
55 /* #define DEFAULT_CODE_EUC */
56 /* #define DEFAULT_CODE_UTF8 */
57 /******************************/
58 #else
59 #define DEFAULT_CODE_SJIS
60 #endif
61
62 #if defined(NUMCHAR_OPTION) && !defined(UTF8_INPUT_ENABLE)
63 #define UTF8_INPUT_ENABLE
64 #endif
65
66 #ifdef UNICODE_NORMALIZATION
67 #ifndef UTF8_INPUT_ENABLE
68 #define UTF8_INPUT_ENABLE
69 #endif
70 #define NORMALIZATION_TABLE_LENGTH 942
71 #define NORMALIZATION_TABLE_NFC_LENGTH 3
72 #define NORMALIZATION_TABLE_NFD_LENGTH 9
73 struct normalization_pair{
74     const int nfc[NORMALIZATION_TABLE_NFC_LENGTH];
75     const int nfd[NORMALIZATION_TABLE_NFD_LENGTH];
76 };
77 #endif
78
79 #endif /* _CONFIG_H_ */