From 0bec4f557a96e1a40437cf5af20cc78a5eec8a63 Mon Sep 17 00:00:00 2001 From: Ash Wolf Date: Wed, 11 Jan 2023 22:29:53 +0000 Subject: getting closer --- includes/macemul.h | 32 ++++++++++++++++---------------- 1 file changed, 16 insertions(+), 16 deletions(-) (limited to 'includes/macemul.h') diff --git a/includes/macemul.h b/includes/macemul.h index dbc4765..ac52e0a 100644 --- a/includes/macemul.h +++ b/includes/macemul.h @@ -51,9 +51,9 @@ extern OSErr Allocate(SInt16 refNum, SInt32 *byteCount); /********************************/ /* LowMem */ -extern UInt32 LMGetTicks(); -extern UInt32 LMGetTime(); -extern OSErr LMGetMemErr(); +extern UInt32 LMGetTicks(void); +extern UInt32 LMGetTime(void); +extern OSErr LMGetMemErr(void); extern void LMSetMemErr(OSErr value); /********************************/ @@ -63,7 +63,7 @@ extern Handle OS_CreateMacHandle(OSHandle *h); extern Handle OS_CreateMacHandleDup(OSHandle *h); extern void OS_DestroyMacHandle(Handle h, OSHandle *ret); -extern OSErr MemError(); +extern OSErr MemError(void); extern Handle NewHandle(SInt32 dataSize); extern Handle NewHandleClear(UInt32 dataSize); extern Handle TempNewHandle(UInt32 dataSize, OSErr *resultCode); @@ -88,12 +88,12 @@ extern Ptr NewPtr(SInt32 dataSize); extern void DisposePtr(Ptr p); extern Ptr NewPtrClear(SInt32 dataSize); extern void DebugStr(ConstStringPtr str); -extern struct Zone *HandleZone(); -extern struct Zone *ApplicationZone(); +extern struct Zone *HandleZone(void); +extern struct Zone *ApplicationZone(void); /********************************/ /* Resources */ -extern Boolean OS_UsingMacResourceForkInfo(); +extern Boolean OS_UsingMacResourceForkInfo(void); extern void OS_UseMacResourceForkInfo(Boolean which); extern OSErr SystemInitResources(OSSpec *spec); extern void OS_AddMacResourceForkRef(int ref, const OSSpec *spec); @@ -106,13 +106,13 @@ extern void OS_CleanupMacResourceForkDir(const OSPathSpec *dir); extern OSErr OS_MacDumpResourceFork(SInt16 ref, Boolean dumpContents); extern OSErr FSpOpenRF(const FSSpec *fss, SInt8 permission, SInt16 *refNum); extern OSErr HOpenRF(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8 permission, SInt16 *refNum); -extern OSErr InitResources(); -extern OSErr ResError(); +extern OSErr InitResources(void); +extern OSErr ResError(void); extern void FSpCreateResFile(const FSSpec *fss, OSType creator, OSType fileType, ScriptCode scriptTag); extern void HCreateResFile(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName); extern OSErr FSpOpenResFile(const FSSpec *spec, SInt8 permission); extern SInt16 HOpenResFile(SInt16 vRefNum, SInt32 dirID, ConstStringPtr fileName, SInt8 permission); -extern SInt16 CurResFile(); +extern SInt16 CurResFile(void); extern void UseResFile(SInt16 refNum); extern SInt16 HomeResFile(Handle theResource); extern Handle GetResource(OSType theType, SInt16 theID); @@ -134,28 +134,28 @@ extern SInt16 CountResources(OSType theType); extern SInt16 Count1Resources(OSType theType); extern Handle GetIndResource(OSType theType, SInt16 index); extern Handle Get1IndResource(OSType theType, SInt16 index); -extern SInt16 Count1Types(); +extern SInt16 Count1Types(void); extern void Get1IndType(OSType *theType, SInt16 index); -extern void ReleaseResource(); +extern void ReleaseResource(Handle theResource); extern void DetachResource(Handle theResource); extern void RemoveResource(Handle theResource); extern void CloseResFile(SInt16 refNum); extern SInt16 GetResFileAttrs(SInt16); -extern Boolean LMGetResLoad(); +extern Boolean LMGetResLoad(void); /********************************/ /* ResourceStrings */ -extern void Res_Initialize(); +extern void Res_Initialize(void); extern int Res_AddResource(const char *name, SInt16 rsrcid, const char **strings); extern const char *Res_GetResource(SInt16 rsrcid, SInt16 index); -extern void Res_Cleanup(); +extern void Res_Cleanup(void); /********************************/ /* TextUtils */ extern StringPtr c2pstr(char *s); extern char *p2cstr(StringPtr s); extern SInt16 CharacterByteType(Ptr textBuf, SInt16 textOffset, ScriptCode script); -extern SInt16 CharByte(); +extern SInt16 CharByte(void); extern void GetDateTime(UInt32 *secs); extern Boolean EqualString(ConstStr255Param strA, ConstStr255Param strB, Boolean caseSens, Boolean diacSens); extern void GetIndString(Str255 theString, SInt16 strListID, SInt16 index); -- cgit v1.2.3