summaryrefslogtreecommitdiffstats
path: root/src/storage/chewing_key.h
diff options
context:
space:
mode:
authorPeng Wu <alexepico@gmail.com>2013-03-22 11:06:55 +0800
committerPeng Wu <alexepico@gmail.com>2013-03-22 11:06:55 +0800
commit2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67 (patch)
treeeeae3a546ef83e79010f03a7fdc5f09cd1013f94 /src/storage/chewing_key.h
parent60d7294cce9c5f57e3497765783b9fa65e7ff9c0 (diff)
downloadlibpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.tar.gz
libpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.tar.xz
libpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.zip
use G_BEGIN/END_DECLS
Diffstat (limited to 'src/storage/chewing_key.h')
-rw-r--r--src/storage/chewing_key.h8
1 files changed, 5 insertions, 3 deletions
diff --git a/src/storage/chewing_key.h b/src/storage/chewing_key.h
index 41b5664..f3202e8 100644
--- a/src/storage/chewing_key.h
+++ b/src/storage/chewing_key.h
@@ -25,12 +25,14 @@
#include <glib.h>
#include "chewing_enum.h"
+using namespace pinyin;
+
+G_BEGIN_DECLS
+
/** @file chewing_key.h
* @brief the definitions of chewing key related classes and structs.
*/
-namespace pinyin{
-
/** Note: The parsed pinyins are stored in the following two
* GArrays to speed up chewing table lookup.
@@ -104,6 +106,6 @@ struct _ChewingKeyRest
typedef struct _ChewingKeyRest ChewingKeyRest;
-};
+G_END_DECLS
#endif