Add the * for the type in foreach_set() automatically.
[libfirm] / ir / adt / iterator.h
index ac834a4..a12ddb3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * 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.
  *
  *          Useful for formatted and unified dumping of collections of objects.
  * @author  Sebastian Hack
  * @date    29.11.2004
- * @version $Id$
  */
 #ifndef FIRM_ADT_ITERATOR_H
 #define FIRM_ADT_ITERATOR_H
 
 #include "fourcc.h"
 
+#include "../begin.h"
+
 /**
  * The iterator magic word.
  */
@@ -42,7 +43,7 @@
  */
 #define is_iterator(ptr) (((const iterator_t *) (ptr))->magic == ITERATOR_MAGIC)
 
-typedef struct _iterator_t {
+typedef struct iterator_t {
        unsigned magic;
        void *(*start)(void *collection);
        void *(*next)(void *collection, void *curr);
@@ -59,4 +60,6 @@ extern const iterator_t *list_iterator;
  */
 extern const iterator_t *pset_iterator;
 
+#include "../end.h"
+
 #endif