From c8ae93b0890e61c5fbc151216d9169968e532f30 Mon Sep 17 00:00:00 2001 From: Dmitry Antipov Date: Tue, 13 Aug 2013 19:29:25 +0400 Subject: * window.h (WINDOW_FRINGE_EXTENDED_P): New macro. * nsterm.m (ns_set_vertical_scroll_bar): Use it. Use convenient bool instead of BOOL. * w32term.h (struct scroll_bar): Convert fringe_extended_p from Lisp_Object to bitfield. Adjust comment. * w32term.c (x_scroll_bar_create): Adjust user. Use WINDOW_FRINGE_EXTENDED_P and bool for boolean. * xterm.c (XTset_vertical_scroll_bar): Likewise. Use bool for boolean. * xterm.h (struct scroll_bar): Prefer commonly used `unsigned' to `unsigned int' when defining a bitfield. --- src/w32term.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/w32term.h') diff --git a/src/w32term.h b/src/w32term.h index 3c9cce35221..8a1bbd11766 100644 --- a/src/w32term.h +++ b/src/w32term.h @@ -451,9 +451,9 @@ struct scroll_bar { being dragged, this is Qnil. */ Lisp_Object dragging; - /* t if the background of the fringe that is adjacent to a scroll + /* 1 if the background of the fringe that is adjacent to a scroll bar is extended to the gap between the fringe and the bar. */ - Lisp_Object fringe_extended_p; + unsigned fringe_extended_p : 1; }; /* Turning a lisp vector value into a pointer to a struct scroll_bar. */ -- cgit v1.2.1