null+****@clear*****
null+****@clear*****
2012年 3月 15日 (木) 16:44:44 JST
Susumu Yata 2012-03-15 16:44:44 +0900 (Thu, 15 Mar 2012)
New Revision: 6517b4e47bd3328a29ecc8a5b7e13fb69ef60526
Log:
Change the return value of grn_pat_cache_disable() from grn_rc to void.
Modified files:
lib/pat.c
lib/pat.h
Modified: lib/pat.c (+1 -2)
===================================================================
--- lib/pat.c 2012-03-15 16:37:50 +0900 (6dc7214)
+++ lib/pat.c 2012-03-15 16:44:44 +0900 (44c9e9d)
@@ -480,7 +480,7 @@ grn_pat_cache_enable(grn_ctx *ctx, grn_pat *pat, uint32_t cache_size)
return GRN_SUCCESS;
}
-grn_rc
+void
grn_pat_cache_disable(grn_ctx *ctx, grn_pat *pat)
{
if (pat->cache) {
@@ -488,7 +488,6 @@ grn_pat_cache_disable(grn_ctx *ctx, grn_pat *pat)
pat->cache_size = 0;
pat->cache = NULL;
}
- return ctx->rc;
}
grn_pat *
Modified: lib/pat.h (+1 -1)
===================================================================
--- lib/pat.h 2012-03-15 16:37:50 +0900 (d4d4887)
+++ lib/pat.h 2012-03-15 16:44:44 +0900 (3430f9d)
@@ -102,7 +102,7 @@ void grn_pat_inspect_nodes(grn_ctx *ctx, grn_pat *pat, grn_obj *buf);
void grn_pat_cursor_inspect(grn_ctx *ctx, grn_pat_cursor *c, grn_obj *buf);
grn_rc grn_pat_cache_enable(grn_ctx *ctx, grn_pat *pat, uint32_t cache_size);
-grn_rc grn_pat_cache_disable(grn_ctx *ctx, grn_pat *pat);
+void grn_pat_cache_disable(grn_ctx *ctx, grn_pat *pat);
#ifdef __cplusplus
}