From e78aecca6069e0ab7e08f359b185339c7130ccbf Mon Sep 17 00:00:00 2001 From: Paul Eggert Date: Sun, 10 Apr 2011 23:13:04 -0700 Subject: [PATCH] * bidi.c (bidi_dump_cached_states): Mark as externally visible, so that it's not optimized away. (bidi_ignore_explicit_marks_for_paragraph_level): Likewise. * dispextern.h (bidi_dump_cached_states): Remove, since it's exported only to the debugger. --- src/ChangeLog | 6 ++++++ src/bidi.c | 2 ++ src/dispextern.h | 1 - 3 files changed, 8 insertions(+), 1 deletion(-) diff --git a/src/ChangeLog b/src/ChangeLog index 35712e47520..f2abbc8ed5c 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,5 +1,11 @@ 2011-04-11 Paul Eggert + * bidi.c (bidi_dump_cached_states): Mark as externally visible, + so that it's not optimized away. + (bidi_ignore_explicit_marks_for_paragraph_level): Likewise. + * dispextern.h (bidi_dump_cached_states): Remove, since it's + exported only to the debugger. + * atimer.c (alarm_signal_handler, run_all_atimers): Now static. * atimer.h (run_all_atimers): Removed; not exported. diff --git a/src/bidi.c b/src/bidi.c index 3457e177436..447abb48469 100644 --- a/src/bidi.c +++ b/src/bidi.c @@ -91,6 +91,7 @@ typedef enum { STRONG } bidi_category_t; +extern int bidi_ignore_explicit_marks_for_paragraph_level EXTERNALLY_VISIBLE; int bidi_ignore_explicit_marks_for_paragraph_level = 1; static Lisp_Object paragraph_start_re, paragraph_separate_re; @@ -1779,6 +1780,7 @@ bidi_move_to_visually_next (struct bidi_it *bidi_it) /* This is meant to be called from within the debugger, whenever you wish to examine the cache contents. */ +void bidi_dump_cached_states (void) EXTERNALLY_VISIBLE; void bidi_dump_cached_states (void) { diff --git a/src/dispextern.h b/src/dispextern.h index fd474dc6ae5..d957955ee33 100644 --- a/src/dispextern.h +++ b/src/dispextern.h @@ -2944,7 +2944,6 @@ enum tool_bar_item_image extern void bidi_init_it (EMACS_INT, EMACS_INT, struct bidi_it *); extern void bidi_move_to_visually_next (struct bidi_it *); -extern void bidi_dump_cached_states (void); extern void bidi_paragraph_init (bidi_dir_t, struct bidi_it *, int); extern int bidi_mirror_char (int); -- 2.39.2