diff --git a/src/hb-machinery.hh b/src/hb-machinery.hh index ccd66d1a816b86a2f687072d797eb24761e5a5ab..acd3aeddd3ac34e6483558c9c9e96b3362142f15 100644 --- a/src/hb-machinery.hh +++ b/src/hb-machinery.hh @@ -123,12 +123,6 @@ static inline Type& StructAfter(TObject &X) inline unsigned int get_size (void) const { return (size - (array).min_size + (array).get_size ()); } \ DEFINE_SIZE_ARRAY(size, array) -#define DEFINE_SIZE_ARRAY2(size, array1, array2) \ - DEFINE_INSTANCE_ASSERTION (alignof (*this) == 1 && \ - sizeof (*this) == (size) + sizeof (this->array1[0]) + sizeof (this->array2[0])); \ - DEFINE_COMPILES_ASSERTION ((void) (array1)[0].static_size; (void) (array2)[0].static_size) \ - static const unsigned int min_size = (size) - /* * Dispatch diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 55b05b5136db54f562e52d3b5b0c1cad21c43ffc..46c2f182d699cdd3edda4fd2cf2288dcd872f146 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -802,11 +802,11 @@ struct Lookup HBUINT16 lookupFlag; /* Lookup qualifiers */ ArrayOf subTable; /* Array of SubTables */ - HBUINT16 markFilteringSetX[VAR]; /* Index (base 0) into GDEF mark glyph sets +/*HBUINT16 markFilteringSetX[VAR];*//* Index (base 0) into GDEF mark glyph sets * structure. This field is only present if bit * UseMarkFilteringSet of lookup flags is set. */ public: - DEFINE_SIZE_ARRAY2 (6, subTable, markFilteringSetX); + DEFINE_SIZE_ARRAY (6, subTable); }; typedef OffsetListOf LookupList; @@ -1568,9 +1568,9 @@ struct VarData HBUINT16 itemCount; HBUINT16 shortCount; ArrayOf regionIndices; - UnsizedArrayOfbytesX; +/*UnsizedArrayOfbytesX;*/ public: - DEFINE_SIZE_ARRAY2 (6, regionIndices, bytesX); + DEFINE_SIZE_ARRAY (6, regionIndices); }; struct VariationStore diff --git a/src/hb-ot-post-table.hh b/src/hb-ot-post-table.hh index f80303cc8babe663976bc4b45ca6580bc4c7f094..98df3e7801c6e0aa15c5042d9338ba35aa4dd1f9 100644 --- a/src/hb-ot-post-table.hh +++ b/src/hb-ot-post-table.hh @@ -61,12 +61,12 @@ struct postV2Tail ArrayOf glyphNameIndex; /* This is not an offset, but is the * ordinal number of the glyph in 'post' * string tables. */ - UnsizedArrayOf - namesX; /* Glyph names with length bytes [variable] +/*UnsizedArrayOf + namesX;*/ /* Glyph names with length bytes [variable] * (a Pascal string). */ public: - DEFINE_SIZE_ARRAY2 (2, glyphNameIndex, namesX); + DEFINE_SIZE_ARRAY (2, glyphNameIndex); }; struct post