Types.h 868 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455
  1. /*++
  2. Copyright (c) 1999 - 2014, Intel Corporation. All rights reserved
  3. SPDX-License-Identifier: BSD-2-Clause-Patent
  4. Module Name:
  5. Types.h
  6. Abstract:
  7. This file include all the external data types.
  8. --*/
  9. #ifndef _TYPES_H_
  10. #define _TYPES_H_
  11. //
  12. // Modifiers to abstract standard types to aid in debug of problems
  13. //
  14. #define CONST const
  15. #define STATIC static
  16. #define VOID void
  17. #define VOLATILE volatile
  18. //
  19. // Constants. They may exist in other build structures, so #ifndef them.
  20. //
  21. #ifndef TRUE
  22. #define TRUE ((BOOLEAN) 1 == 1)
  23. #endif
  24. #ifndef FALSE
  25. #define FALSE ((BOOLEAN) 0 == 1)
  26. #endif
  27. #ifndef NULL
  28. #define NULL ((VOID *) 0)
  29. #endif
  30. typedef UINT32 STATUS;
  31. #define SUCCESS 0
  32. #define FAILURE 0xFFFFFFFF
  33. #ifndef MRC_DEADLOOP
  34. #define MRC_DEADLOOP() while (TRUE)
  35. #endif
  36. #endif