bool-array.cc revision 225736
1/* Fast lookup table abstraction implemented as an Iteration Number Array
2   Copyright (C) 1989-1998 Free Software Foundation, Inc.
3   written by Douglas C. Schmidt (schmidt@ics.uci.edu)
4
5This file is part of GNU GPERF.
6
7GNU GPERF is free software; you can redistribute it and/or modify
8it under the terms of the GNU General Public License as published by
9the Free Software Foundation; either version 1, or (at your option)
10any later version.
11
12GNU GPERF is distributed in the hope that it will be useful,
13but WITHOUT ANY WARRANTY; without even the implied warranty of
14MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15GNU General Public License for more details.
16
17You should have received a copy of the GNU General Public License
18along with GNU GPERF; see the file COPYING.  If not, write to the Free
19Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA.  */
20
21#include "bool-array.h"
22
23#include <stdio.h>
24#include <string.h>
25#include "options.h"
26#include "trace.h"
27
28STORAGE_TYPE * Bool_Array::storage_array;
29STORAGE_TYPE Bool_Array::iteration_number;
30unsigned int Bool_Array::size;
31
32/* Prints out debugging diagnostics. */
33
34Bool_Array::~Bool_Array (void)
35{
36  T (Trace t ("Bool_Array::~Bool_Array");)
37  if (option[DEBUG])
38    fprintf (stderr, "\ndumping boolean array information\n"
39             "size = %d\niteration number = %d\nend of array dump\n",
40             size, iteration_number);
41}
42
43#ifndef __OPTIMIZE__
44
45#define INLINE /* not inline */
46#include "bool-array.icc"
47#undef INLINE
48
49#endif /* not defined __OPTIMIZE__ */
50