@@ -41,15 +41,10 @@ #import "OFOutOfRangeException.h" #import "OFReadFailedException.h" #import "OFWriteFailedException.h" #ifdef OF_AMIGAOS -# ifdef OF_AMIGAOS4 -# define __USE_INLINE__ -# define __NOLIBBASE__ -# define __NOGLOBALIFACE__ -# endif # include # include #endif /* References for static linking */ @@ -59,16 +54,10 @@ { [OFWin32ConsoleStdIOStream class]; } #endif -#ifdef OF_AMIGAOS4 -extern struct ExecIFace *IExec; -static struct Library *DOSBase = NULL; -static struct DOSIFace *IDOS = NULL; -#endif - OFStdIOStream *of_stdin = nil; OFStdIOStream *of_stdout = nil; OFStdIOStream *of_stderr = nil; #ifdef OF_AMIGAOS @@ -75,18 +64,10 @@ OF_DESTRUCTOR() { [of_stdin dealloc]; [of_stdout dealloc]; [of_stderr dealloc]; - -# ifdef OF_AMIGAOS4 - if (IDOS != NULL) - DropInterface((struct Interface *)IDOS); - - if (DOSBase != NULL) - CloseLibrary(DOSBase); -# endif } #endif void of_log(OFConstantString *format, ...) @@ -137,21 +118,10 @@ # else BPTR input, output, error; bool inputClosable = false, outputClosable = false, errorClosable = false; -# ifdef OF_AMIGAOS4 - if ((DOSBase = OpenLibrary("dos.library", 36)) == NULL) - @throw [OFInitializationFailedException - exceptionWithClass: self]; - - if ((IDOS = (struct DOSIFace *) - GetInterface(DOSBase, "main", 1, NULL)) == NULL) - @throw [OFInitializationFailedException - exceptionWithClass: self]; -# endif - input = Input(); output = Output(); error = ((struct Process *)FindTask(NULL))->pr_CES; if (input == 0) {