1
0
mirror of https://git.savannah.gnu.org/git/gperf.git synced 2025-12-02 13:09:22 +00:00

Unify initialization of Vectors::ALPHA_SIZE.

This commit is contained in:
Bruno Haible
2002-11-14 13:05:48 +00:00
parent c8f007fe8b
commit 276e2fd949
4 changed files with 7 additions and 3 deletions

View File

@@ -40,6 +40,7 @@ Gen_Perf::Gen_Perf ()
int asso_value_max;
int non_linked_length;
Vectors::ALPHA_SIZE = (option[SEVENBIT] ? 128 : 256);
Key_List::read_keys ();
if (option[ORDER])
reorder ();

View File

@@ -24,7 +24,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include <ctype.h> /* declares isdigit() */
#include "getopt.h"
#include "options.h"
#include "vectors.h"
#include "version.h"
/* Global option coordinator for the entire program. */
@@ -765,7 +764,6 @@ Options::parse_options (int argc, char *argv[])
case '7': /* Assume 7-bit characters. */
{
_option_word |= SEVENBIT;
Vectors::ALPHA_SIZE = 128;
break;
}
default:

View File

@@ -20,6 +20,6 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
#include "vectors.h"
int Vectors::ALPHA_SIZE = MAX_ALPHA_SIZE;
int Vectors::ALPHA_SIZE;
int Vectors::_occurrences[MAX_ALPHA_SIZE];
int Vectors::_asso_values[MAX_ALPHA_SIZE];