comparison src/scrollbar-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 6fa9919a9a0b
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
127 SCROLLBAR_MSW_DATA (sb)->field = new_##field; \ 127 SCROLLBAR_MSW_DATA (sb)->field = new_##field; \
128 pos_changed = 1; \ 128 pos_changed = 1; \
129 } 129 }
130 130
131 static void 131 static void
132 mswindows_update_scrollbar_instance_values (struct window *w, 132 mswindows_update_scrollbar_instance_values (struct window *UNUSED (w),
133 struct scrollbar_instance *sb, 133 struct scrollbar_instance *sb,
134 int new_line_increment, 134 int UNUSED (new_line_increment),
135 int new_page_increment, 135 int UNUSED (new_page_increment),
136 int new_minimum, int new_maximum, 136 int new_minimum, int new_maximum,
137 int new_slider_size, 137 int new_slider_size,
138 int new_slider_position, 138 int new_slider_position,
139 int new_scrollbar_width, 139 int new_scrollbar_width,
140 int new_scrollbar_height, 140 int new_scrollbar_height,
182 TRUE); 182 TRUE);
183 } 183 }
184 } 184 }
185 185
186 static void 186 static void
187 mswindows_update_scrollbar_instance_status (struct window *w, 187 mswindows_update_scrollbar_instance_status (struct window *UNUSED (w),
188 int active, int size, 188 int UNUSED (active), int size,
189 struct scrollbar_instance *sb) 189 struct scrollbar_instance *sb)
190 { 190 {
191 if (SCROLLBAR_MSW_SIZE (sb) != size) 191 if (SCROLLBAR_MSW_SIZE (sb) != size)
192 { 192 {
193 SCROLLBAR_MSW_SIZE (sb) = size; 193 SCROLLBAR_MSW_SIZE (sb) = size;
197 SetScrollInfo(SCROLLBAR_MSW_HANDLE (sb), SB_CTL, &SCROLLBAR_MSW_INFO (sb), TRUE); 197 SetScrollInfo(SCROLLBAR_MSW_HANDLE (sb), SB_CTL, &SCROLLBAR_MSW_INFO (sb), TRUE);
198 } 198 }
199 } 199 }
200 200
201 void 201 void
202 mswindows_handle_scrollbar_event (HWND hwnd, int code, int pos) 202 mswindows_handle_scrollbar_event (HWND hwnd, int code, int UNUSED (pos))
203 { 203 {
204 struct frame *f; 204 struct frame *f;
205 Lisp_Object win, frame; 205 Lisp_Object win, frame;
206 struct scrollbar_instance *sb = 0; 206 struct scrollbar_instance *sb = 0;
207 void *v; 207 void *v;
420 } 420 }
421 421
422 #ifdef MEMORY_USAGE_STATS 422 #ifdef MEMORY_USAGE_STATS
423 423
424 static int 424 static int
425 mswindows_compute_scrollbar_instance_usage (struct device *d, 425 mswindows_compute_scrollbar_instance_usage (struct device *UNUSED (d),
426 struct scrollbar_instance *inst, 426 struct scrollbar_instance *inst,
427 struct overhead_stats *ovstats) 427 struct overhead_stats *ovstats)
428 { 428 {
429 int total = 0; 429 int total = 0;
430 430
431 while (inst) 431 while (inst)
432 { 432 {