summaryrefslogtreecommitdiffstats
path: root/src/pinyin.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/pinyin.h
parent60d7294cce9c5f57e3497765783b9fa65e7ff9c0 (diff)
downloadlibpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.tar.gz
libpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.tar.xz
libpinyin-2cc2dadc6bf0149f1a0ed386880e3fb4262e3b67.zip
use G_BEGIN/END_DECLS
Diffstat (limited to 'src/pinyin.h')
-rw-r--r--src/pinyin.h20
1 files changed, 3 insertions, 17 deletions
diff --git a/src/pinyin.h b/src/pinyin.h
index 3a9a16e..6002315 100644
--- a/src/pinyin.h
+++ b/src/pinyin.h
@@ -27,24 +27,10 @@
#include "novel_types.h"
#include "pinyin_custom2.h"
-namespace pinyin{
+G_BEGIN_DECLS
+
typedef struct _ChewingKey ChewingKey;
typedef struct _ChewingKeyRest ChewingKeyRest;
-};
-
-using pinyin::pinyin_option_t;
-using pinyin::DoublePinyinScheme;
-using pinyin::ChewingScheme;
-
-using pinyin::phrase_token_t;
-using pinyin::null_token;
-
-using pinyin::ChewingKey;
-using pinyin::ChewingKeyRest;
-using pinyin::ChewingKeyVector;
-
-
-extern "C" {
typedef struct _pinyin_context_t pinyin_context_t;
typedef struct _pinyin_instance_t pinyin_instance_t;
@@ -614,6 +600,6 @@ typedef ChewingKeyRest PinyinKeyPos;
#define LIBPINYIN_FORMAT_VERSION "0.8.92"
-};
+G_END_DECLS
#endif