summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2011-08-30 15:07:26 +0800
committerPeng Wu <alexepico@gmail.com>2011-08-30 15:16:02 +0800
commitf81c28d21486c984dc9454224929f44698a76191 (patch)
treecb7fa32a35627bd14ec1b595cbf53e4f36e709bb
parentb988c0639be9b5b184aa2fed5fd69338abe748f5 (diff)
downloadlibpinyin-f81c28d21486c984dc9454224929f44698a76191.zip
libpinyin-f81c28d21486c984dc9454224929f44698a76191.tar.gz
libpinyin-f81c28d21486c984dc9454224929f44698a76191.tar.xz
add namespace pinyin
-rw-r--r--src/include/memory_chunk.h4
-rw-r--r--src/include/novel_types.h4
-rw-r--r--src/storage/pinyin_custom.h7
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