Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

clean up pinyin.h

  • Loading branch information...
commit 993bcbca62bee26aa3c23bc8edfd6dbe8eb66ad4 1 parent d172a79
@epico authored
Showing with 7 additions and 5 deletions.
  1. +2 −0  src/pinyin.cpp
  2. +5 −5 src/pinyin.h
View
2  src/pinyin.cpp
@@ -30,6 +30,8 @@ using namespace pinyin;
/* a glue layer for input method integration. */
+typedef GArray * CandidateVector; /* GArray of lookup_candidate_t */
+
struct _pinyin_context_t{
pinyin_option_t m_options;
View
10 src/pinyin.h
@@ -26,7 +26,11 @@
#include <stdio.h>
#include "novel_types.h"
#include "pinyin_custom2.h"
-#include "chewing_key.h"
+
+namespace pinyin{
+typedef struct _ChewingKey ChewingKey;
+typedef struct _ChewingKeyRest ChewingKeyRest;
+};
using pinyin::pinyin_option_t;
using pinyin::DoublePinyinScheme;
@@ -53,8 +57,6 @@ typedef struct _lookup_candidate_t lookup_candidate_t;
typedef struct _import_iterator_t import_iterator_t;
-typedef GArray * CandidateVector; /* GArray of lookup_candidate_t */
-
enum lookup_candidate_type_t{
BEST_MATCH_CANDIDATE = 1,
NORMAL_CANDIDATE,
@@ -570,8 +572,6 @@ bool pinyin_token_add_unigram_frequency(pinyin_instance_t * instance,
/* hack here. */
typedef ChewingKey PinyinKey;
typedef ChewingKeyRest PinyinKeyPos;
-typedef ChewingKeyVector PinyinKeyVector;
-typedef ChewingKeyRestVector PinyinKeyPosVector;
#define LIBPINYIN_FORMAT_VERSION "0.8.92"
Please sign in to comment.
Something went wrong with that request. Please try again.