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:
@@ -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 ();
|
||||
|
||||
@@ -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:
|
||||
|
||||
@@ -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];
|
||||
|
||||
Reference in New Issue
Block a user