|
|
| version 1.8, 2003/11/30 16:40:50 | 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 |
| #define OSLANG_SJIS | #define OSLANG_SJIS |
| #define OSLINEBREAK_CR | #define OSLINEBREAK_CR |
| typedef unsigned char TCHAR; | |
| typedef signed int SINT; | typedef signed int SINT; |
| typedef unsigned int UINT; | typedef unsigned int UINT; |
| Line 25 typedef unsigned short UINT16; | Line 21 typedef unsigned short UINT16; |
| typedef signed int SINT32; | typedef signed int SINT32; |
| typedef unsigned int UINT32; | typedef unsigned int UINT32; |
| typedef unsigned char BYTE; | |
| typedef Boolean BOOL; | typedef Boolean BOOL; |
| typedef signed char TCHAR; | |
| typedef signed char CHAR; | |
| typedef unsigned char BYTE; | |
| #define INLINE inline | |
| #define MAX_PATH 260 | #define MAX_PATH 260 |
| Line 38 typedef Boolean BOOL; | Line 38 typedef Boolean BOOL; |
| #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 49 typedef Boolean BOOL; | Line 54 typedef Boolean BOOL; |
| #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 65 typedef Boolean BOOL; | Line 77 typedef Boolean BOOL; |
| // #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_S98 | |
| #define SUPPORT_SWSEEKSND | |
| #define SUPPORT_HOSTDRV | |
| #define SUPPORT_SASI | |
| #define SUPPORT_SCSI | |
| #define SUPPORT_KEYDISP | |
| #define SUPPORT_SOFTKBD 0 | |
| #define USE_RESUME | |
| #define SOUNDRESERVE 80 | #define SOUNDRESERVE 80 |
| #if defined(CPUCORE_IA32) | |
| typedef SInt64 SINT64; | |
| typedef UInt64 UINT64; | |
| #define FASTCALL | |
| #define CPUCALL | |
| #define MEMCALL | |
| #define SUPPORT_PC9821 | |
| #define SUPPORT_CRT31KHZ | |
| #define IA32_PAGING_EACHSIZE | |
| #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 |