summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorPeng Huang <shawn.p.huang@gmail.com>2010-04-19 15:12:03 +0800
committerPeng Huang <shawn.p.huang@gmail.com>2010-04-19 15:12:03 +0800
commitbd5261752efc27558d4ccc46498faaf1d6955cd4 (patch)
treec122f40bdf21cc319ca4024f6d6c88a26c49a75c /src
parent1454d9f1192bbc42f3ed70a7c220fdef56c1cb8c (diff)
downloadibus-libpinyin-bd5261752efc27558d4ccc46498faaf1d6955cd4.tar.gz
ibus-libpinyin-bd5261752efc27558d4ccc46498faaf1d6955cd4.tar.xz
ibus-libpinyin-bd5261752efc27558d4ccc46498faaf1d6955cd4.zip
Does not use typedef any more
Diffstat (limited to 'src')
-rw-r--r--src/Phrase.h3
-rw-r--r--src/Types.h3
2 files changed, 2 insertions, 4 deletions
diff --git a/src/Phrase.h b/src/Phrase.h
index 1f1f067..e81d6cd 100644
--- a/src/Phrase.h
+++ b/src/Phrase.h
@@ -6,8 +6,7 @@
namespace PY {
-typedef struct _Phrase Phrase;
-struct _Phrase {
+struct Phrase {
gchar phrase[MAX_UTF8_LEN * (MAX_PHRASE_LEN + 1)];
guint freq;
guint user_freq;
diff --git a/src/Types.h b/src/Types.h
index 7feb357..6104420 100644
--- a/src/Types.h
+++ b/src/Types.h
@@ -105,8 +105,7 @@ namespace PY {
#define PINYIN_FUZZY_UANG_UAN (1U << 31)
#define PINYIN_FUZZY_ALL (0xffffff00)
-typedef struct _Pinyin Pinyin;
-struct _Pinyin {
+struct Pinyin {
const gchar *text;
const gchar *sheng;
const gchar *yun;