home *** CD-ROM | disk | FTP | other *** search
/ ProfitPress Mega CDROM2 …eeware (MSDOS)(1992)(Eng) / ProfitPress-MegaCDROM2.B6I / COMM / MISC / SRC26_2.ZIP / SRC / CONFIG.H < prev    next >
Encoding:
C/C++ Source or Header  |  1990-07-04  |  3.9 KB  |  156 lines

  1. /* 
  2.  * config.h: hterm configration definitions
  3.  *
  4.  * Author: HIRANO Satoshi
  5.  * (C) 1989  Halca Computer Science Laboratory TM
  6.  *           University of Tokyo
  7.  *
  8.  * Edition history:
  9.  * 1.1 89/06/21 Halca.Hirano creation
  10.  * 1.2 89/09/25 Halca.Hirano add xmodem
  11.  *     ---- V2.4.0 distribution ----
  12.  * 1.3 89/11/10 Tominaga@Titech ported to J3100
  13.  * 1.4 89/11/28 naka_j@huie.hokudai.ac.jp 
  14.  *    old MATUTAKE(FEP) eats DEL, then add code change.
  15.  *    shared code specified in this file.
  16.  * 1.5 89/11/29 Halca.Hirano
  17.  *    add audible/visible/both bell mode
  18.  * 1.6 89/12/03 Halca.Hirano add bs key watcher
  19.  *    MAX_FUNKEY (function key string length) 14 -> 17 (16+1)
  20.  *
  21.  * $Header: config.hv  1.17  90/07/04 00:28:58  hirano  Exp $
  22.  */
  23.  
  24. /*
  25.  * machine architecture
  26.  */
  27. /* but machine type is set on command line */
  28. /* #define PC98 */
  29. /* #undef IBMPC */
  30. /* #undef J3100 */
  31. /* #undef AX */
  32.  
  33. #ifdef IBMPC
  34. #define MACHINE        "IBM-PC"
  35. #define KANJI
  36. #define LITTLE_ENDIAN    1
  37. #endif /* IBMPC */
  38.  
  39. #ifdef J3100
  40. #define MACHINE        "J-3100"
  41. #define LITTLE_ENDIAN    1
  42. #define KANJI
  43. #endif /* J3100 */
  44.  
  45. #ifdef PC98
  46. #define MACHINE        "PC9801"
  47. #define KANJI            /* use with kanji    */
  48. #define LITTLE_ENDIAN    1
  49. #endif /* PC98 */
  50.  
  51. /*
  52.  * variants
  53.  */
  54. #ifdef PC98XA
  55. #define PC98            /* PC98XA assumes PC98 */
  56. #define MACHINE        "PC98XA"
  57. #define KANJI            /* use with kanji    */
  58. #define LITTLE_ENDIAN    1
  59. #endif /* PC98XA */
  60.  
  61. #ifdef AX
  62. #define MACHINE        "AX"
  63. #define IBMPC
  64. #define KANJI            /* use with kanji    */
  65. #define LITTLE_ENDIAN    1
  66. #endif /* AX */
  67.  
  68. #ifdef PS2        /* PS2 under native MS-DOS (not tested) */
  69. #define MACHINE        "PS2"
  70. #define IBMPC
  71. #define KANJI
  72. #define LITTLE_ENDIAN    1
  73. #endif /* AX */
  74.  
  75. #ifdef X68000
  76. #define MACHINE        "X68000"
  77. #define BIG_ENDIAN    1
  78. #endif /* X68000 */
  79.  
  80. #ifndef MACHINE
  81. abort! set machine type: PC98, PC98XA, IBMPC, AX, J3100, X68000
  82. #endif /* MACHINE */
  83.  
  84. /*
  85.  * Operating systems
  86.  */
  87. /* #define OSK */        /* set by cc    */
  88. /* #define MSDOS */        /* set by cc    */
  89.  
  90. /*
  91.  * compiler types
  92.  */
  93.  
  94. #ifdef __TURBOC__
  95. /*
  96.  * TURBOC 1.5/2.0 
  97.  */
  98. #define FAR                far                /* far pointer        */
  99. #define HUGE            huge            /* huge pointer        */
  100. #define NEAR            near            /* near pointer        */
  101. #define SET_DOSVECT(x,y) setvect(x,y)    /* set vector        */
  102. #define GET_DOSVECT(x)    getvect(x)        /* get vector        */
  103. #define    FINDFIRST(x,y,z) findfirst(x,z,y)    /* wild card expander    */
  104. #define FINDNEXT(x)        findnext(x)        /* wild card expander2    */
  105. #define ALLOCMEM(x,y)    allocmem(x,y)    /* allocate dos memory    */
  106. #define ALLOCOK            (-1)            /* return value OK    */
  107. #define FREEMEM(x)        freemem(x)        /* deallocate memory    */
  108. #define MOVEDATA(ss,so,ds,do,s)    movedata(ss,so,ds,do,s)    /* far memory access    */
  109. #define INTERRUPT        interrupt
  110. #define COMP_TURBOC        1
  111. #define COMPILER_TYPE
  112. #endif    /* __TURBOC__ */
  113.  
  114.  
  115. #ifdef OSK
  116. /*
  117.  * OS-9/680x0 or OS-9000 native compiler
  118.  */
  119. #define FAR                                /* far pointer        */
  120. #define HUGE                            /* huge pointer        */
  121. #define NEAR                            /* near pointer        */
  122. #define INTERRUPT
  123. #define COMP_OSK        1
  124. #define COMPILER_TYPE
  125. #endif    /* OSK */
  126.  
  127.  
  128. #ifndef COMPILER_TYPE
  129. /*
  130.  * default MSC5.1 or later 
  131.  */
  132. #define FAR                far                /* far pointer        */
  133. #define HUGE            huge            /* huge pointer        */
  134. #define NEAR            near            /* near pointer        */
  135. #define SET_DOSVECT(x,y) _dos_setvect(x,y)    /* set vector        */
  136. #define GET_DOSVECT(x)    _dos_getvect(x)        /* get vector        */
  137. #define FINDFIRST(x,y,z) _dos_findfirst(x,y,z)    /* wild card expander    */
  138. #define FINDNEXT(x)        _dos_findnext(x)    /* wild card expander2    */
  139. #define ALLOCMEM(x,y)    _dos_allocmem(x,y)    /* allocate dos memory    */
  140. #define ALLOCOK            (0)                    /* return value OK    */
  141. #define INTERRUPT        interrupt
  142. #define FREEMEM(x)        _dos_freemem(x)        /* deallocate memory    */
  143. #define MOVEDATA(ss,so,ds,do,s)    movedata(ss,so,ds,do,s)    /* far memcpy access    */
  144. #define COMP_MSC        1
  145. #endif /* COMPILER_TYPE */
  146.  
  147. #ifdef OSK
  148. #define PATH_CHAR        '/'
  149. #define PATH_DELIM        ':'
  150. #endif
  151.  
  152. #ifdef MSDOS
  153. #define PATH_CHAR        '\\'
  154. #define PATH_DELIM        ';'
  155. #endif
  156.