<!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">Kouhei Sutou <kou****@clear*****></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em">Date</dt>
<dd style="margin-left: 8.5em">2014-06-16 23:33:24 +0900 (Mon, 16 Jun 2014)</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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2">3b2c6b86afa7536140057d9efc56ad1ed1febed2</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">mrb: bind grn_expr_get_var_by_offset()</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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#diff-0">lib/mrb/mrb_expr.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: lib/mrb/mrb_expr.c (+27 -1)</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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L81">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L82">82</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L84">84</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L85">85</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L86">86</a></span>
<span class="diff-line-number-deleted" style="background-color: #ffaaaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L87">87</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-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-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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L88">88</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L89">89</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L90">90</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L506">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L507">507</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L508">508</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L509">509</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-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-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-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-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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L510">510</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L511">511</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L512">512</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L558">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L559">559</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L560">560</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L561">561</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L562">562</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L563">563</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0L564">564</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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R81">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R82">82</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R83">83</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R84">84</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R85">85</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R86">86</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R87">87</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R88">88</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/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R89">89</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R90">90</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R91">91</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R92">92</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R93">93</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R94">94</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R95">95</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R96">96</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R97">97</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R98">98</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R99">99</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R515">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R516">516</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R517">517</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R518">518</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R519">519</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R520">520</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R521">521</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R522">522</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R523">523</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R524">524</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R525">525</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R526">526</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R527">527</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R528">528</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R529">529</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R530">530</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R531">531</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R532">532</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R533">533</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R534">534</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R535">535</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R536">536</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R582">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R583">583</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R584">584</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R585">585</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R586">586</a></span>
<span class="diff-line-number-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R587">587</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R588">588</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R589">589</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/3b2c6b86afa7536140057d9efc56ad1ed1febed2#L0R590">590</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">@@ -82,9 +82,18 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">scan_info_build(grn_ctx *ctx, grn_obj *expr, int *n,</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_expr_code *c, *ce;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_expr *e = (grn_expr *)expr;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrb_state *mrb = ctx->impl->mrb.state;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_value mrb_expr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_value mrb_var;</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrb_value mrb_si;</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">- if (!(var = grn_expr_get_var_by_offset(ctx, expr, 0))) { return NULL; }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_expr = grn_mrb_value_from_grn_obj(mrb, expr);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_var = mrb_funcall(mrb, mrb_expr,</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ "get_var_by_offset", 1, mrb_fixnum_value(0));</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ if (mrb_nil_p(mrb_var)) {</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return NULL;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ }</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ var = mrb_cptr(mrb_var);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> for (stat = SCAN_START, c = e->codes, ce = &e->codes[e->codes_curr]; c < ce; c++) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> switch (c->op) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> case GRN_OP_MATCH :</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -507,6 +516,21 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">mrb_grn_expression_codes(mrb_state *mrb, mrb_value self)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> return mrb_codes;</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-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+static mrb_value</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+mrb_grn_expression_get_var_by_offset(mrb_state *mrb, mrb_value self)</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+{</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_ctx *ctx = (grn_ctx *)mrb->ud;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_obj *expr;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_int offset;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ grn_obj *var;</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_get_args(mrb, "i", &offset);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ expr = DATA_PTR(self);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ var = grn_expr_get_var_by_offset(ctx, expr, offset);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ return grn_mrb_value_from_grn_obj(mrb, var);</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+}</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> void</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_mrb_expr_init(grn_ctx *ctx)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -559,6 +583,8 @@ <span class="diff-context" style="background-color: #ffffaa; color: #000000">grn_mrb_expr_init(grn_ctx *ctx)</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrb_grn_expression_initialize, MRB_ARGS_REQ(1));</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrb_define_method(mrb, klass, "codes",</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> mrb_grn_expression_codes, MRB_ARGS_NONE());</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_define_method(mrb, klass, "get_var_by_offset",</span>
<span class="diff-added" style="background-color: #aaffaa; color: #000000; display: block; white-space: pre">+ mrb_grn_expression_get_var_by_offset, MRB_ARGS_REQ(1));</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_mrb_load(ctx, "expression.rb");</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_mrb_load(ctx, "scan_info.rb");</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</body>
</html>