[pango/harfbuzz-ng] [HB] Minor cleanup
- From: Behdad Esfahbod <behdad src gnome org>
- To: svn-commits-list gnome org
- Subject: [pango/harfbuzz-ng] [HB] Minor cleanup
- Date: Mon, 18 May 2009 05:49:57 -0400 (EDT)
commit 7641ec611671e9f8bb27d5b0f9cec79bd7ca3782
Author: Behdad Esfahbod <behdad behdad org>
Date: Mon May 18 04:17:47 2009 -0400
[HB] Minor cleanup
---
pango/opentype/hb-ot-layout-gsubgpos-private.h | 10 ++++------
1 files changed, 4 insertions(+), 6 deletions(-)
diff --git a/pango/opentype/hb-ot-layout-gsubgpos-private.h b/pango/opentype/hb-ot-layout-gsubgpos-private.h
index e3143df..f5b900f 100644
--- a/pango/opentype/hb-ot-layout-gsubgpos-private.h
+++ b/pango/opentype/hb-ot-layout-gsubgpos-private.h
@@ -164,8 +164,6 @@ static inline bool apply_lookup (LOOKUP_ARGS_DEF,
const LookupRecord lookupRecord[], /* Array of LookupRecords--in design order */
apply_lookup_func_t apply_func)
{
- unsigned int record_count = lookupCount;
- const LookupRecord *record = lookupRecord;
unsigned int end = MIN (buffer->in_length, buffer->in_pos + context_length);
if (HB_UNLIKELY (buffer->in_pos + count > end))
return false;
@@ -180,15 +178,15 @@ static inline bool apply_lookup (LOOKUP_ARGS_DEF,
_hb_buffer_next_glyph (buffer);
}
- if (record_count && i == record->sequenceIndex)
+ if (lookupCount && i == lookupRecord->sequenceIndex)
{
unsigned int old_pos = buffer->in_pos;
/* Apply a lookup */
- bool done = apply_func (LOOKUP_ARGS, record->lookupListIndex);
+ bool done = apply_func (LOOKUP_ARGS, lookupRecord->lookupListIndex);
- record++;
- record_count--;
+ lookupRecord++;
+ lookupCount--;
i += buffer->in_pos - old_pos;
if (!done)
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]