From: Dmitry Antipov Date: Fri, 31 Aug 2012 04:40:52 +0000 (+0400) Subject: Change struct frame bitfields from unsigned char to unsigned. X-Git-Tag: emacs-24.2.90~463 X-Git-Url: http://git.eshelyaron.com/gitweb/?a=commitdiff_plain;h=4e0f64791b6f38bfaa8d84addf7a472a15aac111;p=emacs.git Change struct frame bitfields from unsigned char to unsigned. * frame.h (struct frame): Change type of 'display_preempted', 'visible', 'iconified', 'has_minibuffer', 'wants_modeline', 'auto_raise', 'auto_lower', 'no_split', 'explicit_name', 'window_sizes_changed', 'mouse_moved' and 'pointer_invisible' bitfields from unsigned char to unsigned. --- diff --git a/src/ChangeLog b/src/ChangeLog index 7f47697da87..00ce2e46f04 100644 --- a/src/ChangeLog +++ b/src/ChangeLog @@ -1,3 +1,12 @@ +2012-08-31 Dmitry Antipov + + Change struct frame bitfields from unsigned char to unsigned. + * frame.h (struct frame): Change type of 'display_preempted', + 'visible', 'iconified', 'has_minibuffer', 'wants_modeline', + 'auto_raise', 'auto_lower', 'no_split', 'explicit_name', + 'window_sizes_changed', 'mouse_moved' and 'pointer_invisible' + bitfields from unsigned char to unsigned. + 2012-08-31 Dmitry Antipov Remove unused member of struct x_output and struct w32_output. diff --git a/src/frame.h b/src/frame.h index 9421aa45414..8587f094a95 100644 --- a/src/frame.h +++ b/src/frame.h @@ -361,7 +361,7 @@ struct frame #endif /* Nonzero if last attempt at redisplay on this frame was preempted. */ - unsigned char display_preempted : 1; + unsigned display_preempted : 1; /* visible is nonzero if the frame is currently displayed; we check it to see if we should bother updating the frame's contents. @@ -391,8 +391,8 @@ struct frame These two are mutually exclusive. They might both be zero, if the frame has been made invisible without an icon. */ - unsigned char visible : 2; - unsigned char iconified : 1; + unsigned visible : 2; + unsigned iconified : 1; /* Let's not use bitfields for volatile variables. */ @@ -406,40 +406,40 @@ struct frame /* True if frame actually has a minibuffer window on it. 0 if using a minibuffer window that isn't on this frame. */ - unsigned char has_minibuffer : 1; + unsigned has_minibuffer : 1; /* 0 means, if this frame has just one window, show no modeline for that window. */ - unsigned char wants_modeline : 1; + unsigned wants_modeline : 1; /* Non-zero if the hardware device this frame is displaying on can support scroll bars. */ char can_have_scroll_bars; /* Non-0 means raise this frame to the top of the heap when selected. */ - unsigned char auto_raise : 1; + unsigned auto_raise : 1; /* Non-0 means lower this frame to the bottom of the stack when left. */ - unsigned char auto_lower : 1; + unsigned auto_lower : 1; /* True if frame's root window can't be split. */ - unsigned char no_split : 1; + unsigned no_split : 1; /* If this is set, then Emacs won't change the frame name to indicate the current buffer, etcetera. If the user explicitly sets the frame name, this gets set. If the user sets the name to Qnil, this is cleared. */ - unsigned char explicit_name : 1; + unsigned explicit_name : 1; /* Nonzero if size of some window on this frame has changed. */ - unsigned char window_sizes_changed : 1; + unsigned window_sizes_changed : 1; /* Nonzero if the mouse has moved on this display device since the last time we checked. */ - unsigned char mouse_moved :1; + unsigned mouse_moved :1; /* Nonzero means that the pointer is invisible. */ - unsigned char pointer_invisible :1; + unsigned pointer_invisible :1; /* If can_have_scroll_bars is non-zero, this is non-zero if we should actually display them on this frame. */