summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-11-29 14:31:57 +0800
committerPeng Wu <alexepico@gmail.com>2011-11-29 14:38:16 +0800
commiteb8fdda2965ca382a9b41d8cac65ee16e16ee6e6 (patch)
treefdf426c910eb34bdfaa0a2a78fdbd5c92cb51fd0
parentc9667ef0a30d03647fc97490326cea4c2426df13 (diff)
downloadlibpinyin-eb8fdda2965ca382a9b41d8cac65ee16e16ee6e6.tar.gz
libpinyin-eb8fdda2965ca382a9b41d8cac65ee16e16ee6e6.tar.xz
libpinyin-eb8fdda2965ca382a9b41d8cac65ee16e16ee6e6.zip
begin to add chewing_large_table.cpp
-rw-r--r--src/include/memory_chunk.h1
-rw-r--r--src/storage/Makefile.am6
-rw-r--r--src/storage/chewing_large_table.cpp22
-rw-r--r--src/storage/chewing_large_table.h2
4 files changed, 29 insertions, 2 deletions
diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h
index 49b8f8c..2c0b052 100644
--- a/src/include/memory_chunk.h
+++ b/src/include/memory_chunk.h
@@ -24,6 +24,7 @@
#include <assert.h>
#include <unistd.h>
+#include <stdio.h>
#include <stdlib.h>
#include "stl_lite.h"
diff --git a/src/storage/Makefile.am b/src/storage/Makefile.am
index 0338e7b..d0c4b01 100644
--- a/src/storage/Makefile.am
+++ b/src/storage/Makefile.am
@@ -39,7 +39,8 @@ noinst_HEADERS = pinyin_large_table.h \
double_pinyin_table.h \
chewing_table.h \
pinyin_parser2.h \
- pinyin_phrase2.h
+ pinyin_phrase2.h \
+ chewing_large_table.h
noinst_LTLIBRARIES = libstorage.la
@@ -54,5 +55,6 @@ libstorage_la_SOURCES = pinyin_base.cpp \
phrase_large_table.cpp \
ngram.cpp \
tag_utility.cpp \
- pinyin_parser2.cpp
+ pinyin_parser2.cpp \
+ chewing_large_table.cpp
diff --git a/src/storage/chewing_large_table.cpp b/src/storage/chewing_large_table.cpp
new file mode 100644
index 0000000..aec2b71
--- /dev/null
+++ b/src/storage/chewing_large_table.cpp
@@ -0,0 +1,22 @@
+/*
+ * 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., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
+ */
+
+#include "chewing_large_table.h"
diff --git a/src/storage/chewing_large_table.h b/src/storage/chewing_large_table.h
index 6130a73..52ee01b 100644
--- a/src/storage/chewing_large_table.h
+++ b/src/storage/chewing_large_table.h
@@ -22,8 +22,10 @@
#ifndef CHEWING_LARGE_TABLE_H
#define CHEWING_LARGE_TABLE_H
+
#include "novel_types.h"
#include "memory_chunk.h"
+#include "chewing_key.h"
namespace pinyin{