Updated PCI IDs to latest snapshot.
[tangerine.git] / workbench / libs / openurl / prefs / stubs.c
blob757e39df777fd89370725fd723cb0d16d1291c69
1 /*
2 ** OpenURL - MUI preferences for openurl.library
3 **
4 ** Written by Troels Walsted Hansen <troels@thule.no>
5 ** Placed in the public domain.
6 **
7 ** Developed by:
8 ** - Alfonso Ranieri <alforan@tin.it>
9 ** - Stefan Kost <ensonic@sonicpulse.de>
11 ** Ported to OS4 by Alexandre Balaban <alexandre@balaban.name>
15 #include "OpenURL.h"
17 /***********************************************************************/
18 #if !defined(__amigaos4__) && !defined(__AROS__)
20 APTR
21 NewObject(struct IClass *classPtr,UBYTE *classID,... )
23 APTR res;
24 va_list va;
26 va_start(va,classID);
27 res = NewObjectA(classPtr,classID,(struct TagItem *)va->overflow_arg_area);
28 va_end(va);
30 return res;
33 /***********************************************************************/
35 APTR
36 MUI_NewObject(UBYTE *classID,... )
38 APTR res;
39 va_list va;
41 va_start(va,classID);
42 res = MUI_NewObjectA(classID,(struct TagItem *)va->overflow_arg_area);
43 va_end(va);
45 return res;
47 #endif
49 /***********************************************************************/
51 #ifndef __AROS__
53 #if defined(__amigaos4__)
54 #include <stdarg.h>
55 #endif
57 ULONG VARARGS68K
58 DoSuperNew(struct IClass *cl,Object *obj,...)
60 APTR res;
61 va_list va;
63 #if defined(__amigaos4__)
64 va_startlinear(va,obj);
65 res = (APTR)DoSuperMethod(cl,obj,OM_NEW,va_getlinearva(va,ULONG),NULL);
66 #else
67 va_start(va,obj);
68 res = (APTR)DoSuperMethod(cl,obj,OM_NEW,(ULONG)va->overflow_arg_area,NULL);
69 #endif
70 va_end(va);
72 return (ULONG)res;
75 #endif /* !__AROS__ */
77 /***********************************************************************/