diff options
| author | Eli Zaretskii | 2009-12-31 16:20:15 -0500 |
|---|---|---|
| committer | Eli Zaretskii | 2009-12-31 16:20:15 -0500 |
| commit | 89d3374a8cb2a24adabe88765da58a85855ff6f8 (patch) | |
| tree | 53291e9e2d986b0e3979c47cfeeec94deadf51cb /src/dispextern.h | |
| parent | d8300a8a317dfe01eaf7dbf7912f5c03c1fbfea3 (diff) | |
| download | emacs-89d3374a8cb2a24adabe88765da58a85855ff6f8.tar.gz emacs-89d3374a8cb2a24adabe88765da58a85855ff6f8.zip | |
Retrospective commit from 2009-09-19.
Begin work on bidi initialization and other cleanup.
Remove all STANDALONE code from bidi.c.
xdisp.c (init_iterator): Call bidi_init_it. Set
bidi_it->bytepos if buffer position specified.
(reseat_1): Don't call bidi_init_it. Call bidi_paragraph_init
instead. Move back to preceding character before the call to
bidi_get_next_char_visually.
bidi.c: Remove all STANDALONE parts.
(bidi_init_it): Init bidi_it->charpos and bidi_it->bytepos to -1.
Don't call bidi_paragraph_init. Change arguments.
(bidi_paragraph_init): Remove code for negative pos.
dispextern.h <bidi_it>: Rename orig_type to type_after_w1 and
pristine_type to orig_type.
Diffstat (limited to 'src/dispextern.h')
| -rw-r--r-- | src/dispextern.h | 19 |
1 files changed, 10 insertions, 9 deletions
diff --git a/src/dispextern.h b/src/dispextern.h index f601fee7df2..d4f572227a3 100644 --- a/src/dispextern.h +++ b/src/dispextern.h | |||
| @@ -1736,9 +1736,9 @@ typedef enum { NEUTRAL_DIR, L2R, R2L } bidi_dir_t; | |||
| 1736 | remember. */ | 1736 | remember. */ |
| 1737 | struct bidi_saved_info { | 1737 | struct bidi_saved_info { |
| 1738 | int bytepos, charpos; /* character's buffer position */ | 1738 | int bytepos, charpos; /* character's buffer position */ |
| 1739 | bidi_type_t type; /* character bidi type */ | 1739 | bidi_type_t type; /* character's resolved bidi type */ |
| 1740 | bidi_type_t orig_type; /* original type of the character, after W1 */ | 1740 | bidi_type_t type_after_w1; /* original type of the character, after W1 */ |
| 1741 | bidi_type_t pristine_type; /* type as we found it in the buffer */ | 1741 | bidi_type_t orig_type; /* type as we found it in the buffer */ |
| 1742 | }; | 1742 | }; |
| 1743 | 1743 | ||
| 1744 | /* Data type for keeping track of saved embedding levels and override | 1744 | /* Data type for keeping track of saved embedding levels and override |
| @@ -1754,9 +1754,10 @@ struct bidi_it { | |||
| 1754 | int charpos; | 1754 | int charpos; |
| 1755 | int ch; /* the character itself */ | 1755 | int ch; /* the character itself */ |
| 1756 | int ch_len; /* the length of its multibyte sequence */ | 1756 | int ch_len; /* the length of its multibyte sequence */ |
| 1757 | bidi_type_t type; /* type of this character */ | 1757 | bidi_type_t type; /* bidi type of this character, after |
| 1758 | bidi_type_t orig_type; /* original type, after overrides and W1 */ | 1758 | resolving weak and neutral types */ |
| 1759 | bidi_type_t pristine_type; /* original type, as found in the buffer */ | 1759 | bidi_type_t type_after_w1; /* original type, after overrides and W1 */ |
| 1760 | bidi_type_t orig_type; /* original type, as found in the buffer */ | ||
| 1760 | int resolved_level; /* final resolved level of this character */ | 1761 | int resolved_level; /* final resolved level of this character */ |
| 1761 | int invalid_levels; /* how many PDFs should we ignore */ | 1762 | int invalid_levels; /* how many PDFs should we ignore */ |
| 1762 | int invalid_rl_levels; /* how many PDFs from RLE/RLO should ignore */ | 1763 | int invalid_rl_levels; /* how many PDFs from RLE/RLO should ignore */ |
| @@ -2786,9 +2787,9 @@ extern EMACS_INT tool_bar_button_relief; | |||
| 2786 | 2787 | ||
| 2787 | /* Defined in bidi.c */ | 2788 | /* Defined in bidi.c */ |
| 2788 | 2789 | ||
| 2789 | extern void bidi_init_it P_ ((int pos, bidi_dir_t dir, | 2790 | extern void bidi_init_it P_ ((int, int, struct bidi_it *)); |
| 2790 | struct bidi_it *bidi_it)); | 2791 | extern void bidi_get_next_char_visually P_ ((struct bidi_it *)); |
| 2791 | extern void bidi_get_next_char_visually P_ ((struct bidi_it *bidi_it)); | 2792 | extern void bidi_paragraph_init P_ ((bidi_dir_t, struct bidi_it *)); |
| 2792 | 2793 | ||
| 2793 | /* Defined in xdisp.c */ | 2794 | /* Defined in xdisp.c */ |
| 2794 | 2795 | ||