2 Copyright � 1995-2001, The AROS Development Team. All rights reserved.
5 Desc: Varargs version of BuildEasyRequestArgs() (intuition.library)
10 /*****************************************************************************
13 #define NO_INLINE_STDARG /* turn off inline def */
14 #include <proto/exec.h>
15 #include <proto/intuition.h>
16 #include <intuition/intuition.h>
17 #include <exec/memory.h>
19 struct Window
* BuildEasyRequest (
22 struct Window
* RefWindow
,
23 struct EasyStruct
* easyStruct
,
40 intuition.library/BuildEasyRequestArgs()
46 *****************************************************************************/
52 IPTR
*argtable
= NULL
;
54 for (ptr
= easyStruct
->es_TextFormat
; *ptr
; ptr
++)
68 for (ptr
= easyStruct
->es_GadgetFormat
; *ptr
; ptr
++)
84 va_start (args
, IDCMP
);
88 argtable
= AllocVec(sizeof(IPTR
)*argcnt
, MEMF_PUBLIC
);
90 for (i
=0; i
< argcnt
; i
++)
91 argtable
[i
] = va_arg(args
, IPTR
);
96 rc
= BuildEasyRequestArgs (RefWindow
, easyStruct
, IDCMP
, (APTR
)argtable
);
102 } /* BuildEasyRequest */