void Gawinitialize (Gwidget_t *widget, int mode) {
WAU->data.type = mode;
if (!(WAU->data.carray = Marrayalloc ((long) AWCARRAYINCR * AWCARRAYSIZE)))
- panic (POS, "Gawinitialize", "cannot allocate carray");
+ panic1 (POS, "Gawinitialize", "cannot allocate carray");
WAU->data.cn = AWCARRAYINCR;
WAU->data.cj = 0;
WAU->data.batchmode = FALSE;
wc.lpszMenuName = 0;
wc.lpszClassName = "LeftyClass";
if (!(rtn = RegisterClass (&wc)))
- panic (POS, "GXinit", "register class rtn = %d", (int) rtn);
+ panic1 (POS, "GXinit", "register class rtn = %d", (int) rtn);
wc.style = NULL;
wc.lpfnWndProc = ArrayWndProc;
wc.lpszMenuName = 0;
wc.lpszClassName = "ArrayClass";
if (!(rtn = RegisterClass (&wc)))
- panic (POS, "GXinit", "register class rtn = %d", (int) rtn);
+ panic1 (POS, "GXinit", "register class rtn = %d", (int) rtn);
wc.style = CS_OWNDC;
wc.lpfnWndProc = CanvasWndProc;
wc.lpszMenuName = 0;
wc.lpszClassName = "CanvasClass";
if (!(rtn = RegisterClass (&wc)))
- panic (POS, "GXinit", "register class rtn = %d", (int) rtn);
+ panic1 (POS, "GXinit", "register class rtn = %d", (int) rtn);
wc.style = NULL;
wc.lpfnWndProc = ScrollWndProc;
wc.lpszMenuName = 0;
wc.lpszClassName = "ScrollClass";
if (!(rtn = RegisterClass (&wc)))
- panic (POS, "GXinit", "register class rtn = %d", (int) rtn);
+ panic1 (POS, "GXinit", "register class rtn = %d", (int) rtn);
wc.style = NULL;
wc.lpfnWndProc = LabelWndProc;
wc.lpszMenuName = 0;
wc.lpszClassName = "LabelClass";
if (!(rtn = RegisterClass (&wc)))
- panic (POS, "GXinit", "register class rtn = %d", (int) rtn);
+ panic1 (POS, "GXinit", "register class rtn = %d", (int) rtn);
}
if (getenv ("LEFTY3BMOUSE"))
twobmouse = FALSE;
deffont = GetStockObject (SYSTEM_FONT);
#ifndef FEATURE_MS
if (!(Gxfp = fopen ("/dev/windows", "r")))
- panic (POS, "GXinit", "cannot open windows device");
+ panic1 (POS, "GXinit", "cannot open windows device");
Gxfd = fileno (Gxfp);
#endif
Gpopdownflag = FALSE;
TrackPopupMenu (widget->w, flag, p.x, p.y, 0, parent->w, NULL);
PostMessage (parent->w, WM_COMMAND, 999, 0);
if (!GetMessage(&msg, parent->w, WM_COMMAND, WM_COMMAND))
- panic (POS, "GMmenudisplay", "exit code in GetMessage");
+ panic1 (POS, "GMmenudisplay", "exit code in GetMessage");
TranslateMessage(&msg);
DispatchMessage(&msg);
Gpopdownflag = TRUE;