try to make sure compiler/include/mmakefile is always refreshed correctly.
[AROS.git] / rom / intuition / freeicdata.c
blob0d5e1d70752dc9b3ae32051e288d95e8566e68ed
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 Copyright © 2001-2003, The MorphOS Development Team. All Rights Reserved.
4 $Id$
6 Support function for icclass and gadgetclass.
7 */
9 #include <exec/types.h>
10 #include <proto/exec.h>
11 #include <proto/utility.h>
13 #include "intuition_intern.h"
15 /*****i***********************************************************************
17 NAME */
18 AROS_LH1(void, FreeICData,
20 /* SYNOPSIS */
21 AROS_LHA(struct ICData *, icdata, A0),
23 /* LOCATION */
24 struct IntuitionBase *, IntuitionBase, 146, Intuition)
26 /* FUNCTION
27 This private function will free the data that belongs to an object
28 of the type ICCLASS. It is primarily in as a private function for
29 the benefit of intuition.library's gadgetclass implementation,
30 which includes an icclass of its own.
32 INPUTS
33 icdata - The address of a struct ICData
35 RESULT
36 The data associated will have been freed (including the TagList).
38 NOTES
39 This function is also present in MorphOS v50, however
40 considered private.
42 EXAMPLE
44 BUGS
46 SEE ALSO
48 INTERNALS
50 ******************************************************************************/
52 AROS_LIBFUNC_INIT
54 struct Library *UtilityBase = GetPrivIBase(IntuitionBase)->UtilityBase;
55 DEBUG_FREEICDATA(dprintf("FreeICData(icdata 0x%lx)\n",icdata));
57 SANITY_CHECK(icdata)
59 icdata->ic_LoopCounter = 0UL;
61 if(icdata->ic_CloneTags)
63 FreeTagItems(icdata->ic_CloneTags);
64 icdata->ic_CloneTags = NULL;
67 AROS_LIBFUNC_EXIT
69 } /* FreeICData() */