From: FreeBirdLjj Date: Sat, 4 Oct 2014 16:38:22 +0000 (+0800) Subject: Add comment for bool. X-Git-Url: https://git.danieliu.xyz/?a=commitdiff_plain;h=3da2b28947bb0db3cda5a090ca6d641975a09846;p=smdp.git Add comment for bool. --- diff --git a/include/common.h b/include/common.h index 1e4c07a..6ac756a 100644 --- a/include/common.h +++ b/include/common.h @@ -21,6 +21,8 @@ * along with this program. If not, see . * * + * 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