null+****@clear*****
null+****@clear*****
2010年 8月 24日 (火) 18:46:31 JST
Daijiro MORI 2010-08-24 09:46:31 +0000 (Tue, 24 Aug 2010) New Revision: 9db52a1c867c0ec9165c198d8f4b7bf1768547c0 Log: Renamed callback to suggest_preparer. Modified files: modules/suggest/suggest.c Modified: modules/suggest/suggest.c (+3 -3) =================================================================== --- modules/suggest/suggest.c 2010-08-24 09:32:49 +0000 (ea20464) +++ modules/suggest/suggest.c 2010-08-24 09:46:31 +0000 (3d28796) @@ -127,7 +127,7 @@ command_suggest(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_dat } static grn_obj * -func_callback(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) +func_suggest_preparer(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) { grn_obj *obj; if (nargs == 5) { @@ -161,8 +161,8 @@ grn_module_register_suggest(grn_ctx *ctx) grn_proc_create(ctx, CONST_STR_LEN("suggest"), GRN_PROC_COMMAND, command_suggest, NULL, NULL, 3, vars); - grn_proc_create(ctx, CONST_STR_LEN("callback"), GRN_PROC_FUNCTION, - func_callback, NULL, NULL, 0, NULL); + grn_proc_create(ctx, CONST_STR_LEN("suggest_preparer"), GRN_PROC_FUNCTION, + func_suggest_preparer, NULL, NULL, 0, NULL); return ctx->rc; }