]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/stdbool.h
IntelFsp2(Wrapper)Pkg: Revert from e8208100 to 737f812b
[mirror_edk2.git] / StdLib / Include / stdbool.h
index 42dcd86b53a261ddb5935842c56b28d9f8ca0a5c..32088665c4a7ab2a0cecade80cf17ec03db96b52 100644 (file)
@@ -1,8 +1,12 @@
 /** @file\r
-  The header <stdbool.h> defines four macros: bool, true, false,\r
-  and __bool_true_false_are_defined.\r
+  Macros to simplify boolean expressions and operations.\r
 \r
-  The macro bool expands to _Bool.\r
+  This header is not specified by the C95 standard but is included here for\r
+  operational convenience.\r
+\r
+  The macro bool expands to _Bool, as required by the C99 specification.\r
+  This subsequently expands to BOOLEAN, is a UEFI data type which is automatically\r
+  defined correctly for the target CPU architecture.\r
 \r
   The remaining three macros are suitable for use in #if preprocessing\r
   directives. They are true, which expands to the integer constant 1,\r
   A program may undefine and perhaps then redefine the\r
   macros bool, true, and false.\r
 \r
-  Copyright (c) 2010, Intel Corporation. All rights reserved.<BR>\r
+  Copyright (c) 2010 - 2011, Intel Corporation. All rights reserved.<BR>\r
   This program and the accompanying materials are licensed and made available under\r
   the terms and conditions of the BSD License that accompanies this distribution.\r
   The full text of the license may be found at\r
-  http://opensource.org/licenses/bsd-license.php.\r
+  http://opensource.org/licenses/bsd-license.\r
 \r
   THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,\r
   WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.\r
-\r
 **/\r
 #ifndef _STDBOOL_H\r
 #define _STDBOOL_H\r
 #include  <sys/EfiCdefs.h>\r
 \r
-#define bool  _Bool\r
-#define true  1\r
-#define false 0\r
+#define bool    _Bool\r
+#define true        1\r
+#define false       0\r
 #define __bool_true_false_are_defined 1\r
 \r
 #endif    /* _STDBOOL_H */\r