summaryrefslogtreecommitdiff
path: root/src/bool-array.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2002-10-17 14:10:32 +0000
committerBruno Haible <bruno@clisp.org>2002-10-17 14:10:32 +0000
commita6fd7cc006046b5007956ea6eacfa896e60c5d40 (patch)
tree97e9acb306247e0d907cd2d005c8cd62ae4685aa /src/bool-array.h
parenta50f8b17125e7fa11a33d9df3aed1513c3e7f20f (diff)
downloadgperf-a6fd7cc006046b5007956ea6eacfa896e60c5d40.tar.gz
Simplify Bool_Array.
Diffstat (limited to 'src/bool-array.h')
-rw-r--r--src/bool-array.h14
1 files changed, 3 insertions, 11 deletions
diff --git a/src/bool-array.h b/src/bool-array.h
index 4d08df1..c91e08e 100644
--- a/src/bool-array.h
+++ b/src/bool-array.h
@@ -27,25 +27,17 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#ifndef bool_array_h
#define bool_array_h 1
-#ifdef LO_CAL
-/* If we are on a memory diet then we'll only make these use a limited
- amount of storage space. */
-typedef unsigned short STORAGE_TYPE;
-#else
-typedef unsigned int STORAGE_TYPE;
-#endif
-
class Bool_Array
{
private:
- static STORAGE_TYPE *storage_array; /* Initialization of the index space. */
- static STORAGE_TYPE iteration_number; /* Keep track of the current iteration. */
+ static unsigned int *storage_array; /* Initialization of the index space. */
+ static unsigned int iteration_number; /* Keep track of the current iteration. */
static unsigned int size; /* Keep track of array size. */
public:
Bool_Array (void);
~Bool_Array (void);
- static void init (STORAGE_TYPE *buffer, unsigned int s);
+ static void init (unsigned int *buffer, unsigned int s);
static int find (int hash_value);
static void reset (void);
};