diff options
author | Peng Wu <alexepico@gmail.com> | 2012-09-06 16:42:38 +0800 |
---|---|---|
committer | Peng Wu <alexepico@gmail.com> | 2012-09-06 16:42:38 +0800 |
commit | d3421240981c52ab7130bb131432b508eb0820df (patch) | |
tree | 449095dd0de4a93d7206c619b56372ab4144fcf8 /utils/training/import_k_mixture_model.cpp | |
parent | aa44636f3a8b9b5630d8785029617bbc81dca7b8 (diff) | |
download | libpinyin-d3421240981c52ab7130bb131432b508eb0820df.tar.gz libpinyin-d3421240981c52ab7130bb131432b508eb0820df.tar.xz libpinyin-d3421240981c52ab7130bb131432b508eb0820df.zip |
remove duplicated defines
Diffstat (limited to 'utils/training/import_k_mixture_model.cpp')
-rw-r--r-- | utils/training/import_k_mixture_model.cpp | 19 |
1 files changed, 0 insertions, 19 deletions
diff --git a/utils/training/import_k_mixture_model.cpp b/utils/training/import_k_mixture_model.cpp index 7af768e..b53be75 100644 --- a/utils/training/import_k_mixture_model.cpp +++ b/utils/training/import_k_mixture_model.cpp @@ -24,25 +24,6 @@ #include "utils_helper.h" #include "k_mixture_model.h" -#define TAGLIB_GET_VALUE(var, index) \ - phrase_token_t var = null_token; \ - { \ - const char * string = (const char *) g_ptr_array_index \ - (values, index); \ - var = taglib_string_to_token \ - (phrase_table, phrase_index, string); \ - } - -#define TAGLIB_GET_TAGVALUE(type, var, conv) \ - type var; \ - { \ - gpointer value = NULL; \ - assert(g_hash_table_lookup_extended \ - (required, #var, NULL, &value)); \ - var = conv((const char *)value); \ - } - - enum LINE_TYPE{ BEGIN_LINE = 1, END_LINE, |