/* bool.h - Boolean definitions */ /* Copyright 1998-2010 Wind River Systems, Inc. */ /* * modification history * -------------------- * 01a,25mar98,pai written * */ #ifndef __INCBoolh #d
http://www.codebf.com/read/210394/15199564
#ifndef BOOL #define BOOL 3 enum boolean { false, true }; #endif
http://www.codebf.com/read/208615/15242217
#ifndef bool_ #define bool_ typedef int bool; const bool false = 0; const bool true = 1; #endif
http://www.codebf.com/read/201477/15407604
http://www.codebf.com/read/102178/15791870
http://www.codebf.com/read/492281/1177022
// Testcase for uses of bool. // Build don't link: int i,j,k; /* Check that types of certain expressions are bool. */ void f () { i ? j == k : true; i ? j < k : true; i ? j && k : true; } /*
http://www.codebf.com/read/470720/1447786
+++Bool size: 1
http://www.codebf.com/read/470720/1448709
+++Bool alignment: 1
http://www.codebf.com/read/470720/1449377
#include static bool bbb; int main(void) { printf ("+++Bool size:\n"); printf ("%d\n", sizeof (bbb)); return 0; }
http://www.codebf.com/read/470720/1449698
#include static bool bbb; int main(void) { printf ("+++Bool alignment:\n"); printf ("%d\n", __alignof__ (bbb)); return 0; }
http://www.codebf.com/read/470720/1449865
虫虫下载站 半导体技术网 电子研发网 源码地带 电源技术网 单片机技术网 医疗电子技术 嵌入式系统与单片机