Does not use typedef any more
authorPeng Huang <shawn.p.huang@gmail.com>
Mon, 19 Apr 2010 07:12:03 +0000 (15:12 +0800)
committerPeng Huang <shawn.p.huang@gmail.com>
Mon, 19 Apr 2010 07:12:03 +0000 (15:12 +0800)
src/Phrase.h
src/Types.h

index 1f1f067..e81d6cd 100644 (file)
@@ -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;
index 7feb357..6104420 100644 (file)
@@ -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;