|
|
| version 1.14, 2004/02/25 19:30:40 | 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 |
| #define SUPPORT_HOSTDRV | #define SUPPORT_HOSTDRV |
| #define SUPPORT_SASI | #define SUPPORT_SASI |
| #define SUPPORT_SCSI | #define SUPPORT_SCSI |
| #define SUPPORT_KEYDISP | |
| #define SUPPORT_SOFTKBD 0 | |
| #define USE_RESUME | |
| #define SOUNDRESERVE 80 | #define SOUNDRESERVE 80 |
| #if defined(CPUCORE_IA32) | #if defined(CPUCORE_IA32) |
| typedef signed long long SINT64; | typedef SInt64 SINT64; |
| typedef unsigned long long UINT64; | typedef UInt64 UINT64; |
| #define INLINE inline | |
| #define FASTCALL | #define FASTCALL |
| #define CPUCALL | #define CPUCALL |
| #define MEMCALL | #define MEMCALL |
| typedef UINT64 DWORD; | #define SUPPORT_PC9821 |
| typedef UINT32 WORD; | #define SUPPORT_CRT31KHZ |
| void msgbox (char* text, char* buf); | #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 | #endif |