<html><head><meta http-equiv="Content-Type" content="text/html charset=utf-8"></head><body style="word-wrap: break-word; -webkit-nbsp-mode: space; -webkit-line-break: after-white-space;" class="">util.cでgrn_boolを返している<div class=""><blockquote type="cite" class=""><div class=""><div class="diff-section" style="clear: both;"><table class="" style="border-collapse: collapse; border: 1px solid rgb(170, 170, 170);"><tbody class=""><tr class=""><td class="diff-content" style="border: 1px solid rgb(170, 170, 170);"><pre class="" style="border: 0px; font-family: Consolas, Menlo, 'Liberation Mono', Courier, monospace; line-height: 1.2; margin-top: 0px; margin-bottom: 0px; padding: 0.5em; white-space: normal; width: auto;"><span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+ return stat(path, &status) == 0;</span></pre></td></tr></tbody></table></div></div></blockquote><div class=""><br class=""></div></div><div class="">のに、<div class=""><blockquote type="cite" class=""><div class=""><div class="diff-section" style="clear: both;"><table class="" style="border-collapse: collapse; border: 1px solid rgb(170, 170, 170);"><tbody class=""><tr class=""><td class="diff-content" style="border: 1px solid rgb(170, 170, 170);"><pre class="" style="border: 0px; font-family: Consolas, Menlo, 'Liberation Mono', Courier, monospace; line-height: 1.2; margin-top: 0px; margin-bottom: 0px; padding: 0.5em; white-space: normal; width: auto;"><span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+ if (<span class="diff-added-word" style="background-color: rgb(166, 243, 166);">grn_path_exi</span>st(conf_path) == 0) {</span></pre></td></tr></tbody></table></div></div></blockquote><div class=""><br class=""></div><div class="">ともう一度真偽値比較をしているのが無駄に見えてしまったんですけど、Groongaのgrn_boolにはこのような制約があるのでしょうか?</div><div class=""><br class=""></div><div><blockquote type="cite" class=""><div class="">2015/10/17 21:06、Kouhei Sutou <<a href="mailto:null+****@clear*****" class="">null+****@clear*****</a>> のメール:</div><br class="Apple-interchange-newline"><div class="">
<div class="">
<dl style="line-height: 1.5; margin-left: 2em" class="">
<dt style="clear: both; float: left; font-weight: bold; width: 8em" class="">Author</dt>
<dd style="margin-left: 8.5em" class="">Kouhei Sutou <<a href="mailto:kou****@clear*****" class="">kou****@clear*****</a>></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em" class="">Date</dt>
<dd style="margin-left: 8.5em" class="">2015-10-17 21:06:55 +0900 (Sat, 17 Oct 2015)</dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em" class="">New Revision</dt>
<dd style="margin-left: 8.5em" class=""><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257" class="">744e1ac4ef45f79957aef079218347debd336257</a></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em" class="">Message</dt>
<dd style="margin-left: 8.5em" class=""><pre style="border: 1px solid #aaa; font-family: Consolas, Menlo, "Liberation Mono", Courier, monospace; line-height: 1.2; padding: 0.5em; width: auto" class="">windows: avoid "stat" name conflict</pre></dd>
<dt style="clear: both; float: left; font-weight: bold; width: 8em" class="">Modified files</dt>
<dd style="margin-left: 8.5em" class="">
<ul class="">
<li class=""><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863" class="">lib/db.c</a></li>
<li class=""><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10" class="">lib/grn_util.h</a></li>
<li class=""><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05" class="">lib/util.c</a></li>
</ul>
</dd>
</dl>
<div class="diff-section" style="clear: both">
<table style="border-collapse: collapse; border: 1px solid #aaa" class="">
<thead class="">
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3" class="">
<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" class=""><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/db.c (+1 -3)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody class="">
<tr class="">
<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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L32" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L33" class="">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L34" class="">34</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L35" class="">35</a></span>
<span class="diff-line-number-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L36" class="">36</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L37" class="">37</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L38" class="">38</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L39" class="">39</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L202" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L203" class="">203</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L204" class="">204</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L205" class="">205</a></span>
<span class="diff-line-number-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L206" class="">206</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L207" class="">207</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L208" class="">208</a></span>
<span class="diff-line-number-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L209" class="">209</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/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L210" class="">210</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L211" class="">211</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863L212" class="">212</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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R32" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R33" class="">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R34" class="">34</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R35" class="">35</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/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R36" class="">36</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R37" class="">37</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R38" class="">38</a></span>
<span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R201" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R202" class="">202</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R203" class="">203</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R204" class="">204</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/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R205" class="">205</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R206" class="">206</a></span>
<span class="diff-line-number-nothing" style="display: block; white-space: pre"> </span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R207" class="">207</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R208" class="">208</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R209" class="">209</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-f96f0bc0782547730f4a2616bfb33863R210" class="">210</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" class=""><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -33,7 +33,6 @@</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include "grn_report.h"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include "grn_util.h"</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #include <string.h></span>
<span class="diff-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;">-#include <sys/stat.h></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> typedef struct {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_id id;</span>
<span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -203,10 +202,9 @@ <span class="diff-context" style="background-color: rgb(255, 255, 170);">static grn_bool</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_db_conf_open(grn_ctx *ctx, grn_db *s, const char *path)</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> char conf_path[PATH_MAX];</span>
<span class="diff-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;">- struct stat status;</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_snprintf(conf_path, PATH_MAX, PATH_MAX, GRN_DB_CONF_PATH_FORMAT, path);</span>
<span class="diff-deleted" style="background-color: rgb(255, 221, 221); display: block; white-space: pre;">- if (<span class="diff-deleted-word" style="background-color: rgb(248, 203, 203);">st</span>at(conf_path<span class="diff-deleted-word" style="background-color: rgb(248, 203, 203);">, &status</span>) == 0) {</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+ if (<span class="diff-added-word" style="background-color: rgb(166, 243, 166);">grn_path_exi</span>st(conf_path) == 0) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> s->conf = grn_hash_open(ctx, conf_path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> if (!s->conf) {</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> ERR(GRN_NO_MEMORY_AVAILABLE,</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa" class="">
<thead class="">
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3" class="">
<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" class=""><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/grn_util.h (+1 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody class="">
<tr class="">
<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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L28" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L29" class="">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L30" class="">30</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L31" class="">31</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/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L32" class="">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L33" class="">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10L34" class="">34</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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R28" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R29" class="">29</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R30" class="">30</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R31" class="">31</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R32" class="">32</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R33" class="">33</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R34" class="">34</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-194099c8faa0eac90936109500424f10R35" class="">35</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" class=""><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -29,6 +29,7 @@ <span class="diff-context" style="background-color: rgb(255, 255, 170);">GRN_API grn_rc grn_normalize_offset_and_limit(grn_ctx *ctx, int size, int *offse</span></span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_API char *grn_path_separator_to_system(char *dest, char *groonga_path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> int grn_mkstemp(char *path_template);</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+grn_bool grn_path_exist(const char *path);</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #ifdef WIN32</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> GRN_API UINT grn_windows_encoding_to_code_page(grn_encoding encoding);</span>
</pre>
</td>
</tr>
</tbody>
</table>
<table style="border-collapse: collapse; border: 1px solid #aaa" class="">
<thead class="">
<tr class="diff-header" style="border: 1px solid #aaa">
<td colspan="3" class="">
<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" class=""><span class="diff-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre"> Modified: lib/util.c (+7 -0)</span>
<span class="diff-header-mark" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">===================================================================</span>
</pre>
</td>
</tr>
</thead>
<tbody class="">
<tr class="">
<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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1354" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1355" class="">1355</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1356" class="">1356</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1357" class="">1357</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-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1358" class="">1358</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1359" class="">1359</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05L1360" class="">1360</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" class=""><span class="diff-line-number-hunk-header" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1354" class="">...</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1355" class="">1355</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1356" class="">1356</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1357" class="">1357</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1358" class="">1358</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1359" class="">1359</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1360" class="">1360</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1361" class="">1361</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1362" class="">1362</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1363" class="">1363</a></span>
<span class="diff-line-number-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1364" class="">1364</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1365" class="">1365</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1366" class="">1366</a></span>
<span class="diff-line-number-not-changed" style="display: block; white-space: pre"><a href="https://github.com/groonga/groonga/commit/744e1ac4ef45f79957aef079218347debd336257#diff-b20167ebdf308e1fa85d8efe5e670b05R1367" class="">1367</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" class=""><span class="diff-hunk-header" style="background-color: #eaf2f5; color: #999999; display: block; white-space: pre">@@ -1355,6 +1355,13 @@ <span class="diff-context" style="background-color: rgb(255, 255, 170);">grn_mkstemp(char *path_template)</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"> #endif /* WIN32 */</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> </span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+grn_bool</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+grn_path_exist(const char *path)</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+{</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+ struct stat status;</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+ return stat(path, &status) == 0;</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+}</span>
<span class="diff-added" style="background-color: rgb(219, 255, 219); display: block; white-space: pre;">+</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> #ifdef WIN32</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> UINT</span>
<span class="diff-not-changed" style="display: block; white-space: pre"> grn_windows_encoding_to_code_page(grn_encoding encoding)</span>
</pre>
</td>
</tr>
</tbody>
</table>
</div>
</div>
_______________________________________________<br class="">Groonga-commit mailing list<br class=""><a href="mailto:Groon****@lists*****" class="">Groon****@lists*****</a><br class="">http://lists.osdn.me/mailman/listinfo/groonga-commit<br class=""></div></blockquote></div><br class=""></div></div></body></html>