Check for SYS/GL during library init. Reason is that
[AROS.git] / workbench / libs / commodities / freebrokerlist.c
blobcc3325dc6507c050a70b1501d5721aa2a9557861
1 /*
2 Copyright © 1995-2001, The AROS Development Team. All rights reserved.
3 $Id$
5 Desc:
6 Lang: English
7 */
9 /*****************************************************************************
11 NAME */
13 #include "cxintern.h"
14 #include "proto/exec.h"
16 AROS_LH1(VOID, FreeBrokerList,
18 /* SYNOPSIS */
20 AROS_LHA(struct List *, brokerList, A0),
22 /* LOCATION */
24 struct Library *, CxBase, 32, Commodities)
26 /* FUNCTION
28 Free the list of brokers obtained by calling GetBrokerList.
30 INPUTS
32 brokerList -- List of commodity brokers (a list of struct BrokerCopy
33 nodes).
35 RESULT
37 NOTES
39 This function is present in AmigaOS too, but undocumented.
41 EXAMPLE
43 BUGS
45 SEE ALSO
47 INTERNALS
49 Private function.
51 HISTORY
53 ******************************************************************************/
56 AROS_LIBFUNC_INIT
58 struct BrokerCopy *brokerCopy;
60 while ((brokerCopy = (struct BrokerCopy *)RemHead(brokerList)) != NULL)
62 FreeVec(brokerCopy);
65 AROS_LIBFUNC_EXIT
66 } /* FreeBrokerList */