summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-12-20 13:44:34 +0800
committerPeng Wu <alexepico@gmail.com>2011-12-20 13:47:29 +0800
commit54304fd1441d9bb67299651b943577848c246892 (patch)
tree1b12c218eb0535a4f3832b19f74419218aaeb601
parent29f9a74d45deffa61a58c6395418bdff79979996 (diff)
downloadlibpinyin-54304fd1441d9bb67299651b943577848c246892.zip
libpinyin-54304fd1441d9bb67299651b943577848c246892.tar.gz
libpinyin-54304fd1441d9bb67299651b943577848c246892.tar.xz
refine pinyin_internal.h
-rw-r--r--src/pinyin_internal.h4
-rw-r--r--src/storage/flexible_ngram.h4
2 files changed, 7 insertions, 1 deletions
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index ce5c887..f1b0309 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -23,9 +23,11 @@
#ifndef PINYIN_INTERNAL_H
#define PINYIN_INTERNAL_H
-#include "pinyin.h"
+#include <stdio.h>
+#include "novel_types.h"
#include "memory_chunk.h"
#include "pinyin_custom2.h"
+#include "chewing_key.h"
#include "pinyin_parser2.h"
#include "pinyin_phrase2.h"
#include "chewing_large_table.h"
diff --git a/src/storage/flexible_ngram.h b/src/storage/flexible_ngram.h
index b09d58e..a96bf69 100644
--- a/src/storage/flexible_ngram.h
+++ b/src/storage/flexible_ngram.h
@@ -31,6 +31,8 @@
* struct MagicHeader, ArrayHeader, ArrayItem.
*/
+namespace pinyin{
+
typedef GArray * FlexibleBigramPhraseArray;
template<typename ArrayHeader, typename ArrayItem>
@@ -527,4 +529,6 @@ public:
};
+};
+
#endif