mirror of
https://git.savannah.gnu.org/git/gperf.git
synced 2025-12-02 21:19:24 +00:00
Replace class List_Node with class KeywordExt.
This commit is contained in:
@@ -24,6 +24,8 @@ Software Foundation, 59 Temple Place - Suite 330, Boston, MA 02111, USA. */
|
||||
#ifndef keyword_h
|
||||
#define keyword_h 1
|
||||
|
||||
#include "vectors.h"
|
||||
|
||||
/* An instance of this class is a keyword, as specified in the input file. */
|
||||
struct Keyword
|
||||
{
|
||||
@@ -52,6 +54,10 @@ struct KeywordExt : public Keyword
|
||||
/* Chained list of keywords having the same selchars. */
|
||||
KeywordExt * duplicate_link;
|
||||
|
||||
/* Methods depending on the keyposition list. */
|
||||
/* Initialize selchars and selchars_length, and update v->occurrences. */
|
||||
void init_selchars (Vectors *v);
|
||||
|
||||
/* Data members used by the algorithm. */
|
||||
int occurrence; /* A metric for frequency of key set occurrences. */
|
||||
int hash_value; /* Hash value for the key. */
|
||||
|
||||
Reference in New Issue
Block a user