Remove OUT_GLYPH() and OUT_INFO() macros
authorBehdad Esfahbod <behdad@behdad.org>
Sat, 15 May 2010 00:17:50 +0000 (20:17 -0400)
committerBehdad Esfahbod <behdad@behdad.org>
Sat, 15 May 2010 00:17:50 +0000 (20:17 -0400)
src/hb-buffer-private.hh
src/hb-ot-layout-gsubgpos-private.hh

index 6d2eec0..42d2476 100644 (file)
@@ -165,8 +165,6 @@ struct _hb_buffer_t {
 #define IN_CLUSTER(pos)                (BUFFER->in_string[(pos)].cluster)
 #define IN_LIGID(pos)          (BUFFER->in_string[(pos)].lig_id)
 #define IN_COMPONENT(pos)      (BUFFER->in_string[(pos)].component)
-#define OUT_GLYPH(pos)         (BUFFER->out_string[(pos)].codepoint)
-#define OUT_INFO(pos)          (&BUFFER->out_string[(pos)])
 
 HB_END_DECLS
 
index 8f33988..d8aa252 100644 (file)
@@ -126,14 +126,14 @@ static inline bool match_backtrack (hb_apply_context_t *c,
 
   for (unsigned int i = 0, j = c->buffer->out_pos - 1; i < count; i++, j--)
   {
-    while (_hb_ot_layout_skip_mark (c->layout->face, OUT_INFO (j), c->lookup_flag, NULL))
+    while (_hb_ot_layout_skip_mark (c->layout->face, &c->buffer->out_string[j], c->lookup_flag, NULL))
     {
       if (unlikely (j + 1 == count - i))
        return false;
       j--;
     }
 
-    if (likely (!match_func (OUT_GLYPH (j), backtrack[i], match_data)))
+    if (likely (!match_func (c->buffer->out_string[j].codepoint, backtrack[i], match_data)))
       return false;
   }