X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=include%2Flibfirm%2Fadt%2Fhashset.h;h=89c112c7670f01c795ccb0c06331e0b6369ad96a;hb=12ad4306b9e51ff630e24a01f363fd141368c33c;hp=9495ef0f728c9cc5cde5e455ccdef902ae5f4d02;hpb=435253f3a8766fec2ac2adf559bb10cfcb5d36f4;p=libfirm diff --git a/include/libfirm/adt/hashset.h b/include/libfirm/adt/hashset.h index 9495ef0f7..89c112c76 100644 --- a/include/libfirm/adt/hashset.h +++ b/include/libfirm/adt/hashset.h @@ -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. * @@ -40,7 +40,7 @@ typedef struct HashSetEntry { } HashSetEntry; #endif -typedef struct HashSet { +struct HashSet { HashSetEntry *entries; size_t num_buckets; size_t enlarge_threshold; @@ -54,16 +54,18 @@ typedef struct HashSet { #ifdef ADDITIONAL_DATA ADDITIONAL_DATA #endif -} HashSet; +}; -typedef struct HashSetIterator { +#ifndef NO_ITERATOR +struct HashSetIterator { HashSetEntry *current_bucket; HashSetEntry *end; #ifndef NDEBUG - const HashSet *set; + const struct HashSet *set; unsigned entries_version; #endif -} HashSetIterator; +}; +#endif #ifdef DO_REHASH #undef HashSetEntry