Name: MILKRIBS4k 2009-06-23 7:30
Do you? What's wrong with simple one and zero?
#define true 0
#define false 1
#define true 1
int x = 10;
if(x == true){
//am i the only one who sees the problem here?
}
nano and true and emacs. Real C.
#include <stdbool.h>TRUE values, but the single calling function expects them to be differentiable by return value alone), which would need either changing each 1 for another number or using TRUE in the first place and simply redefineing that.
stdbool.h is bloat. I cannot imagine any things other than the two truth values that could be defined, and I cannot imagine a librrry defining just two constants, so there must be more useless bloat in there.
#ifndef _STDBOOL_H
#define _STDBOOL_H
/* believe it or not but the Single Unix Specification actually
* specifies this header, see
* http://www.opengroup.org/onlinepubs/007904975/basedefs/stdbool.h.html */
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif
/* believe it or not but the Single Unix Specification actually/* $MirOS: src/include/stdbool.h,v 1.2 2007/09/21 10:43:36 tg Exp $ */
#ifndef _STDBOOL_H_
#define _STDBOOL_H_
#define bool _Bool
#define true 1
#define false 0
#define __bool_true_false_are_defined 1
#endif
_Bool. and no support for sepples, but sepplesfags should be used to not getting all the cool C features so that's ok.
#define true false
#define false true