diff --git a/sys/amiga/amiwind.c b/sys/amiga/amiwind.c index fc33d9e29..80032deb1 100644 --- a/sys/amiga/amiwind.c +++ b/sys/amiga/amiwind.c @@ -690,13 +690,6 @@ amii_cleanup(void) IntuitionBase = NULL; } -#ifdef SHAREDLIB - if (DOSBase) { - CloseLibrary((struct Library *) DOSBase); - DOSBase = NULL; - } -#endif - ((struct Process *) FindTask(NULL))->pr_WindowPtr = (APTR) pr_WindowPtr; Initialized = 0; @@ -704,7 +697,6 @@ amii_cleanup(void) #endif /* AMII_GRAPHICS */ -#ifndef SHAREDLIB void Abort(long rc) { @@ -733,7 +725,6 @@ CleanUp(void) { amii_cleanup(); } -#endif #ifdef AMII_GRAPHICS @@ -849,7 +840,6 @@ amii_number_pad(int state) } #endif /* AMII_GRAPHICS */ -#ifndef SHAREDLIB void amiv_loadlib(void) { @@ -879,4 +869,3 @@ VA_DECL(const char *, s) VA_END(); Abort(0L); } -#endif diff --git a/sys/amiga/winami.c b/sys/amiga/winami.c index ec7548242..8e448fed5 100644 --- a/sys/amiga/winami.c +++ b/sys/amiga/winami.c @@ -159,8 +159,7 @@ unsigned short amiv_init_map[AMII_MAXCOLORS] = { 0x0fff, /* color #31 */ }; -#if !defined(TTY_GRAPHICS) \ - || defined(SHAREDLIB) /* this should be shared better */ +#ifndef TTY_GRAPHICS char morc; /* the character typed in response to a --more-- prompt */ #endif char spaces[76] = " " diff --git a/sys/amiga/windefs.h b/sys/amiga/windefs.h index 010b933ea..85a800633 100644 --- a/sys/amiga/windefs.h +++ b/sys/amiga/windefs.h @@ -53,10 +53,6 @@ CLIPPING must be defined for the AMIGA version #include #include -#ifdef SHAREDLIB -#include "NH:sys/amiga/lib/libmacs.h" -#endif - #include #define WINVERS_AMII (strcmp("amii", windowprocs.name) == 0) diff --git a/sys/amiga/winext.h b/sys/amiga/winext.h index 068593337..e3ef8ef86 100644 --- a/sys/amiga/winext.h +++ b/sys/amiga/winext.h @@ -18,7 +18,6 @@ extern int LI; extern int scrollmsg; extern int alwaysinvent; -#ifndef SHAREDLIB extern unsigned short amii_defpens[20]; extern struct amii_DisplayDesc *amiIDisplay; /* the Amiga Intuition descriptor */ @@ -33,21 +32,6 @@ extern long amii_scrnmode; extern winid amii_rawprwin; extern struct Screen *HackScreen; extern char Initialized; -/* These have already been defined elsewhere (and some are conflicting) - * ... going ... going once ... going twice .... - * extern const char *roles[]; - * extern struct Library *ConsoleDevice; - * extern char toplines[ TBUFSZ ]; - * extern NEARDATA winid WIN_MESSAGE; - * extern NEARDATA winid WIN_MAP; - * extern NEARDATA winid WIN_STATUS; - * extern NEARDATA winid WIN_INVEN; - * extern winid WIN_OVER; - * extern struct GfxBase *GfxBase; - * extern struct Library *DiskfontBase; - * extern struct IntuitionBase *IntuitionBase; - * extern struct Library *LayersBase; - */ extern int amii_msgAPen; extern int amii_msgBPen; extern int amii_statAPen; @@ -58,9 +42,6 @@ extern int amii_textAPen; extern int amii_textBPen; extern int amii_otherAPen; extern int amii_otherBPen; -#else -extern WinamiBASE *WinamiBase; -#endif /* All kinds of shared stuff */ extern struct TextAttr Hack160; extern struct TextAttr Hack40; @@ -132,17 +113,9 @@ typedef enum { extern struct PDAT pictdata; extern struct Hook fillhook; extern struct TagItem wintags[]; -#ifndef SHAREDLIB -#ifndef __GNUC__ -void __asm LayerFillHook(register __a0 struct Hook *hk, - register __a2 struct RastPort *rp, - register __a1 struct FillParams *fp); -#else #ifdef __PPC__ struct EmulLibEntry LayerFillHook; #else void LayerFillHook(void); #endif -#endif -#endif extern int mxsize, mysize; diff --git a/sys/amiga/winproto.h b/sys/amiga/winproto.h index d855e50fe..6bd486dfb 100644 --- a/sys/amiga/winproto.h +++ b/sys/amiga/winproto.h @@ -58,9 +58,7 @@ int amikbhit(void); int WindowGetchar(void); WETYPE WindowGetevent(void); void amii_cleanup(void); -#ifndef SHAREDLIB void Abort(long rc); -#endif void CleanUp(void); void flush_glyph_buffer(struct Window *w); void amiga_print_glyph(winid window, int color_index, int glyph); @@ -71,10 +69,8 @@ void FreeNewWindow(struct NewWindow *win); void bell(void); void amii_delay_output(void); void amii_number_pad(int state); -#ifndef SHAREDLIB void amiv_loadlib(void); void amii_loadlib(void); -#endif void preserve_icon(void); void clear_icon(void); @@ -114,10 +110,6 @@ BitMapHeader ReadTileImageFiles(void); void FreeTileImageFiles(void); /* winami.c */ -#ifdef SHAREDLIB -int __UserLibInit(void); -void __UserLibCleanup(void); -#endif void amii_askname(void); void amii_player_selection(void); void RandomWindow(char *name); @@ -127,15 +119,7 @@ void amii_display_file(const char *fn, boolean complain); void SetBorder(struct Gadget *gd); /* malloc/free provided by stdlib.h */ -#ifdef SHAREDLIB -/* amilib.c */ -void amii_loadlib(void); -void amiv_loadlib(void); -void CleanUp(void); -void setup_librefs(WinamiBASE *base); -#else void Abort(long rc); -#endif win_request_info *amii_ctrl_nhwindow(winid, int, win_request_info *);