pinosaur
/
smdp.git
/ commitdiff
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47c6c9f
)
Add comment for bool.
author
FreeBirdLjj
<ljj11011@mail.ustc.edu.cn>
Sat, 4 Oct 2014 16:38:22 +0000
(
00:38
+0800)
committer
FreeBirdLjj
<ljj11011@mail.ustc.edu.cn>
Sat, 4 Oct 2014 16:38:22 +0000
(
00:38
+0800)
include/common.h
patch
|
blob
|
history
diff --git
a/include/common.h
b/include/common.h
index
1e4c07a
..
6ac756a
100644
(file)
--- a/
include/common.h
+++ b/
include/common.h
@@
-21,6
+21,8
@@
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*
*
+ * type: bool variable stores only true or false.
+ *
* macro: MAX returns the higher one of two input variables
* macro: MIN returns the lower one of two input variables
*
@@
-33,7
+35,7
@@
#if !defined( bool )
typedef enum {
false = 0,
- true
+ true
= 1
} bool;
#endif // !defined( bool )
#endif // __STDC_VERSION__ >= 199901L