/*
- * Copyright (C) 1995-2007 University of Karlsruhe. All right reserved.
+ * Copyright (C) 1995-2008 University of Karlsruhe. All right reserved.
*
* This file is part of libFirm.
*
* @file
* @brief iterators
* @author Sebastian Hack
- * @version $Id$
*/
-#ifdef HAVE_CONFIG_H
-# include "config.h"
-#endif
+#include "config.h"
#include <string.h>
static void *it_pset_start(void *collection)
{
- return pset_first(collection);
+ return pset_first((pset*) collection);
}
static void *it_pset_next(void *collection, void *curr)
{
- return pset_next(collection);
+ (void) curr;
+ return pset_next((pset*) collection);
}
static void it_pset_finish(void *collection, void *curr)
{
+ (void) collection;
+ (void) curr;
}
static const iterator_t iterator_pset = {
static void *it_list_next(void *coll, void *it)
{
- struct list_head *head = coll;
- struct list_head *curr = it;
+ struct list_head *head = (list_head*) coll;
+ struct list_head *curr = (list_head*) it;
return curr->next != head ? curr->next : NULL;
}
static void it_list_finish(void *coll, void *curr)
{
+ (void) coll;
+ (void) curr;
}
static const iterator_t iterator_list = {