parser: Remove the unused attribute alignment from struct declaration_specifiers_t.
[cparser] / entitymap.c
index 4d2921b..7429225 100644 (file)
@@ -1,21 +1,6 @@
 /*
  * This file is part of cparser.
- * Copyright (C) 2007-2009 Matthias Braun <matze@braunis.de>
- *
- * This program is free software; you can redistribute it and/or
- * modify it under the terms of the GNU General Public License
- * as published by the Free Software Foundation; either version 2
- * of the License, or (at your option) any later version.
- *
- * This program is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License
- * along with this program; if not, write to the Free Software
- * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA
- * 02111-1307, USA.
+ * Copyright (C) 2012 Matthias Braun <matze@braunis.de>
  */
 #include <config.h>
 
@@ -31,7 +16,6 @@ static unsigned hash_ptr(const void *ptr)
 
 #define DO_REHASH
 #define HashSet                   entitymap_t
-#define HashSetIterator           entitymap_iterator_t
 #define ValueType                 entitymap_entry_t
 #define NullValue                 null_entitymap_entry
 #define KeyType                   symbol_t*
@@ -47,17 +31,13 @@ static unsigned hash_ptr(const void *ptr)
 #define EntryIsDeleted(value)     ((value).symbol == (symbol_t*)-1)
 
 #define hashset_init            entitymap_init
-#define hashset_init_size       _entitymap_init_size
 #define hashset_destroy         entitymap_destroy
+entitymap_entry_t *_entitymap_insert(entitymap_t *map, symbol_t *symbol);
 #define hashset_insert          _entitymap_insert
-#define hashset_remove          entitymap_remove
+entitymap_entry_t *_entitymap_find(const entitymap_t *map, const symbol_t *symbol);
 #define hashset_find            _entitymap_find
-#define hashset_size            _entitymap_size
-#define hashset_iterator_init   _entitymap_iterator_init
-#define hashset_iterator_next   _entitymap_iterator_next
-#define hashset_remove_iterator _entitymap_remove_iterator
 
-#include "adt/hashset.c"
+#include "adt/hashset.c.inl"
 
 ir_entity *entitymap_get(const entitymap_t *map, symbol_t *symbol)
 {