diff options
author | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-19 15:12:03 +0800 |
---|---|---|
committer | Peng Huang <shawn.p.huang@gmail.com> | 2010-04-19 15:12:03 +0800 |
commit | bd5261752efc27558d4ccc46498faaf1d6955cd4 (patch) | |
tree | c122f40bdf21cc319ca4024f6d6c88a26c49a75c /src | |
parent | 1454d9f1192bbc42f3ed70a7c220fdef56c1cb8c (diff) | |
download | ibus-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.h | 3 | ||||
-rw-r--r-- | src/Types.h | 3 |
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; |