qpc/ports/lint/stdbool.h

28 lines
665 B
C
Raw Normal View History

2014-04-06 11:43:13 -04:00
/**
2015-04-28 13:45:35 -04:00
* @file
* @brief Boolean type and constansts. WG14/N843 C99 Standard, Section 7.16
2014-04-06 11:43:13 -04:00
*
2015-04-28 13:45:35 -04:00
* @description
2014-04-06 11:43:13 -04:00
* This header is part of the ANSI C99 standard library to define the
* standard Boolean type as well as the 'true' and 'false' constansts.
*/
#ifndef stdbool_h
#define stdbool_h
2015-04-28 13:45:35 -04:00
/*lint -save -e960 MISRA-C:2004 19.4, Disallowed definition of 'bool' */
2014-04-06 11:43:13 -04:00
#ifndef __cplusplus
2015-04-28 13:45:35 -04:00
typedef int bool; /*!< standard Boolean data type */
#define true ((bool)1) /*!< standard 'true' constant */
#define false ((bool)0) /*!< standard 'false' constant */
2014-04-06 11:43:13 -04:00
#endif /* !__cplusplus */
#define __bool_true_false_are_defined 1
/*lint -restore */
2015-04-28 13:45:35 -04:00
#endif /* stdbool_h */
2014-04-06 11:43:13 -04:00