]> git.saurik.com Git - apple/icu.git/blobdiff - icuSources/test/letest/sfnt.h
ICU-59117.0.1.tar.gz
[apple/icu.git] / icuSources / test / letest / sfnt.h
index f83f9212e351efd505af9a0d480a2cef5ff75012..140e09484051b8615eaae7445cca52a9b2e60127 100644 (file)
@@ -1,6 +1,8 @@
+// © 2016 and later: Unicode, Inc. and others.
+// License & terms of use: http://www.unicode.org/copyright.html
 /***************************************************************************
 *
-*   Copyright (C) 1998-2008, International Business Machines
+*   Copyright (C) 1998-2013, International Business Machines
 *   Corporation and others.  All Rights Reserved.
 *
 ************************************************************************/
@@ -8,7 +10,7 @@
 #ifndef __SFNT_H
 #define __SFNT_H
 
-#include "LETypes.h"
+#include "layout/LETypes.h"
 
 U_NAMESPACE_USE
 
@@ -24,7 +26,7 @@ struct DirectoryEntry
     le_uint32   length;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct DirectoryEntry DirectoryEntry;
 #endif
 
@@ -38,7 +40,7 @@ struct SFNTDirectory
     DirectoryEntry  tableDirectory[ANY_NUMBER];
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct SFNTDirectory SFNTDirectory;
 #endif
 
@@ -50,7 +52,7 @@ struct CMAPEncodingSubtableHeader
     le_uint32   encodingOffset;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPEncodingSubtableHeader CMAPEncodingSubtableHeader;
 #endif
 
@@ -61,7 +63,7 @@ struct CMAPTable
     CMAPEncodingSubtableHeader encodingSubtableHeaders[ANY_NUMBER];
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPTable CMAPTable;
 #endif
 
@@ -72,11 +74,11 @@ struct CMAPEncodingSubtable
     le_uint16   language;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPEncodingSubtable CMAPEncodingSubtable;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat0Encoding : CMAPEncodingSubtable
 {
     le_uint8    glyphIndexArray[256];
@@ -100,11 +102,11 @@ struct CMAPFormat2Subheader
     le_uint16   idRangeOffset;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPFormat2Subheader CMAPFormat2Subheader;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat2Encoding : CMAPEncodingSubtable
 {
     le_uint16  subHeadKeys[256];
@@ -122,7 +124,7 @@ struct CMAPFormat2Encoding
 typedef struct CMAPFormat2Encoding CMAPFormat2Encoding;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat4Encoding : CMAPEncodingSubtable
 {
     le_uint16   segCountX2;
@@ -160,7 +162,7 @@ struct CMAPFormat4Encoding
 typedef struct CMAPFormat4Encoding CMAPFormat4Encoding;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat6Encoding : CMAPEncodingSubtable
 {
     le_uint16   firstCode;
@@ -187,7 +189,7 @@ struct CMAPEncodingSubtable32
     le_uint32   language;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPEncodingSubtable32 CMAPEncodingSubtable32;
 #endif
 
@@ -198,11 +200,11 @@ struct CMAPGroup
     le_uint32   startGlyphCode;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct CMAPGroup CMAPGroup;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat8Encoding : CMAPEncodingSubtable32
 {
     le_uint32   is32[65536/32];
@@ -222,7 +224,7 @@ struct CMAPFormat8Encoding
 typedef struct CMAPFormat8Encoding CMAPFormat8Encoding;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat10Encoding : CMAPEncodingSubtable32
 {
     le_uint32   startCharCode;
@@ -242,7 +244,7 @@ struct CMAPFormat10Encoding
 typedef struct CMAPFormat10Encoding CMAPFormat10Encoding;
 #endif
 
-#ifdef XP_CPLUSPLUS
+#ifdef __cplusplus
 struct CMAPFormat12Encoding : CMAPEncodingSubtable32
 {
     le_uint32   nGroups;
@@ -268,7 +270,7 @@ struct BigDate
     le_uint32   ad;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct BigDate BigDate;
 #endif
 
@@ -292,7 +294,7 @@ struct HEADTable
     le_int16    glyphDataFormat;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct HEADTable HEADTable;
 #endif
 
@@ -315,7 +317,7 @@ struct MAXPTable
     le_uint16   maxComponentDepth;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct MAXPTable MAXPTable;
 #endif
 
@@ -340,7 +342,7 @@ struct HHEATable
     le_uint16   numOfLongHorMetrics;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct HHEATable HHEATable;
 #endif
 
@@ -350,7 +352,7 @@ struct LongHorMetric
     le_int16    leftSideBearing;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct LongHorMetric LongHorMetric;
 #endif
 
@@ -360,7 +362,7 @@ struct HMTXTable
 /* le_int16        leftSideBearing[ANY_NUMBER];  ANY_NUMBER = numGlyphs - numOfLongHorMetrics     */
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct HMTXTable HMTXTable;
 #endif
 
@@ -429,7 +431,7 @@ struct NameRecord
     le_uint16 offset;
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct NameRecord NameRecord;
 #endif
 
@@ -441,7 +443,7 @@ struct NAMETable
     NameRecord nameRecords[ANY_NUMBER];
 };
 
-#ifndef XP_CPLUSPLUS
+#ifndef __cplusplus
 typedef struct NAMETable NAMETable;
 #endif