AmendHub

Download:

nulleric

/

Fix-a-Fork

/

amendments

/

3

Move code to header file.


eric made amendment 3 about 1 year ago
--- main.c Wed Nov 8 18:57:54 2023 +++ main.c Wed Nov 8 19:01:28 2023 @@ -1,18 +1,4 @@ -#include <Files.h> -#include <StandardFile.h> -#include <Events.h> -#include <AppleEvents.h> -#include <GestaltEqu.h> -#include <Dialogs.h> -#include <Types.h> - -// Globals -OSType gType = 0; -OSType gCreator = 0; -Boolean gHandledByDnD = false; -// main.h -void openFile(unsigned char *fName, short fRefNum, short vRefNum); -pascal OSErr DoOpenDoc(AppleEvent *event, AppleEvent *reply, long handlerRefcon); +#include "main.h" pascal OSErr DoOpenDoc(AppleEvent *event, AppleEvent *reply, long handlerRefcon) { --- main.h Wed Nov 8 19:01:14 2023 +++ main.h Wed Nov 8 19:01:14 2023 @@ -0,0 +1,15 @@ +#include <Files.h> +#include <StandardFile.h> +#include <Events.h> +#include <AppleEvents.h> +#include <GestaltEqu.h> +#include <Dialogs.h> +#include <Types.h> + +// Globals +OSType gType = 0; +OSType gCreator = 0; +Boolean gHandledByDnD = false; + +void openFile(unsigned char *fName, short fRefNum, short vRefNum); +pascal OSErr DoOpenDoc(AppleEvent *event, AppleEvent *reply, long handlerRefcon);