| 25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
25 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE |
| 26 * POSSIBILITY OF SUCH DAMAGE. |
26 * POSSIBILITY OF SUCH DAMAGE. |
| 27 */ |
27 */ |
| 28 |
28 |
| 29 #include "cx/list.h" |
29 #include "cx/list.h" |
| |
30 |
| |
31 #include <string.h> |
| 30 |
32 |
| 31 void cxListDestroy(CxList *list) { |
33 void cxListDestroy(CxList *list) { |
| 32 switch (list->content_destructor_type) { |
34 switch (list->content_destructor_type) { |
| 33 case CX_DESTRUCTOR_SIMPLE: { |
35 case CX_DESTRUCTOR_SIMPLE: { |
| 34 CxIterator iter = cxListBegin(list); |
36 CxIterator iter = cxListBegin(list); |