ECC Clean up.

git-svn-id: https://edk2.svn.sourceforge.net/svnroot/edk2/trunk/edk2@6206 6f19259b-4bc3-4df7-8a09-765794883524
This commit is contained in:
vanjeff 2008-10-24 04:30:32 +00:00
parent 43025b293f
commit 67e66cd55c
5 changed files with 4 additions and 27 deletions

View File

@ -57,34 +57,18 @@ struct _LIST_ENTRY {
// Modifiers for Data Types used to self document code. // Modifiers for Data Types used to self document code.
// This concept is borrowed for UEFI specification. // This concept is borrowed for UEFI specification.
// //
#ifndef IN
//
// Some other envirnments use this construct, so #ifndef to prevent
// mulitple definition.
//
#define IN #define IN
#define OUT #define OUT
#define OPTIONAL #define OPTIONAL
#endif
//
// Constants. They may exist in other build structures, so #ifndef them.
//
#ifndef TRUE
// //
// UEFI specification claims 1 and 0. We are concerned about the // UEFI specification claims 1 and 0. We are concerned about the
// complier portability so we did it this way. // complier portability so we did it this way.
// //
#define TRUE ((BOOLEAN)(1==1)) #define TRUE ((BOOLEAN)(1==1))
#endif
#ifndef FALSE
#define FALSE ((BOOLEAN)(0==1)) #define FALSE ((BOOLEAN)(0==1))
#endif
#ifndef NULL
#define NULL ((VOID *) 0) #define NULL ((VOID *) 0)
#endif
#define BIT0 0x00000001 #define BIT0 0x00000001
#define BIT1 0x00000002 #define BIT1 0x00000002
@ -196,15 +180,11 @@ struct _LIST_ENTRY {
// //
// Also support coding convention rules for var arg macros // Also support coding convention rules for var arg macros
// //
#ifndef VA_START
typedef CHAR8 *VA_LIST; typedef CHAR8 *VA_LIST;
#define VA_START(ap, v) (ap = (VA_LIST) & (v) + _INT_SIZE_OF (v)) #define VA_START(ap, v) (ap = (VA_LIST) & (v) + _INT_SIZE_OF (v))
#define VA_ARG(ap, t) (*(t *) ((ap += _INT_SIZE_OF (t)) - _INT_SIZE_OF (t))) #define VA_ARG(ap, t) (*(t *) ((ap += _INT_SIZE_OF (t)) - _INT_SIZE_OF (t)))
#define VA_END(ap) (ap = (VA_LIST) 0) #define VA_END(ap) (ap = (VA_LIST) 0)
#endif
// //
// Macro that returns the byte offset of a field in a data structure. // Macro that returns the byte offset of a field in a data structure.
// //

View File

@ -11,8 +11,8 @@
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
**/ **/
#ifndef _ALERT_STANDARD_FORMAT_TABLE_H #ifndef _ALERT_STANDARD_FORMAT_TABLE_H_
#define _ALERT_STANDARD_FORMAT_TABLE_H #define _ALERT_STANDARD_FORMAT_TABLE_H_
#include <IndustryStandard/Acpi.h> #include <IndustryStandard/Acpi.h>

View File

@ -10,7 +10,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
--*/ **/
#ifndef _ELTORITO_H_ #ifndef _ELTORITO_H_
#define _ELTORITO_H_ #define _ELTORITO_H_

View File

@ -10,7 +10,7 @@ http://opensource.org/licenses/bsd-license.php
THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS, THE PROGRAM IS DISTRIBUTED UNDER THE BSD LICENSE ON AN "AS IS" BASIS,
WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED. WITHOUT WARRANTIES OR REPRESENTATIONS OF ANY KIND, EITHER EXPRESS OR IMPLIED.
--*/ **/
#ifndef _MBR_H_ #ifndef _MBR_H_
#define _MBR_H_ #define _MBR_H_

View File

@ -1121,9 +1121,6 @@ typedef struct tdTPM_AUDIT_EVENT_OUT {
// //
// Part 2, section 16: Return Codes // Part 2, section 16: Return Codes
// //
#ifndef TPM_BASE
#error "TPM Error Codes require definition of TPM_BASE"
#endif
#define TPM_VENDOR_ERROR TPM_Vendor_Specific32 #define TPM_VENDOR_ERROR TPM_Vendor_Specific32
#define TPM_NON_FATAL 0x00000800 #define TPM_NON_FATAL 0x00000800