revert between 56095 -> 55830 in arch
[AROS.git] / workbench / libs / icon / freefreelist.c
blobec34478df38f0b6e17742f68097a18342eec917e
1 /*
2 Copyright © 1995-2013, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: english
7 */
8 #include "icon_intern.h"
10 /*****************************************************************************
12 NAME */
13 #include <proto/icon.h>
15 AROS_LH1(void, FreeFreeList,
17 /* SYNOPSIS */
18 AROS_LHA(struct FreeList *, freelist, A0),
20 /* LOCATION */
21 struct IconBase *, IconBase, 9, Icon)
23 /* FUNCTION
24 Frees all memory chunks in the freelist (previously inserted into
25 it via AddFreeList()).
27 INPUTS
28 freelist - pointer to FreeList struct. It is safe to use NULL.
30 RESULT
32 NOTES
34 EXAMPLE
36 BUGS
38 SEE ALSO
39 AddFreeList()
41 INTERNALS
43 *****************************************************************************/
45 AROS_LIBFUNC_INIT
47 struct MemList *node;
49 if ( ! freelist) return;
51 while ((node = (struct MemList *)RemTail(&freelist->fl_MemList)) != NULL)
52 FreeEntry(node);
54 AROS_LIBFUNC_EXIT
55 } /* FreeFreeList */