From 7e97b33aa62c39111f33a94c487f0a174d06346d Mon Sep 17 00:00:00 2001 From: Po Lu Date: Sat, 7 May 2022 13:38:42 +0000 Subject: [PATCH] Clean up some variables in the Haiku code * src/haikuterm.c: Add comments to some variables and clean up initializers. * src/haikuterm.h (haiku_frame_param_handlers): Move here instead. --- src/haikuterm.c | 13 ++++++++++--- src/haikuterm.h | 2 ++ 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/src/haikuterm.c b/src/haikuterm.c index ced16d9f09b..f08fe681871 100644 --- a/src/haikuterm.c +++ b/src/haikuterm.c @@ -43,17 +43,24 @@ along with GNU Emacs. If not, see . */ /* Minimum and maximum values used for Haiku scroll bars. */ #define BE_SB_MAX 12000000 -struct haiku_display_info *x_display_list = NULL; -extern frame_parm_handler haiku_frame_parm_handlers[]; +/* The single Haiku display (if any). */ +struct haiku_display_info *x_display_list; /* This is used to determine when to evict the font lookup cache, which we do every 50 updates. */ static int up_to_date_count; +/* List of defined fringe bitmaps. */ static void **fringe_bmps; -static int max_fringe_bmp = 0; +/* The amount of fringe bitmaps in that list. */ +static int max_fringe_bmp; + +/* Alist of resources to their values. */ static Lisp_Object rdb; + +/* Non-zero means that a HELP_EVENT has been generated since Emacs + start. */ static bool any_help_event_p; char * diff --git a/src/haikuterm.h b/src/haikuterm.h index 30b474b1e1d..1bff03ae39e 100644 --- a/src/haikuterm.h +++ b/src/haikuterm.h @@ -205,6 +205,8 @@ extern struct font_driver const haikufont_driver; extern Lisp_Object tip_frame; extern struct frame *haiku_dnd_frame; +extern frame_parm_handler haiku_frame_parm_handlers[]; + struct scroll_bar { /* These fields are shared by all vectors. */ -- 2.39.2