diff options
| author | Eli Zaretskii | 2010-09-24 09:05:24 -0400 |
|---|---|---|
| committer | Eli Zaretskii | 2010-09-24 09:05:24 -0400 |
| commit | 61bfec9843db66eff4e5f3dfcb843f0e207da283 (patch) | |
| tree | 0ad4f11be21d4f29b07ad0b4136747b0e0876d49 | |
| parent | 145582a02c87f8c0b8be9eba2b95990c8db7e554 (diff) | |
| download | emacs-61bfec9843db66eff4e5f3dfcb843f0e207da283.tar.gz emacs-61bfec9843db66eff4e5f3dfcb843f0e207da283.zip | |
Really fix int/EMACS_INT use in bidi.c.
bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer positions.
(bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer positions.
| -rw-r--r-- | src/ChangeLog | 5 | ||||
| -rw-r--r-- | src/bidi.c | 12 |
2 files changed, 11 insertions, 6 deletions
diff --git a/src/ChangeLog b/src/ChangeLog index 8c73cf357d9..83295bc5f09 100644 --- a/src/ChangeLog +++ b/src/ChangeLog | |||
| @@ -1,5 +1,10 @@ | |||
| 1 | 2010-09-24 Eli Zaretskii <eliz@gnu.org> | 1 | 2010-09-24 Eli Zaretskii <eliz@gnu.org> |
| 2 | 2 | ||
| 3 | * bidi.c (struct bidi_paragraph_info): Use EMACS_INT for buffer | ||
| 4 | positions. | ||
| 5 | (bidi_cache_search, bidi_cache_find): Use EMACS_INT for buffer | ||
| 6 | positions. | ||
| 7 | |||
| 3 | * buffer.c (struct sortvec): Use EMACS_INT for buffer positions. | 8 | * buffer.c (struct sortvec): Use EMACS_INT for buffer positions. |
| 4 | (struct sortstrlist, overlay_str_len): Use EMACS_INT for string | 9 | (struct sortstrlist, overlay_str_len): Use EMACS_INT for string |
| 5 | length. | 10 | length. |
diff --git a/src/bidi.c b/src/bidi.c index 224ed552a6d..b7c6fdc2ddd 100644 --- a/src/bidi.c +++ b/src/bidi.c | |||
| @@ -79,10 +79,10 @@ static Lisp_Object bidi_type_table, bidi_mirror_table; | |||
| 79 | 79 | ||
| 80 | /* What we need to know about the current paragraph. */ | 80 | /* What we need to know about the current paragraph. */ |
| 81 | struct bidi_paragraph_info { | 81 | struct bidi_paragraph_info { |
| 82 | int start_bytepos; /* byte position where it begins */ | 82 | EMACS_INT start_bytepos; /* byte position where it begins */ |
| 83 | int end_bytepos; /* byte position where it ends */ | 83 | EMACS_INT end_bytepos; /* byte position where it ends */ |
| 84 | int embedding_level; /* its basic embedding level */ | 84 | int embedding_level; /* its basic embedding level */ |
| 85 | bidi_dir_t base_dir; /* its base direction */ | 85 | bidi_dir_t base_dir; /* its base direction */ |
| 86 | }; | 86 | }; |
| 87 | 87 | ||
| 88 | /* Data type for describing the bidirectional character categories. */ | 88 | /* Data type for describing the bidirectional character categories. */ |
| @@ -313,7 +313,7 @@ bidi_cache_fetch_state (int idx, struct bidi_it *bidi_it) | |||
| 313 | resolved levels in cached states. DIR, if non-zero, means search | 313 | resolved levels in cached states. DIR, if non-zero, means search |
| 314 | in that direction from the last cache hit. */ | 314 | in that direction from the last cache hit. */ |
| 315 | static INLINE int | 315 | static INLINE int |
| 316 | bidi_cache_search (int charpos, int level, int dir) | 316 | bidi_cache_search (EMACS_INT charpos, int level, int dir) |
| 317 | { | 317 | { |
| 318 | int i, i_start; | 318 | int i, i_start; |
| 319 | 319 | ||
| @@ -462,7 +462,7 @@ bidi_cache_iterator_state (struct bidi_it *bidi_it, int resolved) | |||
| 462 | } | 462 | } |
| 463 | 463 | ||
| 464 | static INLINE bidi_type_t | 464 | static INLINE bidi_type_t |
| 465 | bidi_cache_find (int charpos, int level, struct bidi_it *bidi_it) | 465 | bidi_cache_find (EMACS_INT charpos, int level, struct bidi_it *bidi_it) |
| 466 | { | 466 | { |
| 467 | int i = bidi_cache_search (charpos, level, bidi_it->scan_dir); | 467 | int i = bidi_cache_search (charpos, level, bidi_it->scan_dir); |
| 468 | 468 | ||