diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/include/memory_chunk.h | 4 | ||||
-rw-r--r-- | src/include/novel_types.h | 4 | ||||
-rw-r--r-- | src/storage/pinyin_custom.h | 7 |
3 files changed, 15 insertions, 0 deletions
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 <stdlib.h> #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 <limits.h> #include <glib.h> +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 |