summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2012-08-21 11:39:13 +0800
committerPeng Wu <alexepico@gmail.com>2012-08-25 13:28:21 +0800
commit400c0c6f7d52d4f112a4cb418326374819d924a6 (patch)
tree3d7b013f563e395ef4425f145b9ef5dbeed98a10
parentad4e7289182d50ebd7fb040fa180a0c4b54473f6 (diff)
downloadlibpinyin-400c0c6f7d52d4f112a4cb418326374819d924a6.tar.gz
libpinyin-400c0c6f7d52d4f112a4cb418326374819d924a6.tar.xz
libpinyin-400c0c6f7d52d4f112a4cb418326374819d924a6.zip
refine pinyin.h
-rw-r--r--src/include/novel_types.h4
-rw-r--r--src/pinyin.h1
-rw-r--r--src/storage/Makefile.am6
-rw-r--r--src/storage/pinyin_parser2.h2
4 files changed, 7 insertions, 6 deletions
diff --git a/src/include/novel_types.h b/src/include/novel_types.h
index b72708b..e2d2363 100644
--- a/src/include/novel_types.h
+++ b/src/include/novel_types.h
@@ -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;
diff --git a/src/pinyin.h b/src/pinyin.h
index 1543a07..2183388 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -27,7 +27,6 @@
#include "novel_types.h"
#include "pinyin_custom2.h"
#include "chewing_key.h"
-#include "pinyin_parser2.h"
using namespace pinyin;
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 0ad3bdf..9eac03c 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -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 \
diff --git a/src/storage/pinyin_parser2.h b/src/storage/pinyin_parser2.h
index 864932a..644dd07 100644
--- a/src/storage/pinyin_parser2.h
+++ b/src/storage/pinyin_parser2.h
@@ -79,8 +79,6 @@ typedef struct {
const char m_tone;
} chewing_tone_item_t;
-typedef GArray * ChewingKeyVector;
-typedef GArray * ChewingKeyRestVector;
typedef GArray * ParseValueVector;