| 1 |
/* Fast lookup table abstraction implemented as an Iteration Number Array |
| 2 |
Copyright (C) 1989-1998, 2002-2003, 2025 Free Software Foundation, Inc. |
| 3 |
Written by Douglas C. Schmidt <[email protected]> |
| 4 |
and Bruno Haible <[email protected]>. |
| 5 |
|
| 6 |
This file is part of GNU GPERF. |
| 7 |
|
| 8 |
This program 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 3 of the License, or |
| 11 |
(at your option) any later version. |
| 12 |
|
| 13 |
This program 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. If not, see <https://www.gnu.org/licenses/>. */ |
| 20 |
|
| 21 |
#include <config.h> |
| 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 char *>(_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__ */ |