Mercurial > hg > xemacs-beta
comparison src/toolbar-msw.c @ 2286:04bc9d2f42c7
[xemacs-hg @ 2004-09-20 19:18:55 by james]
Mark all unused parameters as unused. Also eliminate some unneeded local
variables.
author | james |
---|---|
date | Mon, 20 Sep 2004 19:20:08 +0000 |
parents | a8d8f419b459 |
children | 3d8143fc88e1 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
82 } \ | 82 } \ |
83 } while (0) | 83 } while (0) |
84 | 84 |
85 static int | 85 static int |
86 allocate_toolbar_item_id (struct frame *f, struct toolbar_button *button, | 86 allocate_toolbar_item_id (struct frame *f, struct toolbar_button *button, |
87 enum toolbar_pos pos) | 87 enum toolbar_pos UNUSED (pos)) |
88 { | 88 { |
89 /* hmm what do we generate an id based on */ | 89 /* hmm what do we generate an id based on */ |
90 int id = TOOLBAR_ITEM_ID_BITS (internal_hash (button->callback, 0)); | 90 int id = TOOLBAR_ITEM_ID_BITS (internal_hash (button->callback, 0)); |
91 while (!NILP (Fgethash (make_int (id), | 91 while (!NILP (Fgethash (make_int (id), |
92 FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE (f), Qnil))) | 92 FRAME_MSWINDOWS_TOOLBAR_HASH_TABLE (f), Qnil))) |
96 return id; | 96 return id; |
97 } | 97 } |
98 | 98 |
99 static void | 99 static void |
100 mswindows_clear_toolbar (struct frame *f, enum toolbar_pos pos, | 100 mswindows_clear_toolbar (struct frame *f, enum toolbar_pos pos, |
101 int thickness_change) | 101 int UNUSED (thickness_change)) |
102 { | 102 { |
103 HIMAGELIST ilist = NULL; | 103 HIMAGELIST ilist = NULL; |
104 int i; | 104 int i; |
105 HWND toolbarwnd = TOOLBAR_HANDLE (f, pos); | 105 HWND toolbarwnd = TOOLBAR_HANDLE (f, pos); |
106 if (toolbarwnd) | 106 if (toolbarwnd) |
511 bar_width, bar_height, SWP_NOZORDER); | 511 bar_width, bar_height, SWP_NOZORDER); |
512 } | 512 } |
513 } | 513 } |
514 | 514 |
515 static void | 515 static void |
516 mswindows_redraw_exposed_toolbars (struct frame *f, int x, int y, int width, | 516 mswindows_redraw_exposed_toolbars (struct frame *f, |
517 int height) | 517 int UNUSED (x), int UNUSED (y), |
518 int UNUSED (width), int UNUSED (height)) | |
518 { | 519 { |
519 assert (FRAME_MSWINDOWS_P (f)); | 520 assert (FRAME_MSWINDOWS_P (f)); |
520 | 521 |
521 if (FRAME_REAL_TOP_TOOLBAR_VISIBLE (f)) | 522 if (FRAME_REAL_TOP_TOOLBAR_VISIBLE (f)) |
522 mswindows_move_toolbar (f, TOP_TOOLBAR); | 523 mswindows_move_toolbar (f, TOP_TOOLBAR); |
537 mswindows_redraw_exposed_toolbars (f, 0, 0, FRAME_PIXWIDTH (f), | 538 mswindows_redraw_exposed_toolbars (f, 0, 0, FRAME_PIXWIDTH (f), |
538 FRAME_PIXHEIGHT (f)); | 539 FRAME_PIXHEIGHT (f)); |
539 } | 540 } |
540 | 541 |
541 static void | 542 static void |
542 mswindows_initialize_frame_toolbars (struct frame *f) | 543 mswindows_initialize_frame_toolbars (struct frame *UNUSED (f)) |
543 { | 544 { |
544 | 545 |
545 } | 546 } |
546 | 547 |
547 static void | 548 static void |
614 * or Qnil if id has not been mapped to a callback. | 615 * or Qnil if id has not been mapped to a callback. |
615 * Window procedure may try other targets to route the | 616 * Window procedure may try other targets to route the |
616 * command if we return nil | 617 * command if we return nil |
617 */ | 618 */ |
618 Lisp_Object | 619 Lisp_Object |
619 mswindows_handle_toolbar_wm_command (struct frame *f, HWND ctrl, WORD id) | 620 mswindows_handle_toolbar_wm_command (struct frame *f, HWND UNUSED (ctrl), |
621 WORD id) | |
620 { | 622 { |
621 /* Try to map the command id through the proper hash table */ | 623 /* Try to map the command id through the proper hash table */ |
622 Lisp_Object button, data, fn, arg, frame; | 624 Lisp_Object button, data, fn, arg, frame; |
623 | 625 |
624 button = Fgethash (make_int (id), | 626 button = Fgethash (make_int (id), |