diff options
| author | Eli Zaretskii | 2011-06-08 21:01:56 +0300 |
|---|---|---|
| committer | Eli Zaretskii | 2011-06-08 21:01:56 +0300 |
| commit | 87e67904f15fda542426c9159c95a19142aecbad (patch) | |
| tree | e5ccb1ee1fdb9e135f2f8a7f3e09a382cdd2beef /src/ChangeLog | |
| parent | 9d68c2a9abaddbed86a1b2f166625c93e8f88326 (diff) | |
| download | emacs-87e67904f15fda542426c9159c95a19142aecbad.tar.gz emacs-87e67904f15fda542426c9159c95a19142aecbad.zip | |
Started work on string reordering. Just compiled, not yet tested.
src/bidi.c (bidi_paragraph_info): Delete unused struct.
(bidi_cache_idx, bidi_cache_last_idx): Declare EMACS_INT.
(bidi_cache_start): New variable.
(bidi_cache_reset): Reset bidi_cache_idx to bidi_cache_start, not
to zero.
(bidi_cache_fetch_state, bidi_cache_search)
(bidi_cache_find_level_change, bidi_cache_iterator_state)
(bidi_cache_find, bidi_peek_at_next_level)
(bidi_level_of_next_char, bidi_find_other_level_edge)
(bidi_move_to_visually_next): Compare cache index with
bidi_cache_start rather than with zero.
(bidi_fetch_char): Accept new argument STRING; all callers
changed. Support iteration over a string.
(bidi_paragraph_init, bidi_resolve_explicit_1)
(bidi_resolve_explicit, bidi_resolve_weak)
(bidi_level_of_next_char, bidi_move_to_visually_next): Support
iteration over a string.
(bidi_set_sor_type, bidi_resolve_explicit_1)
(bidi_resolve_explicit, bidi_type_of_next_char): ignore_bn_limit
can now be zero (for strings); special values 0 and -1 were
changed to -1 and -2, respectively.
(bidi_char_at_pos): New function.
(bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak):
Call it instead of FETCH_MULTIBYTE_CHAR.
(bidi_move_to_visually_next): Abort if charpos or bytepos were not
initialized to valid values.
(bidi_init_it): Don't initialize charpos and bytepos with invalid
values.
src/xdisp.c (compute_display_string_pos)
(compute_display_string_end): Accept additional argument STRING.
(init_iterator, reseat_1): Initialize bidi_it->string.s to NULL.
(reseat_to_string): Initialize bidi_it->string.s and
bidi_it->string.schars.
src/dispextern.h (struct bidi_string_data): New structure.
(struct bidi_it): New member `string'. Make flag members be 1-bit
fields, and put them last in the struct.
(compute_display_string_pos, compute_display_string_end): Update
prototypes.
Diffstat (limited to 'src/ChangeLog')
| -rw-r--r-- | src/ChangeLog | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 63353b31d4d..c303839b14d 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,3 +1,46 @@ | |||
| 1 | 2011-06-08 Eli Zaretskii <eliz@gnu.org> | ||
| 2 | |||
| 3 | * bidi.c (bidi_paragraph_info): Delete unused struct. | ||
| 4 | (bidi_cache_idx, bidi_cache_last_idx): Declare EMACS_INT. | ||
| 5 | (bidi_cache_start): New variable. | ||
| 6 | (bidi_cache_reset): Reset bidi_cache_idx to bidi_cache_start, not | ||
| 7 | to zero. | ||
| 8 | (bidi_cache_fetch_state, bidi_cache_search) | ||
| 9 | (bidi_cache_find_level_change, bidi_cache_iterator_state) | ||
| 10 | (bidi_cache_find, bidi_peek_at_next_level) | ||
| 11 | (bidi_level_of_next_char, bidi_find_other_level_edge) | ||
| 12 | (bidi_move_to_visually_next): Compare cache index with | ||
| 13 | bidi_cache_start rather than with zero. | ||
| 14 | (bidi_fetch_char): Accept new argument STRING; all callers | ||
| 15 | changed. Support iteration over a string. | ||
| 16 | (bidi_paragraph_init, bidi_resolve_explicit_1) | ||
| 17 | (bidi_resolve_explicit, bidi_resolve_weak) | ||
| 18 | (bidi_level_of_next_char, bidi_move_to_visually_next): Support | ||
| 19 | iteration over a string. | ||
| 20 | (bidi_set_sor_type, bidi_resolve_explicit_1) | ||
| 21 | (bidi_resolve_explicit, bidi_type_of_next_char): ignore_bn_limit | ||
| 22 | can now be zero (for strings); special values 0 and -1 were | ||
| 23 | changed to -1 and -2, respectively. | ||
| 24 | (bidi_char_at_pos): New function. | ||
| 25 | (bidi_paragraph_init, bidi_resolve_explicit, bidi_resolve_weak): | ||
| 26 | Call it instead of FETCH_MULTIBYTE_CHAR. | ||
| 27 | (bidi_move_to_visually_next): Abort if charpos or bytepos were not | ||
| 28 | initialized to valid values. | ||
| 29 | (bidi_init_it): Don't initialize charpos and bytepos with invalid | ||
| 30 | values. | ||
| 31 | |||
| 32 | * xdisp.c (compute_display_string_pos) | ||
| 33 | (compute_display_string_end): Accept additional argument STRING. | ||
| 34 | (init_iterator, reseat_1): Initialize bidi_it->string.s to NULL. | ||
| 35 | (reseat_to_string): Initialize bidi_it->string.s and | ||
| 36 | bidi_it->string.schars. | ||
| 37 | |||
| 38 | * dispextern.h (struct bidi_string_data): New structure. | ||
| 39 | (struct bidi_it): New member `string'. Make flag members be 1-bit | ||
| 40 | fields, and put them last in the struct. | ||
| 41 | (compute_display_string_pos, compute_display_string_end): Update | ||
| 42 | prototypes. | ||
| 43 | |||
| 1 | 2011-06-04 Eli Zaretskii <eliz@gnu.org> | 44 | 2011-06-04 Eli Zaretskii <eliz@gnu.org> |
| 2 | 45 | ||
| 3 | * bidi.c (bidi_level_of_next_char): clen should be EMACS_NT, not int. | 46 | * bidi.c (bidi_level_of_next_char): clen should be EMACS_NT, not int. |