From bd5261752efc27558d4ccc46498faaf1d6955cd4 Mon Sep 17 00:00:00 2001 From: Peng Huang Date: Mon, 19 Apr 2010 15:12:03 +0800 Subject: [PATCH] Does not use typedef any more --- src/Phrase.h | 3 +-- 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; -- 2.7.4