X-Git-Url: https://git.danieliu.xyz/?a=blobdiff_plain;f=include%2Fcommon.h;h=a67a0beae7cb902f8808f056bdd9e8892c9d9925;hb=354cf2e07ccd0d7900f96bffc279093997cbe203;hp=1e4c07a1af9340a0ba7b7cc67ff88b6d217f2768;hpb=bdd26d4dde3b3d3180619cc81622081025ca6cb5;p=smdp.git diff --git a/include/common.h b/include/common.h index 1e4c07a..a67a0be 100644 --- a/include/common.h +++ b/include/common.h @@ -3,7 +3,7 @@ /* * Common macros. - * Copyright (C) 2014 Michael Goehler + * Copyright (C) 2018 Michael Goehler * * This file is part of mdp. * @@ -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