summaryrefslogtreecommitdiffstats
path: root/utils/storage/gen_binary_files.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'utils/storage/gen_binary_files.cpp')
-rw-r--r--utils/storage/gen_binary_files.cpp11
1 files changed, 2 insertions, 9 deletions
diff --git a/utils/storage/gen_binary_files.cpp b/utils/storage/gen_binary_files.cpp
index 4519064..eeed911 100644
--- a/utils/storage/gen_binary_files.cpp
+++ b/utils/storage/gen_binary_files.cpp
@@ -98,15 +98,8 @@ int main(int argc, char * argv[]){
phrase_index.compat();
- new_chunk = new MemoryChunk;
- phrase_index.store(1, new_chunk);
- new_chunk->save("gb_char.bin");
- phrase_index.load(1, new_chunk);
+ if (!save_phrase_index(&phrase_index))
+ exit(ENOENT);
- new_chunk = new MemoryChunk;
- phrase_index.store(2, new_chunk);
- new_chunk->save("gbk_char.bin");
- phrase_index.load(2, new_chunk);
-
return 0;
}