refine pinyin.h
authorPeng Wu <alexepico@gmail.com>
Tue, 21 Aug 2012 03:39:13 +0000 (11:39 +0800)
committerPeng Wu <alexepico@gmail.com>
Sat, 25 Aug 2012 05:28:21 +0000 (13:28 +0800)
src/include/novel_types.h
src/pinyin.h
src/storage/Makefile.am
src/storage/pinyin_parser2.h

index b72708b..e2d2363 100644 (file)
@@ -131,6 +131,10 @@ typedef double parameter_t;
 
 #define LAMBDA_PARAMETER 0.330642
 
+/* Array of ChewingKey/ChewingKeyRest */
+typedef GArray * ChewingKeyVector;
+typedef GArray * ChewingKeyRestVector;
+
 /* Array of phrase_token_t */
 typedef GArray * TokenVector;
 typedef TokenVector MatchResults;
index 1543a07..2183388 100644 (file)
@@ -27,7 +27,6 @@
 #include "novel_types.h"
 #include "pinyin_custom2.h"
 #include "chewing_key.h"
-#include "pinyin_parser2.h"
 
 using namespace pinyin;
 
index 0ad3bdf..9eac03c 100644 (file)
@@ -23,11 +23,11 @@ libpinyinincludedir = $(includedir)/libpinyin-@VERSION@
 
 libpinyininclude_HEADERS= chewing_enum.h \
                          chewing_key.h \
-                         pinyin_custom2.h \
-                         pinyin_parser2.h
+                         pinyin_custom2.h
 
 
-noinst_HEADERS         = phrase_index.h \
+noinst_HEADERS         = pinyin_parser2.h \
+                         phrase_index.h \
                          phrase_index_logger.h \
                          phrase_large_table.h \
                          ngram.h \
index 864932a..644dd07 100644 (file)
@@ -79,8 +79,6 @@ typedef struct {
     const char m_tone;
 } chewing_tone_item_t;
 
-typedef GArray * ChewingKeyVector;
-typedef GArray * ChewingKeyRestVector;
 typedef GArray * ParseValueVector;