From: PatR Date: Thu, 18 Oct 2018 19:57:07 +0000 (-0700) Subject: X11 compile bit X-Git-Tag: NetHack-3.6.2_Released~185^2~4 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=622b77476b213697b8ce8121177007b3c107bac0;p=nethack X11 compile bit --- diff --git a/win/X11/winmisc.c b/win/X11/winmisc.c index 1d4e72bd9..02ca117b6 100644 --- a/win/X11/winmisc.c +++ b/win/X11/winmisc.c @@ -1,4 +1,4 @@ -/* NetHack 3.6 winmisc.c $NHDT-Date: 1457079197 2016/03/04 08:13:17 $ $NHDT-Branch: NetHack-3.6.0 $:$NHDT-Revision: 1.25 $ */ +/* NetHack 3.6 winmisc.c $NHDT-Date: 1539892610 2018/10/18 19:56:50 $ $NHDT-Branch: NetHack-3.6.2-beta01 $:$NHDT-Revision: 1.39 $ */ /* Copyright (c) Dean Luick, 1992 */ /* NetHack may be freely redistributed. See license for details. */ @@ -120,8 +120,7 @@ XtPointer x; return (long)x; } -/* Player Selection -------------------------------------------------------- - */ +/* Player Selection ------------------------------------------------------- */ /* ARGSUSED */ static void ps_quit(w, client_data, call_data) @@ -1275,8 +1274,7 @@ X11_player_selection_dialog() } } -/* Global functions ========================================================= - */ +/* Global functions ======================================================== */ void X11_player_selection_prompts() { @@ -1612,11 +1610,9 @@ release_extended_cmds() } } -/* End global functions ===================================================== - */ +/* End global functions =================================================== */ -/* Extended Command -------------------------------------------------------- - */ +/* Extended Command ------------------------------------------------------- */ /* ARGSUSED */ static void extend_select(w, client_data, call_data) @@ -1957,8 +1953,7 @@ init_extended_commands_popup() free((char *) command_list); } -/* ------------------------------------------------------------------------- - */ +/* ------------------------------------------------------------------------ */ /* * Create a popup widget of the following form: @@ -1996,7 +1991,7 @@ Widget **command_widgets; XtCallbackProc name_callback; Widget *formp; /* return */ { - Widget popup, form, label, above, left, right, view; + Widget popup, popform, form, label, above, left, right, view; Widget *commands, *curr; int i; Arg args[8]; @@ -2020,8 +2015,8 @@ Widget *formp; /* return */ XtParseTranslationTable(popup_translations)); num_args++; XtSetArg(args[num_args], XtNborderWidth, 0); num_args++; XtSetArg(args[num_args], nhStr(XtNdefaultDistance), 0); num_args++; - Widget popform = XtCreateManagedWidget("topmenuform", formWidgetClass, popup, - args, num_args); + popform = XtCreateManagedWidget("topmenuform", formWidgetClass, popup, + args, num_args); num_args = 0;