aboutsummaryrefslogtreecommitdiffstats
path: root/src/bytecode.c
diff options
context:
space:
mode:
authorEli Zaretskii2011-05-14 14:59:20 +0300
committerEli Zaretskii2011-05-14 14:59:20 +0300
commit102ebb00791ec617cfff4b1e351bc32bf8d71a9f (patch)
tree66b908c5de99f3bfbcbf84c0fe28cd2b43b9d480 /src/bytecode.c
parent182ce2d254ed316239b8deab8adac05c3dbe0149 (diff)
downloademacs-102ebb00791ec617cfff4b1e351bc32bf8d71a9f.tar.gz
emacs-102ebb00791ec617cfff4b1e351bc32bf8d71a9f.zip
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.
Diffstat (limited to 'src/bytecode.c')
0 files changed, 0 insertions, 0 deletions