revert between 56095 -> 55830 in arch
[AROS.git] / compiler / alib / easyrequest.c
blobe64d037baeadd74afeb9a0d83c5f735f1bf3999f
1 /*
2 Copyright (C) 1995-2016, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc: Varargs version of EasyRequestArgs() (intuition.library)
6 Lang: english
7 */
9 #include <stdarg.h>
10 #include "easystruct_util.h"
11 #include <proto/intuition.h>
12 #include <proto/alib.h>
14 /*****************************************************************************
16 NAME */
18 LONG EasyRequest (
20 /* SYNOPSIS */
21 struct Window *window,
22 struct EasyStruct *easyStruct,
23 ULONG *IDCMP_ptr,
24 ...)
26 /* FUNCTION
28 INPUTS
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
40 INTERNALS
42 *****************************************************************************/
44 LONG retval;
45 STRPTR format = CreateFormatStringFromEasyStruct(easyStruct);
47 AROS_SLOWSTACKFORMAT_PRE_USING(IDCMP_ptr, format);
48 retval = EasyRequestArgs(window, easyStruct, IDCMP_ptr, AROS_SLOWSTACKFORMAT_ARG(format));
49 AROS_SLOWSTACKFORMAT_POST(format);
51 FreeFormatString(format);
53 return retval;
54 } /* EasyRequest */