summaryrefslogtreecommitdiff
path: root/src/keyword.h
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2003-02-17 10:36:47 +0000
committerBruno Haible <bruno@clisp.org>2003-02-17 10:36:47 +0000
commitec800f65ec88465b0f9b3f9063b945dd4749f535 (patch)
tree27b1b5488e66cb100d0271d3b2bc2b2077376129 /src/keyword.h
parent799d1c7534f4366fe1592b3b010e0a8be3eb3863 (diff)
downloadgperf-ec800f65ec88465b0f9b3f9063b945dd4749f535.tar.gz
Introduce new alpha_inc pass, to avoid artificial duplicates.
Diffstat (limited to 'src/keyword.h')
-rw-r--r--src/keyword.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/src/keyword.h b/src/keyword.h
index 6c87d74..de89730 100644
--- a/src/keyword.h
+++ b/src/keyword.h
@@ -67,8 +67,10 @@ struct KeywordExt : public Keyword
KeywordExt * _duplicate_link;
/* Methods depending on the keyposition list. */
- /* Initializes selchars and selchars_length. */
- void init_selchars (bool use_all_chars, const Positions& positions);
+ /* Initializes selchars and selchars_length, without reordering. */
+ void init_selchars_tuple (bool use_all_chars, const Positions& positions);
+ /* Initializes selchars and selchars_length, with reordering. */
+ void init_selchars_multiset (bool use_all_chars, const Positions& positions, const unsigned int *alpha_inc);
/* Deletes selchars. */
void delete_selchars ();
@@ -78,6 +80,9 @@ struct KeywordExt : public Keyword
/* Data members used by the output routines. */
int _final_index;
+
+private:
+ unsigned int * init_selchars_low (bool use_all_chars, const Positions& positions, const unsigned int *alpha_inc);
};
/* An abstract factory for creating Keyword instances.