From 3e9fe9b8ae90013852309f5f9f2a9d660b7325bb Mon Sep 17 00:00:00 2001 From: Chris Young Date: Mon, 29 Feb 2016 00:11:38 +0000 Subject: [PATCH] Add our own NewObject() function for OS3 and enable optimisations --- amiga/Makefile.target | 2 +- amiga/os3support.c | 4 ++++ amiga/os3support.h | 1 + 3 files changed, 6 insertions(+), 1 deletion(-) diff --git a/amiga/Makefile.target b/amiga/Makefile.target index 3eef5b859..8e167802a 100644 --- a/amiga/Makefile.target +++ b/amiga/Makefile.target @@ -7,7 +7,7 @@ CFLAGS += -std=c99 -Dnsamiga ifneq ($(SUBTARGET),os3) CFLAGS += -O2 -finline-functions -U__STRICT_ANSI__ -D__USE_INLINE__ -D__USE_BASETYPE__ else - CFLAGS += -msoft-float -m68020-60 -O0 -DPATH_MAX=1024 -D__m68k__ + CFLAGS += -msoft-float -m68020-60 -O2 -DPATH_MAX=1024 -D__m68k__ endif NETSURF_FEATURE_ROSPRITE_CFLAGS := -DWITH_NSSPRITE diff --git a/amiga/os3support.c b/amiga/os3support.c index 7235d8c56..b251448a6 100644 --- a/amiga/os3support.c +++ b/amiga/os3support.c @@ -273,6 +273,10 @@ ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester return RefreshSetGadgetAttrsA(g,w,r,(struct TagItem *) &tag1); } +APTR NewObject(struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...) +{ + return NewObjectA(classPtr, classID, (const struct TagItem *) &tagList); +} /* Utility */ struct FormatContext diff --git a/amiga/os3support.h b/amiga/os3support.h index b9498998f..94d1d5818 100644 --- a/amiga/os3support.h +++ b/amiga/os3support.h @@ -242,6 +242,7 @@ struct Node *GetSucc(struct Node *node); uint32 GetAttrs(Object *obj, Tag tag1, ...); ULONG RefreshSetGadgetAttrs(struct Gadget *g, struct Window *w, struct Requester *r, Tag tag1, ...); ULONG RefreshSetGadgetAttrsA(struct Gadget *g, struct Window *w, struct Requester *r, struct TagItem *tags); +APTR NewObject(struct IClass * classPtr, CONST_STRPTR classID, ULONG tagList, ...); /* Utility */ char *ASPrintf(const char *fmt, ...);