]> git.proxmox.com Git - mirror_edk2.git/blobdiff - StdLib/Include/Arm/machine/ansi.h
StdLib: Add multi-byte character support. The normal "narrow" character set is now...
[mirror_edk2.git] / StdLib / Include / Arm / machine / ansi.h
index 4c9e65a3bc2e1b8a7f0ea2beede5bd7b77117bbd..8273905cd362c2d2d51a3789e0255a6bcd256a91 100644 (file)
@@ -1,6 +1,15 @@
-/*  $NetBSD: ansi.h,v 1.7 2006/10/04 13:51:59 tnozaki Exp $ */\r
+/** @file\r
+    Machine dependent ANSI type definitions.\r
+\r
+    Copyright (c) 2010-2012, Intel Corporation. All rights reserved.<BR>\r
+    This program and the accompanying materials are licensed and made available\r
+    under the terms and conditions of the BSD License that accompanies this\r
+    distribution.  The full text of the license may be found at\r
+    http://opensource.org/licenses/bsd-license.php.\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
  * Copyright (c) 1990, 1993\r
  *  The Regents of the University of California.  All rights reserved.\r
  *\r
@@ -29,8 +38,8 @@
  * SUCH DAMAGE.\r
  *\r
  *  from: @(#)ansi.h  8.2 (Berkeley) 1/4/94\r
- */\r
-\r
+    NetBSD: ansi.h,v 1.7 2006/10/04 13:51:59 tnozaki Exp\r
+**/\r
 #ifndef _ANSI_H_\r
 #define _ANSI_H_\r
 \r
  * mbstate_t is an opaque object to keep conversion state, during multibyte\r
  * stream conversions.  The content must not be referenced by user programs.\r
  */\r
-typedef union {\r
-  __int64_t __mbstateL; /* for alignment */\r
-  char __mbstate8[128];\r
+typedef struct {\r
+  UINT32  A;      // Np;\r
+  UINT32  B;      // U;\r
+  UINT32  E;      // L\r
+  UINT8   C[4];   // n[4]\r
+  UINT16  D[2];   // w[2]\r
 } __mbstate_t;\r
 #define _BSD_MBSTATE_T_   __mbstate_t /* mbstate_t */\r
 \r