Add our own NewObject() function for OS3 and enable optimisations

This commit is contained in:
Chris Young 2016-02-29 00:11:38 +00:00
parent 2108697533
commit 3e9fe9b8ae
3 changed files with 6 additions and 1 deletions

View File

@ -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

View File

@ -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

View File

@ -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, ...);