| version 1.19, 2004/04/18 16:42:28 | version 1.22, 2005/05/20 17:25:03 | 
| Line 2 | Line 2 | 
 | #include        <stdio.h> | #include        <stdio.h> | 
 | #include        <stdlib.h> | #include        <stdlib.h> | 
 | #include        <stddef.h> | #include        <stddef.h> | 
 | #ifndef NP2GCC |  | 
 | #include        <MultiProcessing.h> |  | 
 | #endif |  | 
 |  |  | 
 | #define MACOS | #define MACOS | 
 | #define BYTESEX_BIG | #define BYTESEX_BIG | 
| Line 30  typedef signed char  CHAR; | Line 27  typedef signed char  CHAR; | 
 | typedef unsigned char   BYTE; | typedef unsigned char   BYTE; | 
 |  |  | 
 |  |  | 
 |  | #define INLINE          inline | 
 |  |  | 
 | #define MAX_PATH        260 | #define MAX_PATH        260 | 
 |  |  | 
 | #define ZeroMemory(a, b)                memset((a),  0 , (b)) | #define ZeroMemory(a, b)                memset((a),  0 , (b)) | 
| Line 39  typedef unsigned char BYTE; | Line 38  typedef unsigned char BYTE; | 
 | #define max(a, b)                               (((a)>(b))?(a):(b)) | #define max(a, b)                               (((a)>(b))?(a):(b)) | 
 | #define min(a, b)                               (((a)<(b))?(a):(b)) | #define min(a, b)                               (((a)<(b))?(a):(b)) | 
 |  |  | 
 |  | #define BRESULT                         UINT8 | 
 |  | #define OEMCHAR                         char | 
 |  | #define OEMTEXT(string)         string | 
 |  | #define OEMSPRINTF                      sprintf | 
 |  | #define OEMSTRLEN                       strlen | 
 |  |  | 
 | #include        "common.h" | #include        "common.h" | 
 | #include        "macossub.h" | #include        "macossub.h" | 
| Line 50  typedef unsigned char BYTE; | Line 54  typedef unsigned char BYTE; | 
 |  |  | 
 | #define GETTICK()                       macos_gettick() | #define GETTICK()                       macos_gettick() | 
 | #define SPRINTF                         sprintf | #define SPRINTF                         sprintf | 
 |  | #define STRLEN                          strlen | 
 | #define __ASSERT(s) | #define __ASSERT(s) | 
 |  |  | 
 | #define VERMOUTH_LIB | #define VERMOUTH_LIB | 
 | // #define SOUND_CRITICAL | // #define SOUND_CRITICAL | 
 |  |  | 
 |  | #if defined(OSLANG_SJIS) | 
 | #define SUPPORT_SJIS | #define SUPPORT_SJIS | 
 |  | #elif defined(OSLANG_UTF8) | 
 |  | #define SUPPORT_UTF8 | 
 |  | #else | 
 |  | #define SUPPORT_ANK | 
 |  | #endif | 
 |  |  | 
 | // #define      SUPPORT_8BPP | // #define      SUPPORT_8BPP | 
 | #ifdef NP2GCC | #ifdef NP2GCC | 
| Line 66  typedef unsigned char BYTE; | Line 77  typedef unsigned char BYTE; | 
 | // #define SUPPORT_NORMALDISP | // #define SUPPORT_NORMALDISP | 
 | #define MEMOPTIMIZE             1 | #define MEMOPTIMIZE             1 | 
 |  |  | 
 |  | #if defined(CPUCORE_IA32) | 
 |  | #define SUPPORT_CRT31KHZ | 
 |  | #define SUPPORT_PC9821 | 
 |  | #define IA32_PAGING_EACHSIZE | 
 |  | #endif | 
 | #define SUPPORT_CRT15KHZ | #define SUPPORT_CRT15KHZ | 
 | #define SUPPORT_S98 | #define SUPPORT_S98 | 
 | #define SUPPORT_SWSEEKSND | #define SUPPORT_SWSEEKSND | 
| Line 73  typedef unsigned char BYTE; | Line 89  typedef unsigned char BYTE; | 
 | #define SUPPORT_SASI | #define SUPPORT_SASI | 
 | #define SUPPORT_SCSI | #define SUPPORT_SCSI | 
 | #define SUPPORT_KEYDISP | #define SUPPORT_KEYDISP | 
| #define SUPPORT_SOFTKBD | #define SUPPORT_SOFTKBD 0 | 
 |  |  | 
 | #define USE_RESUME | #define USE_RESUME | 
 | #define SOUNDRESERVE    80 | #define SOUNDRESERVE    80 | 
| Line 81  typedef unsigned char BYTE; | Line 97  typedef unsigned char BYTE; | 
 | #if defined(CPUCORE_IA32) | #if defined(CPUCORE_IA32) | 
 | typedef SInt64                  SINT64; | typedef SInt64                  SINT64; | 
 | typedef UInt64                  UINT64; | typedef UInt64                  UINT64; | 
 | #define INLINE                  inline |  | 
 | #define FASTCALL | #define FASTCALL | 
 | #define CPUCALL | #define CPUCALL | 
 | #define MEMCALL | #define MEMCALL | 
 | #define SUPPORT_PC9821 | #define SUPPORT_PC9821 | 
 | #define SUPPORT_CRT31KHZ | #define SUPPORT_CRT31KHZ | 
 | #define IA32_PAGING_EACHSIZE | #define IA32_PAGING_EACHSIZE | 
| static inline void msgbox(char* title, char* msg) { } | #define sigjmp_buf                              jmp_buf | 
|  | #define sigsetjmp(env, mask)    setjmp(env) | 
|  | #define siglongjmp(env, val)    longjmp(env, val) | 
|  | #define msgbox(title, msg)              TRACEOUT(("%s", title)); \ | 
|  | TRACEOUT(("%s", msg)) | 
 | #endif | #endif |