mirror of
https://github.com/netsurf-browser/netsurf
synced 2024-12-20 11:12:46 +03:00
Add our own NewObject() function for OS3 and enable optimisations
This commit is contained in:
parent
2108697533
commit
3e9fe9b8ae
@ -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
|
||||
|
@ -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
|
||||
|
@ -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, ...);
|
||||
|
Loading…
Reference in New Issue
Block a user