Kouhei Sutou
null+****@clear*****
Fri Jun 21 17:11:04 JST 2013
Kouhei Sutou 2013-06-21 17:11:04 +0900 (Fri, 21 Jun 2013) New Revision: 6f3e781790947536034f006a3b4821803256ae79 https://github.com/groonga/groonga/commit/6f3e781790947536034f006a3b4821803256ae79 Message: Use grn_proc_get_info() to get called expression We don't need to use grn->impl->curr_expr internal variable. Yay! Modified files: lib/proc.c Modified: lib/proc.c (+1 -8) =================================================================== --- lib/proc.c 2013-06-21 17:08:10 +0900 (0bc05bc) +++ lib/proc.c 2013-06-21 17:11:04 +0900 (ce13bc2) @@ -3788,14 +3788,7 @@ func_query(grn_ctx *ctx, int nargs, grn_obj **args, grn_user_data *user_data) } GRN_BOOL_SET(ctx, found, GRN_FALSE); - condition_ptr = grn_expr_get_var(ctx, command, - GRN_SELECT_INTERNAL_VAR_CONDITION, - strlen(GRN_SELECT_INTERNAL_VAR_CONDITION)); - if (!condition_ptr) { - goto exit; - } - - condition = GRN_PTR_VALUE(condition_ptr); + grn_proc_get_info(ctx, user_data, NULL, NULL, &condition); if (!condition) { goto exit; } -------------- next part -------------- HTML����������������������������...Download