X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=ir%2Fadt%2Fiterator.c;h=92ceb7ba5d5e2a137ad4085f733f53ba48da90bc;hb=3e889332cb054e5cee1a12bba6dd0209121100cf;hp=8d465cb6dd346ffb1fc235d1ffb18215c52ed37e;hpb=57d365a67aaef76497b85e9a18b785c562652b16;p=libfirm diff --git a/ir/adt/iterator.c b/ir/adt/iterator.c index 8d465cb6d..92ceb7ba5 100644 --- a/ir/adt/iterator.c +++ b/ir/adt/iterator.c @@ -1,5 +1,5 @@ /* - * Copyrigth (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. * @@ -16,9 +16,14 @@ * WARRANTY OF DESIGN, MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE. */ -#ifdef HAVE_CONFIG_H -# include "config.h" -#endif + +/** + * @file + * @brief iterators + * @author Sebastian Hack + * @version $Id$ + */ +#include "config.h" #include @@ -29,16 +34,19 @@ 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 = { @@ -53,8 +61,8 @@ const iterator_t *pset_iterator = &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; } @@ -65,6 +73,8 @@ static void *it_list_start(void *coll) static void it_list_finish(void *coll, void *curr) { + (void) coll; + (void) curr; } static const iterator_t iterator_list = {