Mercurial > hg > xemacs-beta
comparison lwlib/xlwradio.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 | 0259690f597b |
children | 6c9e392b4307 |
comparison
equal
deleted
inserted
replaced
2285:914c5afaac33 | 2286:04bc9d2f42c7 |
---|---|
217 | 217 |
218 /*ARGSUSED*/ | 218 /*ARGSUSED*/ |
219 static void | 219 static void |
220 RadioInit (Widget request, | 220 RadioInit (Widget request, |
221 Widget new, | 221 Widget new, |
222 ArgList args, | 222 ArgList UNUSED (args), |
223 Cardinal *num_args) | 223 Cardinal *UNUSED (num_args)) |
224 { | 224 { |
225 RadioWidget rw = (RadioWidget) new; | 225 RadioWidget rw = (RadioWidget) new; |
226 RadioWidget rw_req = (RadioWidget) request; | 226 RadioWidget rw_req = (RadioWidget) request; |
227 Dimension w,h ; | 227 Dimension w,h ; |
228 | 228 |
245 * Returns: none. | 245 * Returns: none. |
246 */ | 246 */ |
247 | 247 |
248 /* ARGSUSED */ | 248 /* ARGSUSED */ |
249 static void | 249 static void |
250 RadioDestroy (Widget w, | 250 RadioDestroy (Widget UNUSED (w), |
251 XtPointer junk, | 251 XtPointer UNUSED (junk), |
252 XtPointer garbage) | 252 XtPointer UNUSED (garbage)) |
253 { | 253 { |
254 /* TODO: get rid of this */ | 254 /* TODO: get rid of this */ |
255 } | 255 } |
256 | 256 |
257 | 257 |
342 | 342 |
343 | 343 |
344 /* ARGSUSED */ | 344 /* ARGSUSED */ |
345 static Boolean | 345 static Boolean |
346 RadioSetValues (Widget current, | 346 RadioSetValues (Widget current, |
347 Widget request, | 347 Widget UNUSED (request), |
348 Widget new, | 348 Widget new, |
349 ArgList args, | 349 ArgList UNUSED (args), |
350 Cardinal *num_args) | 350 Cardinal *UNUSED (num_args)) |
351 { | 351 { |
352 RadioWidget oldrw = (RadioWidget) current; | 352 RadioWidget oldrw = (RadioWidget) current; |
353 RadioWidget newrw = (RadioWidget) new; | 353 RadioWidget newrw = (RadioWidget) new; |
354 | 354 |
355 /* Need to find out if the size of the widget changed. Set new size | 355 /* Need to find out if the size of the widget changed. Set new size |
443 XFillRectangles( XtDisplay(w), XtWindow(w), gc, rects, 4) ; | 443 XFillRectangles( XtDisplay(w), XtWindow(w), gc, rects, 4) ; |
444 } | 444 } |
445 | 445 |
446 static void | 446 static void |
447 RadioHighlight (Widget w, | 447 RadioHighlight (Widget w, |
448 XEvent *event, | 448 XEvent *UNUSED (event), |
449 String *params, | 449 String *UNUSED (params), |
450 Cardinal *num_params) | 450 Cardinal *UNUSED (num_params)) |
451 { | 451 { |
452 RadioWidget rw = (RadioWidget)w; | 452 RadioWidget rw = (RadioWidget)w; |
453 DrawHighlight(w, rw->command.normal_GC) ; | 453 DrawHighlight(w, rw->command.normal_GC) ; |
454 } | 454 } |
455 | 455 |
456 | 456 |
457 static void | 457 static void |
458 RadioUnhighlight (Widget w, | 458 RadioUnhighlight (Widget w, |
459 XEvent *event, | 459 XEvent *UNUSED (event), |
460 String *params, | 460 String *UNUSED (params), |
461 Cardinal *num_params) | 461 Cardinal *UNUSED (num_params)) |
462 { | 462 { |
463 RadioWidget rw = (RadioWidget)w; | 463 RadioWidget rw = (RadioWidget)w; |
464 DrawHighlight(w, rw->command.inverse_GC) ; | 464 DrawHighlight(w, rw->command.inverse_GC) ; |
465 } | 465 } |
466 | 466 |
467 | 467 |
468 /* ARGSUSED */ | 468 /* ARGSUSED */ |
469 void | 469 void |
470 RadioSet (Widget w, | 470 RadioSet (Widget w, |
471 XEvent *event, | 471 XEvent *UNUSED (event), |
472 String *params, /* unused */ | 472 String *UNUSED (params), |
473 Cardinal *num_params) /* unused */ | 473 Cardinal *UNUSED (num_params)) |
474 { | 474 { |
475 RadioWidget rw = (RadioWidget)w; | 475 RadioWidget rw = (RadioWidget)w; |
476 RadioWidgetClass class_ = (RadioWidgetClass) w->core.widget_class ; | 476 RadioWidgetClass class_ = (RadioWidgetClass) w->core.widget_class ; |
477 | 477 |
478 if( rw->command.set ) | 478 if( rw->command.set ) |
485 | 485 |
486 | 486 |
487 /* ARGSUSED */ | 487 /* ARGSUSED */ |
488 void | 488 void |
489 RadioUnset (Widget w, | 489 RadioUnset (Widget w, |
490 XEvent *event, | 490 XEvent *UNUSED (event), |
491 String *params, /* unused */ | 491 String *UNUSED (params), |
492 Cardinal *num_params) /* unused */ | 492 Cardinal *UNUSED (num_params)) |
493 { | 493 { |
494 RadioWidget rw = (RadioWidget)w; | 494 RadioWidget rw = (RadioWidget)w; |
495 RadioWidgetClass class_ = (RadioWidgetClass) w->core.widget_class ; | 495 RadioWidgetClass class_ = (RadioWidgetClass) w->core.widget_class ; |
496 | 496 |
497 if( ! rw->command.set ) | 497 if( ! rw->command.set ) |