null+****@clear*****
null+****@clear*****
2012年 3月 15日 (木) 17:56:58 JST
Kouhei Sutou 2012-03-15 17:56:58 +0900 (Thu, 15 Mar 2012)
New Revision: 2c932ec9e7b02ed49a9b7f610cc6111b30e4a4c1
Log:
doc coding-style: add about bool type
Modified files:
doc/source/developer/coding_style.rst
Modified: doc/source/developer/coding_style.rst (+17 -0)
===================================================================
--- doc/source/developer/coding_style.rst 2012-03-15 17:53:14 +0900 (71f783b)
+++ doc/source/developer/coding_style.rst 2012-03-15 17:56:58 +0900 (f88ce55)
@@ -404,3 +404,20 @@ voidを省略
悪い例( ``#define`` を用いている):
#define MRN_LOG_FILE_PATH "groonga.log"
+
+条件式
+------
+
+bool型を用いる
+^^^^^^^^^^^^^^
+
+真偽値には ``bool`` 型を用いる。
+
+よい例:
+
+ bool is_searching;
+
+悪い例( ``int`` 型を用いている):
+
+ int is_searching;
+