summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-30 13:36:08 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-30 13:36:08 +0800
commit3b548d20eaec21cbf9b8e955cca2679ed840e80e (patch)
tree930bbc30d29ac4649f475f544c44269155048efb
parent99c1e74faf22e50e63a7e8055f52cda9f9650061 (diff)
downloadlibpinyin-3b548d20eaec21cbf9b8e955cca2679ed840e80e.zip
libpinyin-3b548d20eaec21cbf9b8e955cca2679ed840e80e.tar.gz
libpinyin-3b548d20eaec21cbf9b8e955cca2679ed840e80e.tar.xz
add pinyin internal header
-rw-r--r--src/Makefile.am10
-rw-r--r--src/pinyin.cpp1
-rw-r--r--src/pinyin.h15
-rw-r--r--src/pinyin_internal.cpp4
-rw-r--r--src/pinyin_internal.h46
5 files changed, 60 insertions, 16 deletions
diff --git a/src/Makefile.am b/src/Makefile.am
index 94eae2d..4cb72f9 100644
--- a/src/Makefile.am
+++ b/src/Makefile.am
@@ -32,10 +32,16 @@ INCLUDES = -I$(top_srcdir)/src \
libpinyinincludedir = $(includedir)/libpinyin-@LIBPINYIN_BINARY_VERSION@
-libpinyininclude_HEADERS= pinyin.h
+libpinyininclude_HEADERS= pinyin.h \
+ pinyin_internal.h
-lib_LTLIBRARIES = libpinyin.la
+lib_LTLIBRARIES = libpinyin.la \
+ libpinyin_internal.la
libpinyin_la_SOURCES = pinyin.cpp
libpinyin_la_LIBADD = storage/libstorage.la lookup/liblookup.la
+
+libpinyin_internal_la_SOURCES = pinyin_internal.cpp
+
+libpinyin_internal_la_LIBADD = storage/libstorage.la lookup/liblookup.la
diff --git a/src/pinyin.cpp b/src/pinyin.cpp
index 8eb4640..1d5e0f0 100644
--- a/src/pinyin.cpp
+++ b/src/pinyin.cpp
@@ -1,4 +1,5 @@
#include "pinyin.h"
+#include "pinyin_internal.h"
/* a glue layer for input method integration. */
diff --git a/src/pinyin.h b/src/pinyin.h
index 49b85a2..cff0663 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -25,21 +25,8 @@
#include <stdio.h>
#include "novel_types.h"
-#include "memory_chunk.h"
+#include "pinyin_custom.h"
#include "pinyin_base.h"
-#include "pinyin_phrase.h"
-#include "pinyin_large_table.h"
-#include "phrase_large_table.h"
-#include "phrase_index.h"
-#include "phrase_index_logger.h"
-#include "ngram.h"
-#include "lookup.h"
-#include "pinyin_lookup.h"
-#include "phrase_lookup.h"
-#include "tag_utility.h"
-
-/* training module */
-#include "flexible_ngram.h"
using namespace pinyin;
diff --git a/src/pinyin_internal.cpp b/src/pinyin_internal.cpp
index e69de29..79fb688 100644
--- a/src/pinyin_internal.cpp
+++ b/src/pinyin_internal.cpp
@@ -0,0 +1,4 @@
+#include "pinyin_internal.h"
+
+
+/* Place holder for pinyin internal library. */
diff --git a/src/pinyin_internal.h b/src/pinyin_internal.h
index e69de29..ac4863e 100644
--- a/src/pinyin_internal.h
+++ b/src/pinyin_internal.h
@@ -0,0 +1,46 @@
+/*
+ * libpinyin
+ * Library to deal with pinyin.
+ *
+ * Copyright (C) 2011 Peng Wu <alexepico@gmail.com>
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License as published by
+ * the Free Software Foundation; either version 2 of the License, or
+ * (at your option) any later version.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
+ */
+
+
+#ifndef PINYIN_INTERNAL_H
+#define PINYIN_INTERNAL_H
+
+#include "pinyin.h"
+#include "memory_chunk.h"
+
+#include "pinyin_phrase.h"
+#include "pinyin_large_table.h"
+#include "phrase_large_table.h"
+#include "phrase_index.h"
+#include "phrase_index_logger.h"
+#include "ngram.h"
+#include "lookup.h"
+#include "pinyin_lookup.h"
+#include "phrase_lookup.h"
+#include "tag_utility.h"
+
+/* training module */
+#include "flexible_ngram.h"
+
+using namespace pinyin;
+
+
+#endif