Refactoring with bidi_fetch_char tested and debugged.
authorEli Zaretskii <eliz@gnu.org>
Sat, 14 May 2011 11:59:20 +0000 (14:59 +0300)
committerEli Zaretskii <eliz@gnu.org>
Sat, 14 May 2011 11:59:20 +0000 (14:59 +0300)
commit102ebb00791ec617cfff4b1e351bc32bf8d71a9f
tree66b908c5de99f3bfbcbf84c0fe28cd2b43b9d480
parent182ce2d254ed316239b8deab8adac05c3dbe0149
Refactoring with bidi_fetch_char tested and debugged.

 src/bidi.c (bidi_fetch_char): Accept also character position
 corresponding to BYTEPOS.  All callers changed.
 (bidi_cache_iterator_state, bidi_resolve_explicit_1)
 (bidi_resolve_explicit, bidi_resolve_weak)
 (bidi_level_of_next_char, bidi_move_to_visually_next): Abort if
 bidi_it->nchars is non-positive.
 (bidi_level_of_next_char): Don't try to lookup the cache for the
 next/previous character if nothing is cached there yet, or if we
 were just reseat()'ed to a new position.
 (bidi_paragraph_init, bidi_resolve_explicit_1)
 (bidi_level_of_next_char): Fix arguments in the calls to
 bidi_fetch_char.
src/ChangeLog
src/bidi.c
src/xdisp.c