summaryrefslogtreecommitdiff
path: root/lib/ebitset.h
diff options
context:
space:
mode:
authorAkim Demaille <akim@epita.fr>2002-03-04 12:07:08 +0000
committerAkim Demaille <akim@epita.fr>2002-03-04 12:07:08 +0000
commitef0175024063536689906e706f83ee9a12af98e3 (patch)
treeb419ce8f516bf6f3c47f024288c508d923bfb179 /lib/ebitset.h
parent7651439487857a666baa5fa5df453b715a85a090 (diff)
downloadbison-ef0175024063536689906e706f83ee9a12af98e3.tar.gz
* lib/bitset.c, lib/bitset.h, lib/bitsetv.c, lib/bitsetv.h,
* lib/ebitset.c, lib/ebitset.h, lib/lbitset.c, lib/lbitset.h, * lib/sbitset.c, lib/sbitset.h, lib/bbitset.h: Update from the latest sources from Michael.
Diffstat (limited to 'lib/ebitset.h')
-rw-r--r--lib/ebitset.h34
1 files changed, 3 insertions, 31 deletions
diff --git a/lib/ebitset.h b/lib/ebitset.h
index 5b481dbf..b41485f2 100644
--- a/lib/ebitset.h
+++ b/lib/ebitset.h
@@ -19,40 +19,12 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef _EBITSET_H
#define _EBITSET_H
-#include "bitset-int.h"
-
-/* Number of words to use for each element. */
-#ifndef EBITSET_ELT_WORDS
-#define EBITSET_ELT_WORDS 2
-#endif
-
-/* Number of bits stored in each element. */
-#define EBITSET_ELT_BITS \
- ((unsigned) (EBITSET_ELT_WORDS * BITSET_WORD_BITS))
-
-/* Ebitset element. We use an array of bits. */
-typedef struct ebitset_elt_struct
-{
- union
- {
- bitset_word words[EBITSET_ELT_WORDS]; /* Bits that are set. */
- struct ebitset_elt_struct *next;
- } u;
-} ebitset_elt;
-
-
-typedef ebitset_elt *ebitset_elts;
-
-/* Head of ebitset linked list. */
-typedef struct ebitset_struct
-{
- unsigned int size; /* Number of elements. */
- ebitset_elts *elts; /* Expanding array of pointers to elements. */
-} *ebitset;
-
+#include "bbitset.h"
extern int ebitset_bytes PARAMS ((bitset_bindex));
+extern bitset ebitset_init PARAMS ((bitset, bitset_bindex));
+
extern void ebitset_release_memory PARAMS ((void));
#endif