]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/gperf/src/bool-array.cc
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / gperf / src / bool-array.cc
1 /* Fast lookup table abstraction implemented as an Iteration Number Array
2    Copyright (C) 1989-1998, 2002 Free Software Foundation, Inc.
3    Written by Douglas C. Schmidt <schmidt@ics.uci.edu>
4    and Bruno Haible <bruno@clisp.org>.
5
6    This file is part of GNU GPERF.
7
8    GNU GPERF is free software; you can redistribute it and/or modify
9    it under the terms of the GNU General Public License as published by
10    the Free Software Foundation; either version 2, or (at your option)
11    any later version.
12
13    GNU GPERF is distributed in the hope that it will be useful,
14    but WITHOUT ANY WARRANTY; without even the implied warranty of
15    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16    GNU General Public License for more details.
17
18    You should have received a copy of the GNU General Public License
19    along with this program; see the file COPYING.
20    If not, write to the Free Software Foundation, Inc.,
21    51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.  */
22
23 /* Specification. */
24 #include "bool-array.h"
25
26 #include <stdio.h>
27 #include <string.h>
28 #include "options.h"
29
30 /* Frees this object.  */
31 Bool_Array::~Bool_Array ()
32 {
33   /* Print out debugging diagnostics. */
34   if (option[DEBUG])
35     fprintf (stderr, "\ndumping boolean array information\n"
36              "size = %d\niteration number = %d\nend of array dump\n",
37              _size, _iteration_number);
38   delete[] const_cast<unsigned int *>(_storage_array);
39 }
40
41 #ifndef __OPTIMIZE__
42
43 #define INLINE /* not inline */
44 #include "bool-array.icc"
45 #undef INLINE
46
47 #endif /* not defined __OPTIMIZE__ */