[OT] Match struct with HB's
authorBehdad Esfahbod <behdad@behdad.org>
Sun, 2 Aug 2009 02:25:04 +0000 (22:25 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 2 Nov 2009 19:40:25 +0000 (14:40 -0500)
src/hb-buffer.c
src/hb-buffer.h
src/hb-ot-layout.cc

index a4b92d7..30ce2e8 100644 (file)
@@ -172,7 +172,7 @@ hb_buffer_add_glyph (hb_buffer_t    *buffer,
   glyph->cluster = cluster;
   glyph->component = 0;
   glyph->ligID = 0;
-  glyph->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+  glyph->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
 
   buffer->in_length++;
 }
@@ -285,7 +285,7 @@ _hb_buffer_add_output_glyphs (hb_buffer_t *buffer,
     info->cluster = cluster;
     info->component = component;
     info->ligID = ligID;
-    info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+    info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
   }
 
   buffer->in_pos  += num_in;
@@ -316,7 +316,7 @@ _hb_buffer_add_output_glyph (hb_buffer_t *buffer,
     info->component = component;
   if (ligID != 0xFFFF)
     info->ligID = ligID;
-  info->gproperty = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
+  info->internal = HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN;
 
   buffer->in_pos++;
   buffer->out_pos++;
index 26879bf..4a37cdb 100644 (file)
@@ -49,7 +49,7 @@ typedef struct _hb_glyph_info_t {
   unsigned int   cluster;
   unsigned short component;
   unsigned short ligID;
-  unsigned short gproperty;
+  unsigned int   internal;
 } hb_glyph_info_t;
 
 typedef struct _hb_glyph_position_t {
index 3ec654e..f17d028 100644 (file)
@@ -182,9 +182,9 @@ _hb_ot_layout_check_glyph_property (hb_ot_layout_t  *layout,
 {
   unsigned int property;
 
-  if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
-    ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
-  property = ginfo->gproperty;
+  if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
+    ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
+  property = ginfo->internal;
   if (property_out)
     *property_out = property;
 
@@ -221,9 +221,9 @@ _hb_ot_layout_skip_mark (hb_ot_layout_t  *layout,
 {
   unsigned int property;
 
-  if (ginfo->gproperty == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
-    ginfo->gproperty = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
-  property = ginfo->gproperty;
+  if (ginfo->internal == HB_BUFFER_GLYPH_PROPERTIES_UNKNOWN)
+    ginfo->internal = _hb_ot_layout_get_glyph_property (layout, ginfo->gindex);
+  property = ginfo->internal;
   if (property_out)
     *property_out = property;