add namespace pinyin
authorPeng Wu <alexepico@gmail.com>
Tue, 30 Aug 2011 07:07:26 +0000 (15:07 +0800)
committerPeng Wu <alexepico@gmail.com>
Tue, 30 Aug 2011 07:16:02 +0000 (15:16 +0800)
src/include/memory_chunk.h
src/include/novel_types.h
src/storage/pinyin_custom.h

index c72e92f..def0532 100644 (file)
@@ -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
index 42dd3fc..62063ba 100644 (file)
@@ -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
index 04c97ed..86d4e0c 100644 (file)
  *  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