mfiler4のgitリポジトリ
Revision | e9c825cba9bbc5506dca4b1195c3b2a6e20f4b23 (tree) |
---|---|
Time | 2012-10-28 15:18:21 |
Author | ab25q <ab25cq@gmai...> |
Commiter | ab25q |
v1.0.1 release
@@ -1,4 +1,10 @@ | ||
1 | 1 | |
2 | +2012 26th Octorber version 1.0.1 | |
3 | + | |
4 | + Check mfiler4 with migemo and fixed bug | |
5 | + | |
6 | + require xyzsh-1.1.4 later | |
7 | + | |
2 | 8 | 2012 26th Octorber version 1.0.0 |
3 | 9 | |
4 | 10 | First version release |
@@ -14,7 +14,7 @@ | ||
14 | 14 | #include <migemo.h> |
15 | 15 | migemo* gMigemo; |
16 | 16 | static regex_t* gReg; |
17 | -hash_obj* gMigemoCache; // 一文字だけの正規表現のクェリーは重いのでキャッシュする | |
17 | +sObject* gMigemoCache; // 一文字だけの正規表現のクェリーは重いのでキャッシュする | |
18 | 18 | #endif |
19 | 19 | |
20 | 20 | static sObject* gInputFileName; // 入力された文字列 |
@@ -56,7 +56,7 @@ void ISearchClear() | ||
56 | 56 | /////////////////////////////////////////////////// |
57 | 57 | // 内部定義 |
58 | 58 | /////////////////////////////////////////////////// |
59 | -static void migemo_init(); | |
59 | +static void mfiler4_migemo_init(); | |
60 | 60 | |
61 | 61 | /// 入力された文字列がインクリメンタルサーチ向きかどうか /// |
62 | 62 | static BOOL is_isearch_char(int key) |
@@ -130,8 +130,8 @@ static BOOL match_back(int start) | ||
130 | 130 | |
131 | 131 | if(gMigemoCache == NULL) { |
132 | 132 | gReg = NULL; |
133 | - migemo_init(); | |
134 | - gMigemoCache = HASH_NEW(100); | |
133 | + mfiler4_migemo_init(); | |
134 | + gMigemoCache = HASH_NEW_MALLOC(100); | |
135 | 135 | } |
136 | 136 | |
137 | 137 | if(string_c_str(gInputFileName)[0] != 0) { |
@@ -264,8 +264,8 @@ static BOOL match_next(int start) | ||
264 | 264 | |
265 | 265 | if(gMigemoCache == NULL) { |
266 | 266 | gReg = NULL; |
267 | - migemo_init(); | |
268 | - gMigemoCache = HASH_NEW(100); | |
267 | + mfiler4_migemo_init(); | |
268 | + gMigemoCache = HASH_NEW_MALLOC(100); | |
269 | 269 | } |
270 | 270 | |
271 | 271 | if(string_c_str(gInputFileName)[0] != 0) { |
@@ -325,7 +325,7 @@ static BOOL match_next(int start) | ||
325 | 325 | |
326 | 326 | /// start /// |
327 | 327 | int i; |
328 | - vector_obj* v = filer_dir(adir())->mFiles; | |
328 | + sObject* v = filer_dir(adir())->mFiles; | |
329 | 329 | for(i=start; i<vector_count(v); i++) { |
330 | 330 | sFile* file = (sFile*)vector_item(filer_dir(adir())->mFiles, i); |
331 | 331 | char* fnamev = string_c_str(file->mNameView); |
@@ -377,7 +377,7 @@ static BOOL match_next(int start) | ||
377 | 377 | /////////////////////////////////////////////////// |
378 | 378 | // インクリメンタルサーチ初期化 |
379 | 379 | /////////////////////////////////////////////////// |
380 | -static void migemo_init() | |
380 | +static void mfiler4_migemo_init() | |
381 | 381 | { |
382 | 382 | #if defined(HAVE_MIGEMO_H) |
383 | 383 | char buf[PATH_MAX]; |
@@ -483,7 +483,7 @@ void isearch_final() | ||
483 | 483 | |
484 | 484 | it = hash_loop_next(it); |
485 | 485 | } |
486 | - hash_delete(gMigemoCache); | |
486 | + hash_delete_malloc(gMigemoCache); | |
487 | 487 | } |
488 | 488 | #endif |
489 | 489 |
@@ -498,8 +498,8 @@ void isearch_input(int meta, int key) | ||
498 | 498 | #if defined(HAVE_MIGEMO_H) |
499 | 499 | if(gMigemoCache == NULL) { |
500 | 500 | gReg = NULL; |
501 | - migemo_init(); | |
502 | - gMigemoCache = HASH_NEW(100); | |
501 | + mfiler4_migemo_init(); | |
502 | + gMigemoCache = HASH_NEW_MALLOC(100); | |
503 | 503 | } |
504 | 504 | #endif |
505 | 505 |
@@ -925,7 +925,7 @@ int main(int argc, char* argv[]) | ||
925 | 925 | CHECKML_BEGIN(FALSE); |
926 | 926 | |
927 | 927 | /// ファイラでもスクリプトでも共通の環境変数を初期化 /// |
928 | - setenv("VERSION", "1.0.0", 1); | |
928 | + setenv("VERSION", "1.0.1", 1); | |
929 | 929 | setenv("MFILER4_DATAROOTDIR", DATAROOTDIR, 1); |
930 | 930 | |
931 | 931 | /// mfiler4のホームディレクトリを保存しておく /// |