From 8df49857ef632ab03c290df8ee6abe9f436d1d3c Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Mon, 6 Feb 2017 14:56:08 +0800 Subject: fixes compile --- src/lookup/lookup.h | 2 ++ src/lookup/phonetic_lookup.h | 2 -- src/lookup/pinyin_lookup2.h | 3 --- src/pinyin_internal.h | 1 + 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" -- cgit