home *** CD-ROM | disk | FTP | other *** search
- /*
- * config.h: hterm configration definitions
- *
- * Author: HIRANO Satoshi
- * (C) 1989 Halca Computer Science Laboratory TM
- * University of Tokyo
- *
- * Edition history:
- * 1.1 89/06/21 Halca.Hirano creation
- * 1.2 89/09/25 Halca.Hirano add xmodem
- * ---- V2.4.0 distribution ----
- * 1.3 89/11/10 Tominaga@Titech ported to J3100
- * 1.4 89/11/28 naka_j@huie.hokudai.ac.jp
- * old MATUTAKE(FEP) eats DEL, then add code change.
- * shared code specified in this file.
- * 1.5 89/11/29 Halca.Hirano
- * add audible/visible/both bell mode
- * 1.6 89/12/03 Halca.Hirano add bs key watcher
- * MAX_FUNKEY (function key string length) 14 -> 17 (16+1)
- *
- * $Header: config.hv 1.17 90/07/04 00:28:58 hirano Exp $
- */
-
- /*
- * machine architecture
- */
- /* but machine type is set on command line */
- /* #define PC98 */
- /* #undef IBMPC */
- /* #undef J3100 */
- /* #undef AX */
-
- #ifdef IBMPC
- #define MACHINE "IBM-PC"
- #define KANJI
- #define LITTLE_ENDIAN 1
- #endif /* IBMPC */
-
- #ifdef J3100
- #define MACHINE "J-3100"
- #define LITTLE_ENDIAN 1
- #define KANJI
- #endif /* J3100 */
-
- #ifdef PC98
- #define MACHINE "PC9801"
- #define KANJI /* use with kanji */
- #define LITTLE_ENDIAN 1
- #endif /* PC98 */
-
- /*
- * variants
- */
- #ifdef PC98XA
- #define PC98 /* PC98XA assumes PC98 */
- #define MACHINE "PC98XA"
- #define KANJI /* use with kanji */
- #define LITTLE_ENDIAN 1
- #endif /* PC98XA */
-
- #ifdef AX
- #define MACHINE "AX"
- #define IBMPC
- #define KANJI /* use with kanji */
- #define LITTLE_ENDIAN 1
- #endif /* AX */
-
- #ifdef PS2 /* PS2 under native MS-DOS (not tested) */
- #define MACHINE "PS2"
- #define IBMPC
- #define KANJI
- #define LITTLE_ENDIAN 1
- #endif /* AX */
-
- #ifdef X68000
- #define MACHINE "X68000"
- #define BIG_ENDIAN 1
- #endif /* X68000 */
-
- #ifndef MACHINE
- abort! set machine type: PC98, PC98XA, IBMPC, AX, J3100, X68000
- #endif /* MACHINE */
-
- /*
- * Operating systems
- */
- /* #define OSK */ /* set by cc */
- /* #define MSDOS */ /* set by cc */
-
- /*
- * compiler types
- */
-
- #ifdef __TURBOC__
- /*
- * TURBOC 1.5/2.0
- */
- #define FAR far /* far pointer */
- #define HUGE huge /* huge pointer */
- #define NEAR near /* near pointer */
- #define SET_DOSVECT(x,y) setvect(x,y) /* set vector */
- #define GET_DOSVECT(x) getvect(x) /* get vector */
- #define FINDFIRST(x,y,z) findfirst(x,z,y) /* wild card expander */
- #define FINDNEXT(x) findnext(x) /* wild card expander2 */
- #define ALLOCMEM(x,y) allocmem(x,y) /* allocate dos memory */
- #define ALLOCOK (-1) /* return value OK */
- #define FREEMEM(x) freemem(x) /* deallocate memory */
- #define MOVEDATA(ss,so,ds,do,s) movedata(ss,so,ds,do,s) /* far memory access */
- #define INTERRUPT interrupt
- #define COMP_TURBOC 1
- #define COMPILER_TYPE
- #endif /* __TURBOC__ */
-
-
- #ifdef OSK
- /*
- * OS-9/680x0 or OS-9000 native compiler
- */
- #define FAR /* far pointer */
- #define HUGE /* huge pointer */
- #define NEAR /* near pointer */
- #define INTERRUPT
- #define COMP_OSK 1
- #define COMPILER_TYPE
- #endif /* OSK */
-
-
- #ifndef COMPILER_TYPE
- /*
- * default MSC5.1 or later
- */
- #define FAR far /* far pointer */
- #define HUGE huge /* huge pointer */
- #define NEAR near /* near pointer */
- #define SET_DOSVECT(x,y) _dos_setvect(x,y) /* set vector */
- #define GET_DOSVECT(x) _dos_getvect(x) /* get vector */
- #define FINDFIRST(x,y,z) _dos_findfirst(x,y,z) /* wild card expander */
- #define FINDNEXT(x) _dos_findnext(x) /* wild card expander2 */
- #define ALLOCMEM(x,y) _dos_allocmem(x,y) /* allocate dos memory */
- #define ALLOCOK (0) /* return value OK */
- #define INTERRUPT interrupt
- #define FREEMEM(x) _dos_freemem(x) /* deallocate memory */
- #define MOVEDATA(ss,so,ds,do,s) movedata(ss,so,ds,do,s) /* far memcpy access */
- #define COMP_MSC 1
- #endif /* COMPILER_TYPE */
-
- #ifdef OSK
- #define PATH_CHAR '/'
- #define PATH_DELIM ':'
- #endif
-
- #ifdef MSDOS
- #define PATH_CHAR '\\'
- #define PATH_DELIM ';'
- #endif
-