projects
/
platform
/
upstream
/
libpinyin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
274f51f
)
update test_table_info.cpp
author
Peng Wu
<alexepico@gmail.com>
Wed, 10 Apr 2013 07:55:39 +0000
(15:55 +0800)
committer
Peng Wu
<alexepico@gmail.com>
Wed, 10 Apr 2013 07:55:39 +0000
(15:55 +0800)
tests/storage/test_table_info.cpp
patch
|
blob
|
history
diff --git
a/tests/storage/test_table_info.cpp
b/tests/storage/test_table_info.cpp
index
3201074
..
68b4735
100644
(file)
--- a/
tests/storage/test_table_info.cpp
+++ b/
tests/storage/test_table_info.cpp
@@
-36,29
+36,29
@@
int main(int argc, char * argv[]) {
size_t i;
for (i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
size_t i;
for (i = 0; i < PHRASE_INDEX_LIBRARY_COUNT; ++i) {
- const pinyin_table_info_t * tableinfo =
+ const pinyin_table_info_t * table
_
info =
system_table_info.get_table_info() + i;
system_table_info.get_table_info() + i;
- assert(i == tableinfo->m_dict_index);
- printf("table index:%d\n", tableinfo->m_dict_index);
+ assert(i == table
_
info->m_dict_index);
+ printf("table index:%d\n", table
_
info->m_dict_index);
- switch(tableinfo->m_file_type) {
+ switch(table
_
info->m_file_type) {
case NOT_USED:
printf("not used.\n");
break;
case SYSTEM_FILE:
case NOT_USED:
printf("not used.\n");
break;
case SYSTEM_FILE:
- printf("system file:%s %s %s.\n", tableinfo->m_table_filename,
- table
info->m_system_filename, table
info->m_user_filename);
+ printf("system file:%s %s %s.\n", table
_
info->m_table_filename,
+ table
_info->m_system_filename, table_
info->m_user_filename);
break;
case DICTIONARY:
break;
case DICTIONARY:
- printf("dictionary:%s %s %s.\n", tableinfo->m_table_filename,
- table
info->m_system_filename, table
info->m_user_filename);
+ printf("dictionary:%s %s %s.\n", table
_
info->m_table_filename,
+ table
_info->m_system_filename, table_
info->m_user_filename);
break;
case USER_FILE:
break;
case USER_FILE:
- printf("user file:%s.\n", tableinfo->m_user_filename);
+ printf("user file:%s.\n", table
_
info->m_user_filename);
break;
default:
break;
default: