1 /* $Id: config.h,v 1.6 2000/11/16 14:22:08 amura Exp $ */
2 /*
3  *		config.h - defines compile time options.
4  */
5 /* 90.12.20	Created by S.Yoshida */
6 
7 /*................................................*/
8 #if defined(_WIN32)&&!defined(__CYGWIN__)&&!defined(WIN32)
9 #define	WIN32		/* Do not edit this line. */
10 #endif			/* Do not edit this line. */
11 /*................................................*/
12 /*----------------------------------------------------------------------*/
13 /*	Features removeable to save space.				*/
14 /*----------------------------------------------------------------------*/
15 
16 #undef	NO_BACKUP	/* Disable backup files when writing.	*/
17 
18 #undef	NO_DIR		/* Disable dir change functions.	*/
19 			/* If defined, NO_STARTUP must be also. */
20 
21 #undef	NO_DIRED	/* Disable "dired" mode.		*/
22 			/* If not defined, ADDFUNC must be also.*/
23 
24 #undef	NO_DPROMPT	/* Disable delayed prompt on multi-key sequences. */
25 
26 #undef	NO_FILECOMP	/* Disable file name completion.	*/
27 
28 #undef	NO_HELP		/* Disable help, descibe-bindings,	*/
29 			/* describe-key-briefly, apropos  	*/
30 
31 #undef	NO_MACRO	/* Disable keyboard macros.		*/
32 			/* If defined, NO_STARTUP must be also. */
33 
34 #undef	NO_SHELL	/* Disable shell-command function.	*/
35 
36 #undef	NO_STARTUP	/* Disable startup files, load, etc.	*/
37 
38 #define	DO_METAKEY	/* Enable META key input.		*/
39 
40 #define	REGEX		/* Enable regular expression functions.	*/
41 
42 #define	PREFIXREGION	/* Enable function "prefix-region".	*/
43 
44 #define	C_MODE		/* Enable c-mode functions.		*/
45 
46 #define	FILLPREFIX	/* Enable fill prefix function.		*/
47 
48 #define	READONLY	/* Enable read-only buffer mode.	*/
49 
50 #define	NEW_COMPLETE	/* Enable new version completion.	*/
51 			/* If defined, ADDFUNC must be also.	*/
52 
53 #define	VARIABLE_TAB	/* Enable buffer-local tabwidth	(by amura) */
54 
55 #define BUFFER_MODE	/* Enable "Buffer Menu" mode for list-buffer. */
56 			/* (by Tillanosoft) */
57 
58 #define	EXTD_DIR	/* buffer local current directly 	*/
59 			/* (by Tillanosoft, amura) */
60 
61 #define	ADDOPT		/* Enable some commandline option	*/
62 			/* (by Gen KUROKI, amura) */
63 
64 #define IS_ENHANCE	/* Incremantal search enhancement (by bsh) */
65 
66 #define GOMATCH		/* goto matching fence (by bsh)		*/
67 
68 #define ZAPTOCHAR	/* zap to char (by bsh) */
69 #undef	ZAPTOC_A	/* zap to char (GNU Emacs compatible) (by bsh) */
70 
71 #define JUMPERR		/* jump to error function (by bsh)	*/
72 			/* If defined, ADDFUNC must be also. */
73 
74 #define	MINIBUF_EDIT	/* minibuffer edit like GNU emacs (by Kakugawa)	*/
75 
76 #define	NEXTLINE 1	/* next-line-add-newlines (by S.Yoshida) */
77 
78 #define EMACS_QUERY_KEYS /* isearch/query-replace key bindings compatible */
79 			/* with GNU Emacs 19 and later (by Shimbo)*/
80 
81 #define	UNDO		/* Enable buffer undo */
82 
83 /*----------------------------------------------------------------------*/
84 /*	Features for Ng/KANgee (KANJI version Mg2a).			*/
85 /*----------------------------------------------------------------------*/
86 
87 #define	KANJI		/* Create KANJI handling version.	*/
88 
89 #define	HANKANA		/* Create Hankaku KANA  handling version. */
90 
91 #define CURSOR_POS	/* Cursor locates on next CHR after POINT */
92 
93 #define	KINSOKU		/* Create KINSOKU handling version. If defined, */
94 			/* KANJI must be also.				*/
95 
96 #define	BUGFIX		/* Fix bugs in the original Mg2a.	*/
97 
98 #define	ADDFUNC		/* Create additional misc functions.	*/
99 
100 #define	REGEX_JAPANESE	/* Enable Japanese regular expression.	*/
101 			/* (by amura, Selow) */
102 
103 #define	INCLUDE_SKG	/* Enable SKG(Simple Kanji Generator System)	*/
104 			/* (by H.Konishi) */
105 
106 #define JISFIX		/* JIS code input fix (by Gen.KUROKI) */
107 
108 #define VTCURSOR	/* Use DEC vt cursor key on JIS input mode */
109 			/* (by Gen.KUROKI) */
110 
111 /*----------------------------------------------------------------------*/
112 /*	SystemV / BSD machine dependent features.			*/
113 /*----------------------------------------------------------------------*/
114 /*................................................*/
115 #ifndef	MSDOS		/* Do not edit this line. */
116 #ifndef	HUMAN68K	/* Do not edit this line. */
117 #ifndef	AMIGA		/* Do not edit this line. */
118 #ifndef WIN32		/* Do not edit this line. */
119 /*................................................*/
120 
121 #undef	SVR2		/* System V is Release 2.	*/
122 #undef	SVR3		/* System V is Release 3.x.	*/
123 #define	SVR4		/* System V is Release 4.x. (or linux)	*/
124 
125 #define POSIXTTY	/* System V has POSIX termios */
126 
127 #define XKEYS		/* use numelic keypad (by Gen.KUROKI) */
128 
129 /*#define CANNA		/* use CANNA kana-kanji server (by Endo) */
130 
131 /*................................................*/
132 #endif			/* Do not edit this line. */
133 #endif			/* Do not edit this line. */
134 #endif			/* Do not edit this line. */
135 #endif			/* Do not edit this line. */
136 /*................................................*/
137 
138 /*----------------------------------------------------------------------*/
139 /*	MS-DOS machine dependent features.				*/
140 /*----------------------------------------------------------------------*/
141 /*................................................*/
142 #ifdef	MSDOS		/* Do not edit this line. */
143 /*................................................*/
144 
145 /*#undef TCCONIO	/* Use Turbo C console IO  (by amura) */
146 
147 /*#undef IBMPC		/* Create Ng for IBM PC compatible	*/
148 			/* (include Toshiba J-3100)		*/
149 
150 /*#undef PC9801		/* Create Ng for NEC PC-9801 series. */
151 
152 #define BACKSLASH	/* Display backslash instead of \ (PC-9801 only) */
153 
154 #define HOMEDIR		/* Home directory support for MSDOS (by amura) */
155 
156 #define FEPCTRL		/* Enable FEP auto control. */
157 
158 /*................................................*/
159 #endif			/* Do not edit this line. */
160 /*................................................*/
161 
162 /*----------------------------------------------------------------------*/
163 /*	Win32 machine dependent features. by Eiichirou ITO,Tillanosoft	*/
164 /*----------------------------------------------------------------------*/
165 /*................................................*/
166 #ifdef WIN32		/* Do not edit this line. */
167 /*................................................*/
168 
169 #define	JAPANESE_KEYBOARD /* keyboard layout is Japanese one	*/
170 
171 #define FEPCTRL		/* Enable FEP auto control. */
172 
173 #define CLIPBOARD	/* Enable Clipboard cut & paste */
174 
175 #define DROPFILES	/* Drag'n Drop file open */
176 			/* If defined, ADDFUNC must be also. */
177 
178 #define	EMACS_BACKUP_STYLE
179 			/* Backup files like as GNU Emacs */
180 			/* If you use Win9x, this shold not set */
181 
182 #undef COMMANDBANDS	/* COMMANDBAND for WinCE */
183 
184 /*................................................*/
185 #endif			/* Do not edit this line. */
186 /*................................................*/
187 
188 /*----------------------------------------------------------------------*/
189 /*	Human68k machine dependent features.				*/
190 /*----------------------------------------------------------------------*/
191 /*................................................*/
192 #ifdef	HUMAN68K	/* Do not edit this line. */
193 /*................................................*/
194 
195 #define FEPCTRL		/* Enable FEP auto control. */
196 
197 #define	EMACS_BACKUP_STYLE
198 			/* Backup files like as GNU Emacs */
199 
200 /*................................................*/
201 #endif			/* Do not edit this line. */
202 /*................................................*/
203 
204 /*----------------------------------------------------------------------*/
205 /*	AmigaDos dependent features.	Dec.18,1992 Add by H.Ohkubo	*/
206 /*----------------------------------------------------------------------*/
207 /*................................................*/
208 #ifdef	AMIGA		/* Do not edit this line. */
209 /*................................................*/
210 
211 #undef	V11		/* No Ver1.1 AmigaDOS */
212 
213 #define V2		/* Don't support AmigaDOS 1.x (by amura) */
214 
215 #define	DO_MENU		/* Enable Menu selection */
216 
217 #define	MOUSE		/* Enable mouse */
218 
219 #define	FKEYS		/* Enable to use function key */
220 
221 #define	DO_ICONIFY	/* Enable iconify */
222 
223 #define	CHANGE_COLOR	/* Enable color setting */
224 
225 #define	CHANGE_FONT	/* Enable font setting */
226 
227 #undef	USE_ARP		/* Enable ARP Library */
228 			/* Undefined by H.Konishi for SAS */
229 
230 #define	LAMIGA_META	/* Assume Left Amiga to META key (by amura) */
231 
232 #undef	MODE_RENDITION	/* Set Default */
233 #undef	TEXT_RENDITION	/* Set Default */
234 #undef	TEXT_FG		/* Set Default */
235 #undef	TEXT_BG		/* Set Default */
236 #undef	MODE_FG		/* Set Default */
237 #undef	MODE_BG		/* Set Default */
238 
239 #define ASL             /* Enable ASL Requester (by H.Konishi) */
240 
241 #undef	AMIGA_STDIO	/* Using ANSI-Standard FILE IO library (by amura) */
242 #define	CLIPBOARD	/* AMIGA Clipboard support (by amura) */
243 
244 /*................................................*/
245 #endif			/* Do not edit this line. */
246 /*................................................*/
247 
248 /************************************************************************/
249 /*	Do not edit following lines.					*/
250 /************************************************************************/
251 
252 #ifdef KANJI
253 # ifdef NO_KANJI /* in order to use same source for Ng and MG, Tillanosoft */
254 #  undef KANJI
255 # endif
256 #endif
257 
258 #ifdef HANKANA
259 #  ifndef KANJI
260 #    undef HANKANA
261 #  endif
262 #endif
263 
264 #ifndef KANJI
265 # ifdef JAPANESE_KEYBOARD
266 #  undef JAPANESE_KEYBOARD
267 # endif
268 #endif
269 
270 #ifdef CURSOR_POS
271 #  ifndef KANJI
272 #    undef CURSOR_POS
273 #  endif
274 #endif
275 
276 #ifdef	NO_DIR
277 #   ifndef  NO_STARTUP
278 #	define	NO_STARTUP
279 #   endif
280 #endif
281 
282 #ifdef	NO_MACRO
283 #   ifndef  NO_STARTUP
284 #	define	NO_STARTUP
285 #   endif
286 #endif
287 
288 #ifdef	KINSOKU
289 #   ifndef  KANJI
290 #	undef	KINSOKU
291 #   endif
292 #endif
293 
294 #ifdef FEPCTRL
295 # ifndef KANJI
296 #  undef FEPCTRL
297 # endif
298 #endif
299 
300 #ifdef	NEW_COMPLETE
301 #   ifndef  ADDFUNC
302 #	define	ADDFUNC
303 #   endif
304 #endif
305 
306 #ifndef	NO_DIRED
307 #   ifndef  ADDFUNC
308 #	define	ADDFUNC
309 #   endif
310 #endif
311 
312 #ifdef	JUMPERR
313 #   ifndef  ADDFUNC
314 #	define	ADDFUNC
315 #   endif
316 #endif
317 
318 #ifdef	DROPFILES
319 #   ifndef  ADDFUNC
320 #	define	ADDFUNC
321 #   endif
322 #endif
323 
324 #ifdef	MSDOS
325 #   ifdef   J3100
326 #	ifdef   PC9801
327 #	    undef   PC9801
328 #	endif
329 #   endif
330 #endif
331 
332 #ifdef	DO_ICONIFY
333 #   ifdef   SAS6
334 #	undef	DO_ICONIFY
335 #   endif
336 #endif
337 
338 #ifdef	USE_ARP
339 #   ifdef   SAS6
340 #	undef	USE_ARP
341 #   endif
342 #endif
343 
344 #ifdef	BROWSER
345 #   ifndef  DO_MENU
346 #	define	DO_MENU
347 #   endif
348 #endif
349 
350 #ifdef	REGEX_JAPANESE
351 #   ifndef  REGEX
352 #	define	REGEX
353 #   endif
354 #endif
355 
356 #ifndef	SUPPORT_ANSI
357 # ifdef __STDC__
358 #  define SUPPORT_ANSI
359 # endif
360 # ifdef WIN32
361 #  define SUPPORT_ANSI
362 # endif
363 #endif
364 
365 #ifdef WIN32
366 #define MOUSE
367 #endif
368 
369 #ifdef CLIPBOARD
370 # ifndef WIN32
371 #  ifndef AMIGA
372 #   undef CLIPBOARD
373 #  endif
374 # endif
375 #endif
376 
377 #ifdef V2
378 # ifdef V11
379 #  undef V11
380 # endif
381 #endif
382 
383 #ifdef ASL
384 # ifndef V2
385 #  undef ASL
386 # else
387 #  ifndef DO_MENU
388 #   undef ASL
389 #  endif
390 # endif
391 #endif
392 
393 #ifdef SVR2
394 # ifdef SVR3
395 #  undef SVR3
396 # endif
397 # ifdef SVR4
398 #  undef SVR4
399 # endif
400 #endif
401 
402 #ifdef SVR3
403 # ifdef SVR4
404 #  undef SVR4
405 # endif
406 #endif
407 
408 #ifdef SVR4
409 # ifndef POSIXTTY
410 #  define POSIXTTY
411 # endif
412 #endif
413