]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/limits.h
edk2: Remove AppPkg, StdLib, StdLibPrivateInternalFiles
[mirror_edk2.git] / StdLib / Include / limits.h
diff --git a/StdLib/Include/limits.h b/StdLib/Include/limits.h
deleted file mode 100644 (file)
index 5da4032..0000000
+++ /dev/null
@@ -1,115 +0,0 @@
-/** @file\r
-  The header <limits.h> defines several macros that expand to various limits and\r
-  parameters of the standard integer types.\r
-\r
-  The values given below are constant expressions suitable for\r
-  use in #if preprocessing directives. Except for CHAR_BIT and\r
-  MB_LEN_MAX, they have the same\r
-  type as would an expression that is an object of the corresponding type\r
-  converted according to the integer promotions.\r
-\r
-  Copyright (c) 2010 - 2012, 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.\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
-#ifndef _LIMITS_H\r
-#define _LIMITS_H\r
-#include  <sys/EfiCdefs.h>\r
-#include  <Library/PcdLib.h>\r
-\r
-/* Get the architecturally defined limits for this compilation unit. */\r
-#include  <machine/limits.h>\r
-\r
-/* Define the values required by the ISO/IEC 9899 Specification. */\r
-\r
-/** Maximum number of bytes in a multibyte character, for any supported locale. **/\r
-#define MB_LEN_MAX  4               /* UTF-8 can require up to 4 bytes */\r
-\r
-/** Number of bits comprising the smallest object that is not a bit-field (byte). **/\r
-#define CHAR_BIT    __CHAR_BIT\r
-\r
-/** Minimum value for an object of type signed char. **/\r
-#define SCHAR_MIN   __SCHAR_MIN\r
-\r
-/** Maximum value for an object of type signed char. **/\r
-#define SCHAR_MAX   __SCHAR_MAX\r
-\r
-/** Maximum value for an object of type unsigned char. **/\r
-#define UCHAR_MAX   __UCHAR_MAX\r
-\r
-#ifdef __CHAR_UNSIGNED__\r
-  /** Maximum value for an object of type char. **/\r
-  #define CHAR_MAX  UCHAR_MAX\r
-  /** Minimum value for an object of type char. **/\r
-  #define CHAR_MIN  0\r
-#else\r
-  /** Maximum value for an object of type char. **/\r
-  #define CHAR_MAX  SCHAR_MAX\r
-  /** Minimum value for an object of type char. **/\r
-  #define CHAR_MIN  SCHAR_MIN\r
-#endif\r
-\r
-/** Minimum value for an object of type short int. **/\r
-#define SHRT_MIN    __SHRT_MIN\r
-\r
-/** Maximum value for an object of type short int. **/\r
-#define SHRT_MAX    __SHRT_MAX\r
-\r
-/** Maximum value for an object of type unsigned short int. **/\r
-#define USHRT_MAX   __USHRT_MAX\r
-\r
-/** Minimum value for an object of type int. **/\r
-#define INT_MIN     __INT_MIN\r
-\r
-/** Maximum value for an object of type int. **/\r
-#define INT_MAX     __INT_MAX\r
-\r
-/** Maximum value for an object of type unsigned int. **/\r
-#define UINT_MAX    __UINT_MAX\r
-\r
-/** Minimum value for an object of type long int. **/\r
-#define LONG_MIN    __LONG_MIN\r
-\r
-/** Maximum value for an object of type long int. **/\r
-#define LONG_MAX    __LONG_MAX\r
-\r
-/** Maximum value for an object of type unsigned long int. **/\r
-#define ULONG_MAX   __ULONG_MAX\r
-\r
-/** Minimum value for an object of type long long int. **/\r
-#define LLONG_MIN   __LLONG_MIN\r
-\r
-/** Maximum value for an object of type long long int. **/\r
-#define LLONG_MAX   __LLONG_MAX\r
-\r
-/** Maximum value for an object of type unsigned long long int. **/\r
-#define ULLONG_MAX  __ULLONG_MAX\r
-\r
-/* Object limits used in the Standard Libraries */\r
-#if (PcdGet32(PcdMaximumAsciiStringLength) > 0)\r
-  /** Maximum length of an arbitrary "narrow-character" string. **/\r
-  #define ASCII_STRING_MAX    PcdGet32(PcdMaximumAsciiStringLength)\r
-#else\r
-  /** Maximum length of an arbitrary "narrow-character" string. **/\r
-  #define ASCII_STRING_MAX    256\r
-#endif\r
-\r
-#if (PcdGet32(PcdMaximumUnicodeStringLength) > 0)\r
-  /** Maximum length of an arbitrary "wide-character" string. **/\r
-  #define UNICODE_STRING_MAX    PcdGet32(PcdMaximumUnicodeStringLength)\r
-#else\r
-  /** Maximum length of an arbitrary "wide-character" string. **/\r
-  #define UNICODE_STRING_MAX    512\r
-#endif\r
-\r
-/* Limits for BSD Compatibility */\r
-#define NL_TEXTMAX    2048\r
-\r
-#include  <sys/syslimits.h>\r
-\r
-#endif  /* _LIMITS_H */\r