comparison src/ExternalShell.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 8de911beca70
children a640f9c13696
comparison
equal deleted inserted replaced
2285:914c5afaac33 2286:04bc9d2f42c7
249 }; 249 };
250 250
251 WidgetClass externalShellWidgetClass = (WidgetClass) &externalShellClassRec; 251 WidgetClass externalShellWidgetClass = (WidgetClass) &externalShellClassRec;
252 252
253 static void 253 static void
254 ExternalShellInitialize (Widget req, Widget new, ArgList args, 254 ExternalShellInitialize (Widget req, Widget new, ArgList UNUSED (args),
255 Cardinal *num_args) 255 Cardinal *UNUSED (num_args))
256 { 256 {
257 XtAddEventHandler(new, 0, 257 XtAddEventHandler(new, 0,
258 TRUE, EventHandler, (XtPointer) NULL); 258 TRUE, EventHandler, (XtPointer) NULL);
259 extw_initialize_atoms(XtDisplay(req)); 259 extw_initialize_atoms(XtDisplay(req));
260 extw_which_side = extw_shell_send; 260 extw_which_side = extw_shell_send;
274 274
275 #ifndef XtCXtToolkitError 275 #ifndef XtCXtToolkitError
276 # define XtCXtToolkitError "XtToolkitError" 276 # define XtCXtToolkitError "XtToolkitError"
277 #endif 277 #endif
278 278
279 static void EventHandler (Widget wid, XtPointer closure /* unused */, 279 static void EventHandler (Widget wid, XtPointer UNUSED (closure),
280 XEvent *event, 280 XEvent *event,
281 Boolean *continue_to_dispatch /* unused */) 281 Boolean *UNUSED (continue_to_dispatch))
282 { 282 {
283 ExternalShellWidget w = (ExternalShellWidget) wid; 283 ExternalShellWidget w = (ExternalShellWidget) wid;
284 284
285 if(w->core.window != event->xany.window) { 285 if(w->core.window != event->xany.window) {
286 XtAppErrorMsg(XtWidgetToApplicationContext(wid), 286 XtAppErrorMsg(XtWidgetToApplicationContext(wid),
362 } 362 }
363 363
364 /* Lifted almost entirely from GetGeometry() in Shell.c 364 /* Lifted almost entirely from GetGeometry() in Shell.c
365 */ 365 */
366 static void 366 static void
367 GetGeometry (Widget W, Widget child) 367 GetGeometry (Widget W, Widget UNUSED (child))
368 { 368 {
369 ExternalShellWidget w = (ExternalShellWidget)W; 369 ExternalShellWidget w = (ExternalShellWidget)W;
370 int x, y, win_gravity = -1, flag; 370 int x, y, win_gravity = -1, flag;
371 XSizeHints hints; 371 XSizeHints hints;
372 Window win = w->externalShell.external_window; 372 Window win = w->externalShell.external_window;