diff options
Diffstat (limited to 'command_line/CmdLine/Src/MacEmul')
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/LowMem.c | 6 | ||||
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/Memory.c | 10 | ||||
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/ResourceStrings.c | 4 | ||||
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/Resources.c | 12 | ||||
-rw-r--r-- | command_line/CmdLine/Src/MacEmul/TextUtils.c | 2 |
5 files changed, 17 insertions, 17 deletions
diff --git a/command_line/CmdLine/Src/MacEmul/LowMem.c b/command_line/CmdLine/Src/MacEmul/LowMem.c index cd31194..6b32e2c 100644 --- a/command_line/CmdLine/Src/MacEmul/LowMem.c +++ b/command_line/CmdLine/Src/MacEmul/LowMem.c @@ -2,15 +2,15 @@ static OSErr memErr; -UInt32 LMGetTicks() { +UInt32 LMGetTicks(void) { return (OS_GetMilliseconds() * 60) / 1000; } -UInt32 LMGetTime() { +UInt32 LMGetTime(void) { return OS_GetMilliseconds() / 1000; } -OSErr LMGetMemErr() { +OSErr LMGetMemErr(void) { return memErr; } diff --git a/command_line/CmdLine/Src/MacEmul/Memory.c b/command_line/CmdLine/Src/MacEmul/Memory.c index e201343..e6c42c3 100644 --- a/command_line/CmdLine/Src/MacEmul/Memory.c +++ b/command_line/CmdLine/Src/MacEmul/Memory.c @@ -49,7 +49,7 @@ void OS_DestroyMacHandle(Handle h, OSHandle *ret) { free(h); } -OSErr MemError() { +OSErr MemError(void) { return memError; } @@ -257,10 +257,10 @@ void DebugStr(ConstStringPtr str) { fprintf(stderr, "%*.*s", str[0], str[0], &str[1]); } -struct Zone *HandleZone() { - return 0; +struct Zone *HandleZone(void) { + return NULL; } -struct Zone *ApplicationZone() { - return 0; +struct Zone *ApplicationZone(void) { + return NULL; } diff --git a/command_line/CmdLine/Src/MacEmul/ResourceStrings.c b/command_line/CmdLine/Src/MacEmul/ResourceStrings.c index 4b6bc22..2cc960c 100644 --- a/command_line/CmdLine/Src/MacEmul/ResourceStrings.c +++ b/command_line/CmdLine/Src/MacEmul/ResourceStrings.c @@ -8,7 +8,7 @@ typedef struct { static Res rlist[16]; -void Res_Initialize() { +void Res_Initialize(void) { memset(rlist, 0, sizeof(rlist)); } @@ -64,5 +64,5 @@ const char *Res_GetResource(SInt16 rsrcid, SInt16 index) { return 0; } -void Res_Cleanup() { +void Res_Cleanup(void) { } diff --git a/command_line/CmdLine/Src/MacEmul/Resources.c b/command_line/CmdLine/Src/MacEmul/Resources.c index ef2aab0..821df0b 100644 --- a/command_line/CmdLine/Src/MacEmul/Resources.c +++ b/command_line/CmdLine/Src/MacEmul/Resources.c @@ -105,7 +105,7 @@ static Boolean UseResourceForkInfo; // Forward declarations static void ReadResourceFork(SInt16 ref, SInt8 permission, void *file_data, SInt32 file_size); -Boolean OS_UsingMacResourceForkInfo() { +Boolean OS_UsingMacResourceForkInfo(void) { return UseResourceForkInfo; } @@ -1186,7 +1186,7 @@ OSErr HOpenRF(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8 permi } } -OSErr InitResources() { +OSErr InitResources(void) { MemRsrcMap *map; map = maplist; @@ -1201,7 +1201,7 @@ OSErr InitResources() { return 0; } -OSErr ResError() { +OSErr ResError(void) { return resError; } @@ -1289,7 +1289,7 @@ OSErr HOpenResFile(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8 return FSpOpenResFile(&fss, permission); } -SInt16 CurResFile() { +SInt16 CurResFile(void) { return cur_res_file; } @@ -1570,7 +1570,7 @@ Handle Get1IndResource(OSType theType, SInt16 index) { } } -SInt16 Count1Types() { +SInt16 Count1Types(void) { MemRsrcMap *rm; MemRsrcTypeList *rtl; SInt16 count; @@ -1667,6 +1667,6 @@ SInt16 GetResFileAttrs(SInt16) { } } -Boolean LMGetResLoad() { +Boolean LMGetResLoad(void) { return 1; } diff --git a/command_line/CmdLine/Src/MacEmul/TextUtils.c b/command_line/CmdLine/Src/MacEmul/TextUtils.c index 7971074..f9f606d 100644 --- a/command_line/CmdLine/Src/MacEmul/TextUtils.c +++ b/command_line/CmdLine/Src/MacEmul/TextUtils.c @@ -22,7 +22,7 @@ SInt16 CharacterByteType(Ptr textBuf, SInt16 textOffset, ScriptCode script) { return 0; } -SInt16 CharByte() { +SInt16 CharByte(void) { return 0; } |