aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/ChangeLog9
-rw-r--r--src/frame.h24
2 files changed, 21 insertions, 12 deletions
diff --git a/src/ChangeLog b/src/ChangeLog
index 7f47697da87..00ce2e46f04 100644
--- a/src/ChangeLog
+++ b/src/ChangeLog
@@ -1,5 +1,14 @@
12012-08-31 Dmitry Antipov <dmantipov@yandex.ru> 12012-08-31 Dmitry Antipov <dmantipov@yandex.ru>
2 2
3 Change struct frame bitfields from unsigned char to unsigned.
4 * frame.h (struct frame): Change type of 'display_preempted',
5 'visible', 'iconified', 'has_minibuffer', 'wants_modeline',
6 'auto_raise', 'auto_lower', 'no_split', 'explicit_name',
7 'window_sizes_changed', 'mouse_moved' and 'pointer_invisible'
8 bitfields from unsigned char to unsigned.
9
102012-08-31 Dmitry Antipov <dmantipov@yandex.ru>
11
3 Remove unused member of struct x_output and struct w32_output. 12 Remove unused member of struct x_output and struct w32_output.
4 * xterm.h (struct x_output): Remove unused field 'needs_exposure'. 13 * xterm.h (struct x_output): Remove unused field 'needs_exposure'.
5 * w32term.h (struct w32_output): Likewise. 14 * w32term.h (struct w32_output): Likewise.
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
361#endif 361#endif
362 362
363 /* Nonzero if last attempt at redisplay on this frame was preempted. */ 363 /* Nonzero if last attempt at redisplay on this frame was preempted. */
364 unsigned char display_preempted : 1; 364 unsigned display_preempted : 1;
365 365
366 /* visible is nonzero if the frame is currently displayed; we check 366 /* visible is nonzero if the frame is currently displayed; we check
367 it to see if we should bother updating the frame's contents. 367 it to see if we should bother updating the frame's contents.
@@ -391,8 +391,8 @@ struct frame
391 391
392 These two are mutually exclusive. They might both be zero, if the 392 These two are mutually exclusive. They might both be zero, if the
393 frame has been made invisible without an icon. */ 393 frame has been made invisible without an icon. */
394 unsigned char visible : 2; 394 unsigned visible : 2;
395 unsigned char iconified : 1; 395 unsigned iconified : 1;
396 396
397 /* Let's not use bitfields for volatile variables. */ 397 /* Let's not use bitfields for volatile variables. */
398 398
@@ -406,40 +406,40 @@ struct frame
406 406
407 /* True if frame actually has a minibuffer window on it. 407 /* True if frame actually has a minibuffer window on it.
408 0 if using a minibuffer window that isn't on this frame. */ 408 0 if using a minibuffer window that isn't on this frame. */
409 unsigned char has_minibuffer : 1; 409 unsigned has_minibuffer : 1;
410 410
411 /* 0 means, if this frame has just one window, 411 /* 0 means, if this frame has just one window,
412 show no modeline for that window. */ 412 show no modeline for that window. */
413 unsigned char wants_modeline : 1; 413 unsigned wants_modeline : 1;
414 414
415 /* Non-zero if the hardware device this frame is displaying on can 415 /* Non-zero if the hardware device this frame is displaying on can
416 support scroll bars. */ 416 support scroll bars. */
417 char can_have_scroll_bars; 417 char can_have_scroll_bars;
418 418
419 /* Non-0 means raise this frame to the top of the heap when selected. */ 419 /* Non-0 means raise this frame to the top of the heap when selected. */
420 unsigned char auto_raise : 1; 420 unsigned auto_raise : 1;
421 421
422 /* Non-0 means lower this frame to the bottom of the stack when left. */ 422 /* Non-0 means lower this frame to the bottom of the stack when left. */
423 unsigned char auto_lower : 1; 423 unsigned auto_lower : 1;
424 424
425 /* True if frame's root window can't be split. */ 425 /* True if frame's root window can't be split. */
426 unsigned char no_split : 1; 426 unsigned no_split : 1;
427 427
428 /* If this is set, then Emacs won't change the frame name to indicate 428 /* If this is set, then Emacs won't change the frame name to indicate
429 the current buffer, etcetera. If the user explicitly sets the frame 429 the current buffer, etcetera. If the user explicitly sets the frame
430 name, this gets set. If the user sets the name to Qnil, this is 430 name, this gets set. If the user sets the name to Qnil, this is
431 cleared. */ 431 cleared. */
432 unsigned char explicit_name : 1; 432 unsigned explicit_name : 1;
433 433
434 /* Nonzero if size of some window on this frame has changed. */ 434 /* Nonzero if size of some window on this frame has changed. */
435 unsigned char window_sizes_changed : 1; 435 unsigned window_sizes_changed : 1;
436 436
437 /* Nonzero if the mouse has moved on this display device 437 /* Nonzero if the mouse has moved on this display device
438 since the last time we checked. */ 438 since the last time we checked. */
439 unsigned char mouse_moved :1; 439 unsigned mouse_moved :1;
440 440
441 /* Nonzero means that the pointer is invisible. */ 441 /* Nonzero means that the pointer is invisible. */
442 unsigned char pointer_invisible :1; 442 unsigned pointer_invisible :1;
443 443
444 /* If can_have_scroll_bars is non-zero, this is non-zero if we should 444 /* If can_have_scroll_bars is non-zero, this is non-zero if we should
445 actually display them on this frame. */ 445 actually display them on this frame. */