<!DOCTYPE html>
<html>
<head>
</head>
<body>
<dl style="line-height: 1.5; margin-left: 2em">
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Author</dt>
<dd style="margin-left: 8.5em">HAYASHI Kentaro <hayas****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2015-04-03 18:17:56 +0900 (Fri, 03 Apr 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">New Revision</dt>
<dd style="margin-left: 8.5em"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d">472cf937b80d28305b4e7433b836e7b672d9d66d</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Message</dt>
<dd style="margin-left: 8.5em"><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto">Don't use deprecated API anymore
grn_column_index is deprecated since Groonga 5.0.1</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Modified files</dt>
<dd style="margin-left: 8.5em">
<ul>
<li><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#diff-0">ext/groonga/rb-grn-column.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa">
<thead>
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: ext/groonga/rb-grn-column.c (+7 -8)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody>
<tr>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L752">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L753">753</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L754">754</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L755">755</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L756">756</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L757">757</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L758">758</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L759">759</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L768">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L769">769</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L770">770</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L771">771</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L772">772</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L773">773</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L774">774</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L775">775</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L776">776</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L777">777</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L778">778</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L779">779</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L780">780</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L781">781</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L782">782</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L783">783</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L784">784</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L785">785</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L786">786</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0L787">787</a></span>
</pre>
</th>
<th class="diff-line-number" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R752">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R753">753</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R754">754</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R755">755</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R756">756</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R757">757</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R758">758</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R759">759</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R768">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R769">769</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R770">770</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R771">771</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R772">772</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R773">773</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R774">774</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R775">775</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R776">776</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R777">777</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R778">778</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R779">779</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R780">780</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R781">781</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R782">782</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R783">783</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R784">784</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R785">785</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/ranguba/rroonga/commit/472cf937b80d28305b4e7433b836e7b672d9d66d#L0R786">786</a></span>
</pre>
</th>
<td class="diff-content" style="border: 1px solid #aaa">
<pre style="border: 0; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; margin: 0; padding: 0.5em; white-space: normal; width: auto"><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -753,7 +753,7 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_column_get_indexes (int argc, VALUE *argv, VALUE self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_ctx *context;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_obj *column;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- grn_obj **indexes = NULL;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_index_datum *indexes = NULL;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int i, n_indexes;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_operator operator = GRN_OP_MATCH;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> VALUE rb_operator, rb_indexes;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -769,19 +769,18 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">rb_grn_column_get_indexes (int argc, VALUE *argv, VALUE self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_indexes = rb_ary_new();</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- n_indexes = grn_column_index(context, column, operator,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- NULL, 0, NULL);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ n_indexes = grn_column_find_index_data(context, column, operator, NULL, 0);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (n_indexes == 0)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return rb_indexes;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- indexes = xmalloc(sizeof(grn_obj *) * n_indexes);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- n_indexes = grn_column_index(context, column, operator,</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- indexes, n_indexes, NULL);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ indexes = xmalloc(sizeof(grn_index_datum) * n_indexes);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ n_indexes = grn_column_find_index_data(context, column, operator,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ indexes, n_indexes);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> for (i = 0; i < n_indexes; i++) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> VALUE rb_index;</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- rb_index = GRNOBJECT2RVAL(Qnil, context, indexes[i], GRN_FALSE);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ rb_index = GRNOBJECT2RVAL(Qnil, context, indexes[i].index, GRN_FALSE);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> rb_ary_push(rb_indexes, rb_index);</span>
<span class="diff-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre">- grn_obj_unlink(context, indexes[i]);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_obj_unlink(context, indexes[i].index);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> }</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> xfree(indexes);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return rb_indexes;</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>