diff options
Diffstat (limited to 'src')
| -rw-r--r-- | src/ChangeLog | 6 | ||||
| -rw-r--r-- | src/bidi.c | 7 |
2 files changed, 10 insertions, 3 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index c629598fcf7..f52e8cad479 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,9 @@ | |||
| 1 | 2011-08-24 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * bidi.c (bidi_check_type): Use xassert. | ||
| 4 | (bidi_cache_iterator_state): Update the disp_pos and disp_prop_p | ||
| 5 | members. | ||
| 6 | |||
| 1 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> | 7 | 2011-08-23 Eli Zaretskii <eliz@gnu.org> |
| 2 | 8 | ||
| 3 | * bidi.c (bidi_get_type): Abort if we get zero as the bidi type of | 9 | * bidi.c (bidi_get_type): Abort if we get zero as the bidi type of |
diff --git a/src/bidi.c b/src/bidi.c index 00aa31bf48d..425a0be9578 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -146,11 +146,10 @@ bidi_get_type (int ch, bidi_dir_t override) | |||
| 146 | } | 146 | } |
| 147 | } | 147 | } |
| 148 | 148 | ||
| 149 | static void | 149 | static inline void |
| 150 | bidi_check_type (bidi_type_t type) | 150 | bidi_check_type (bidi_type_t type) |
| 151 | { | 151 | { |
| 152 | if (type < UNKNOWN_BT || type > NEUTRAL_ON) | 152 | xassert (UNKNOWN_BT <= type && type <= NEUTRAL_ON); |
| 153 | abort (); | ||
| 154 | } | 153 | } |
| 155 | 154 | ||
| 156 | /* Given a bidi TYPE of a character, return its category. */ | 155 | /* Given a bidi TYPE of a character, return its category. */ |
| @@ -540,6 +539,8 @@ bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved) | |||
| 540 | bidi_cache[idx].next_for_neutral = bidi_it->next_for_neutral; | 539 | bidi_cache[idx].next_for_neutral = bidi_it->next_for_neutral; |
| 541 | bidi_cache[idx].next_for_ws = bidi_it->next_for_ws; | 540 | bidi_cache[idx].next_for_ws = bidi_it->next_for_ws; |
| 542 | bidi_cache[idx].ignore_bn_limit = bidi_it->ignore_bn_limit; | 541 | bidi_cache[idx].ignore_bn_limit = bidi_it->ignore_bn_limit; |
| 542 | bidi_cache[idx].disp_pos = bidi_it->disp_pos; | ||
| 543 | bidi_cache[idx].disp_prop_p = bidi_it->disp_prop_p; | ||
| 543 | } | 544 | } |
| 544 | 545 | ||
| 545 | bidi_cache_last_idx = idx; | 546 | bidi_cache_last_idx = idx; |