aboutsummaryrefslogtreecommitdiffstats
path: root/src/bidi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/bidi.c')
-rw-r--r--src/bidi.c11
1 files changed, 5 insertions, 6 deletions
diff --git a/src/bidi.c b/src/bidi.c
index b03e93df817..b518dd45782 100644
--- a/src/bidi.c
+++ b/src/bidi.c
@@ -548,11 +548,10 @@ bidi_peek_at_next_level (struct bidi_it *bidi_it)
548/*********************************************************************** 548/***********************************************************************
549 Pushing and popping the bidi iterator state 549 Pushing and popping the bidi iterator state
550 ***********************************************************************/ 550 ***********************************************************************/
551/* 10-slot stack for saving the start of the previous level of the 551/* 5-slot stack for saving the start of the previous level of the
552 cache. xdisp.c maintains a 5-slot cache for its iterator state, 552 cache. xdisp.c maintains a 5-slot stack for its iterator state,
553 and we need just a little bit more. */ 553 and we need the same size of our stack. */
554#define CACHE_STACK_SIZE 10 554static int bidi_cache_start_stack[IT_STACK_SIZE];
555static int bidi_cache_start_stack[CACHE_STACK_SIZE];
556static int bidi_cache_sp; 555static int bidi_cache_sp;
557 556
558/* Push the bidi iterator state in preparation for reordering a 557/* Push the bidi iterator state in preparation for reordering a
@@ -569,7 +568,7 @@ bidi_push_it (struct bidi_it *bidi_it)
569 memcpy (&bidi_cache[bidi_cache_idx++], bidi_it, sizeof (struct bidi_it)); 568 memcpy (&bidi_cache[bidi_cache_idx++], bidi_it, sizeof (struct bidi_it));
570 569
571 /* Push the current cache start onto the stack. */ 570 /* Push the current cache start onto the stack. */
572 if (bidi_cache_sp >= CACHE_STACK_SIZE) 571 if (bidi_cache_sp >= IT_STACK_SIZE)
573 abort (); 572 abort ();
574 bidi_cache_start_stack[bidi_cache_sp++] = bidi_cache_start; 573 bidi_cache_start_stack[bidi_cache_sp++] = bidi_cache_start;
575 574