Kouhei Sutou
null+****@clear*****
Fri Jul 19 18:21:38 JST 2013
Kouhei Sutou 2013-07-19 18:21:38 +0900 (Fri, 19 Jul 2013) New Revision: b5eaead959102e074e80ada97958661adc5e58db https://github.com/groonga/groonga/commit/b5eaead959102e074e80ada97958661adc5e58db Message: Use meaningful name instead of too generic "res" Modified files: lib/db.c Modified: lib/db.c (+4 -4) =================================================================== --- lib/db.c 2013-07-19 18:20:03 +0900 (b4e5581) +++ lib/db.c 2013-07-19 18:21:38 +0900 (b67a474) @@ -1531,7 +1531,7 @@ clear_column_values(grn_ctx *ctx, grn_obj *table, grn_id rid) static grn_bool is_deletable(grn_ctx *ctx, grn_obj *table, grn_id id) { - grn_bool res = GRN_TRUE; + grn_bool deletable = GRN_TRUE; if (id) { grn_hash *cols; if ((cols = grn_hash_create(ctx, NULL, sizeof(grn_id), 0, @@ -1557,16 +1557,16 @@ is_deletable(grn_ctx *ctx, grn_obj *table, grn_id id) ERR(GRN_OPERATION_NOT_PERMITTED, "undeletable record (%s:%d) has value (%s:%d)", table_name, id, column_name, esize); - res = GRN_FALSE; + deletable = GRN_FALSE; } }); } grn_hash_close(ctx, cols); } } else { - res = GRN_FALSE; + deletable = GRN_FALSE; } - return res; + return deletable; } grn_rc -------------- next part -------------- HTML����������������������������... Download