summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2017-02-06 14:56:08 +0800
committerPeng Wu <alexepico@gmail.com>2017-02-06 14:56:08 +0800
commit8df49857ef632ab03c290df8ee6abe9f436d1d3c (patch)
tree8aba160727f29a1a1e2bf1d2d167ea1d2140ee59
parent0327c836a2ba39656fb1ec7f7e342a93aac665bb (diff)
downloadlibpinyin-8df49857ef632ab03c290df8ee6abe9f436d1d3c.tar.gz
libpinyin-8df49857ef632ab03c290df8ee6abe9f436d1d3c.tar.xz
libpinyin-8df49857ef632ab03c290df8ee6abe9f436d1d3c.zip
fixes compile
-rw-r--r--src/lookup/lookup.h2
-rw-r--r--src/lookup/phonetic_lookup.h2
-rw-r--r--src/lookup/pinyin_lookup2.h3
-rw-r--r--src/pinyin_internal.h1
4 files changed, 3 insertions, 5 deletions
diff --git a/src/lookup/lookup.h b/src/lookup/lookup.h
index 1a7ad55..d4ddc37 100644
--- a/src/lookup/lookup.h
+++ b/src/lookup/lookup.h
@@ -53,6 +53,8 @@ struct lookup_value_t{
};
+enum constraint_type{NO_CONSTRAINT, CONSTRAINT_ONESTEP, CONSTRAINT_NOSEARCH };
+
class FacadePhraseIndex;
diff --git a/src/lookup/phonetic_lookup.h b/src/lookup/phonetic_lookup.h
index 1108198..078a467 100644
--- a/src/lookup/phonetic_lookup.h
+++ b/src/lookup/phonetic_lookup.h
@@ -111,8 +111,6 @@ struct matrix_value_t {
#include "phonetic_lookup_heap.h"
#endif
-enum constraint_type{NO_CONSTRAINT, CONSTRAINT_ONESTEP, CONSTRAINT_NOSEARCH };
-
struct trellis_constraint_t {
/* the constraint type */
constraint_type m_type;
diff --git a/src/lookup/pinyin_lookup2.h b/src/lookup/pinyin_lookup2.h
index 7a21966..ba902b8 100644
--- a/src/lookup/pinyin_lookup2.h
+++ b/src/lookup/pinyin_lookup2.h
@@ -43,9 +43,6 @@ namespace pinyin{
*/
-
-enum constraint_type{NO_CONSTRAINT, CONSTRAINT_ONESTEP, CONSTRAINT_NOSEARCH };
-
struct lookup_constraint_t{
/* current type of the step */
constraint_type m_type;
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index fa20f3c..b102dd9 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -40,6 +40,7 @@
#include "ngram.h"
#include "lookup.h"
#include "pinyin_lookup2.h"
+#include "phonetic_lookup.h"
#include "phrase_lookup.h"
#include "tag_utility.h"
#include "table_info.h"