From f81c28d21486c984dc9454224929f44698a76191 Mon Sep 17 00:00:00 2001 From: Peng Wu Date: Tue, 30 Aug 2011 15:07:26 +0800 Subject: add namespace pinyin --- src/include/memory_chunk.h | 4 ++++ src/include/novel_types.h | 4 ++++ src/storage/pinyin_custom.h | 7 +++++++ 3 files changed, 15 insertions(+) diff --git a/src/include/memory_chunk.h b/src/include/memory_chunk.h index c72e92f..def0532 100644 --- a/src/include/memory_chunk.h +++ b/src/include/memory_chunk.h @@ -27,6 +27,8 @@ #include #include "stl_lite.h" +namespace pinyin{ + /* for unmanaged mode * m_free_func == free , when memory is allocated by malloc * m_free_func == NULL, @@ -255,4 +257,6 @@ public: } }; +}; + #endif diff --git a/src/include/novel_types.h b/src/include/novel_types.h index 42dd3fc..62063ba 100644 --- a/src/include/novel_types.h +++ b/src/include/novel_types.h @@ -30,6 +30,8 @@ #include #include +namespace pinyin{ + typedef guint32 phrase_token_t; typedef gunichar2 utf16_t; @@ -148,4 +150,6 @@ typedef double parameter_t; typedef GArray * TokenVector; typedef TokenVector MatchResults; +}; + #endif diff --git a/src/storage/pinyin_custom.h b/src/storage/pinyin_custom.h index 04c97ed..86d4e0c 100644 --- a/src/storage/pinyin_custom.h +++ b/src/storage/pinyin_custom.h @@ -19,9 +19,14 @@ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ + #ifndef PINYIN_CUSTOM_H #define PINYIN_CUSTOM_H + +namespace pinyin{ + + /** * @brief enums of pinyin ambiguities. * @@ -114,4 +119,6 @@ struct PinyinCustomSettings } }; +}; + #endif -- cgit