2 Copyright � 1995-2013, 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()
44 *****************************************************************************/
50 IPTR
*argtable
= NULL
;
52 for (ptr
= easyStruct
->es_TextFormat
; *ptr
; ptr
++)
66 for (ptr
= easyStruct
->es_GadgetFormat
; *ptr
; ptr
++)
82 va_start (args
, IDCMP
);
86 argtable
= AllocVec(sizeof(IPTR
)*argcnt
, MEMF_PUBLIC
);
88 for (i
=0; i
< argcnt
; i
++)
89 argtable
[i
] = va_arg(args
, IPTR
);
94 rc
= BuildEasyRequestArgs (RefWindow
, easyStruct
, IDCMP
, (APTR
)argtable
);
99 } /* BuildEasyRequest */