From: Eli Zaretskii Date: Fri, 5 Aug 2011 14:08:16 +0000 (+0300) Subject: Make bidi_cache_total_alloc static. X-Git-Tag: emacs-pretest-24.0.90~104^2~152^2~86^2~3 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=ec7cc85b3974f570965807203360dfa86069a136;p=emacs.git Make bidi_cache_total_alloc static. src/bidi.c : Now static. (bidi_initialize): Initialize bidi_cache_total_alloc. --- diff --git a/src/ChangeLog b/src/ChangeLog index 3ac958e0311..c6484b48de4 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,8 @@ 2011-08-05 Eli Zaretskii + * bidi.c : Now static. + (bidi_initialize): Initialize bidi_cache_total_alloc. + *xdisp.c (display_line): Release buffer allocated for shelved bidi cache. (Bug#9221) diff --git a/src/bidi.c b/src/bidi.c index 00a6aeef954..0db144bea6c 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -620,7 +620,7 @@ bidi_pop_it (struct bidi_it *bidi_it) bidi_cache_last_idx = -1; } -ptrdiff_t bidi_cache_total_alloc; +static ptrdiff_t bidi_cache_total_alloc; /* Stash away a copy of the cache and its control variables. */ void * @@ -768,6 +768,7 @@ bidi_initialize (void) staticpro (¶graph_separate_re); bidi_cache_sp = 0; + bidi_cache_total_alloc = 0; bidi_initialized = 1; }