[HB] Remove ASSERT_SIZE_DATA
authorBehdad Esfahbod <behdad@behdad.org>
Tue, 20 Apr 2010 19:25:27 +0000 (15:25 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Tue, 20 Apr 2010 19:25:27 +0000 (15:25 -0400)
pango/opentype/hb-open-type-private.hh
pango/opentype/hb-ot-layout-common-private.hh

index 98d46bd..e146a2d 100644 (file)
@@ -84,10 +84,6 @@ struct Null <Type> \
 #define Null(Type) (Null<Type>::get())
 
 
-#define ASSERT_SIZE_DATA(Type, size, data) \
-  ASSERT_SIZE (Type, size); \
-  DEFINE_NULL_DATA (Type, size, data)
-
 /* get_for_data() is a static class method returning a reference to an
  * instance of Type located at the input data location.  It's just a
  * fancy, NULL-safe, cast! */
index aff1468..0c0a768 100644 (file)
@@ -171,7 +171,8 @@ struct LangSys
                                 * = 0xFFFF */
   IndexArray   featureIndex;   /* Array of indices into the FeatureList */
 };
-ASSERT_SIZE_DATA (LangSys, 6, "\0\0\xFF\xFF");
+ASSERT_SIZE (LangSys, 6);
+DEFINE_NULL_DATA (LangSys, 6, "\0\0\xFF\xFF");
 
 
 struct Script
@@ -372,7 +373,8 @@ struct CoverageRangeRecord
   USHORT       startCoverageIndex;     /* Coverage Index of first GlyphID in
                                         * range */
 };
-ASSERT_SIZE_DATA (CoverageRangeRecord, 6, "\000\001");
+ASSERT_SIZE (CoverageRangeRecord, 6);
+DEFINE_NULL_DATA (CoverageRangeRecord, 6, "\000\001");
 
 struct CoverageFormat2
 {
@@ -491,7 +493,8 @@ struct ClassRangeRecord
   GlyphID      end;            /* Last GlyphID in the range */
   USHORT       classValue;     /* Applied to all glyphs in the range */
 };
-ASSERT_SIZE_DATA (ClassRangeRecord, 6, "\000\001");
+ASSERT_SIZE (ClassRangeRecord, 6);
+DEFINE_NULL_DATA (ClassRangeRecord, 6, "\000\001");
 
 struct ClassDefFormat2
 {