getting closer

This commit is contained in:
Ash Wolf
2023-01-11 22:29:53 +00:00
parent aec1b8dddc
commit 0bec4f557a
133 changed files with 10146 additions and 3285 deletions

View File

@@ -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;
}

View File

@@ -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;
}

View File

@@ -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) {
}

View File

@@ -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;
}

View File

@@ -22,7 +22,7 @@ SInt16 CharacterByteType(Ptr textBuf, SInt16 textOffset, ScriptCode script) {
return 0;
}
SInt16 CharByte() {
SInt16 CharByte(void) {
return 0;
}