return;
va_start(args, fmt);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
fprintf (stderr, "warning: (file %s, line %d, func %s) ", file, line, func);
vfprintf (stderr, fmt, args);
fprintf (stderr, "\n");
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#else
char buf[256];
va_start(args, fmt);
vsprintf (buf, fmt, args);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
MessageBox ((HWND) NULL, buf, "Lefty Warning", MB_APPLMODAL);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#endif
}
#ifndef FEATURE_MS
va_start(args, fmt);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
fprintf (stderr, "panic: (file %s, line %d, func %s) ", file, line, func);
vfprintf (stderr, fmt, args);
fprintf (stderr, "\n");
fflush (stdout);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#else
char buf[256];
va_start(args, fmt);
vsprintf (buf, fmt, args);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
MessageBox ((HWND) NULL, buf, "Lefty PANIC", MB_APPLMODAL);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#endif
abort ();
#ifndef FEATURE_MS
va_start(args, fmt);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
fprintf (stderr, "panic: (file %s, line %d, func %s) ", file, line, func);
vfprintf (stderr, fmt, args);
fprintf (stderr, "\n");
perror ("");
fflush (stdout);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#else
char buf[256];
va_start(args, fmt);
vsprintf (buf, fmt, args);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
MessageBox ((HWND) NULL, buf, "Lefty PANIC", MB_APPLMODAL);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#endif
abort ();
if (buf[l - 1] == '\n')
buf[l - 1] = 0;
if (buf[0]) {
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
MessageBox ((HWND) NULL, buf, "Lefty printf", MB_APPLMODAL);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
}
va_end(args);
}
#include "g.h"
#include "gcommon.h"
#include "mem.h"
+#include <stdbool.h>
#include <string.h>
Gwidget_t *Gwidgets;
va_start(args, errnum);
vsprintf (buf, errmsg[errnum], args);
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
MessageBox ((HWND) NULL, buf, "Lefty Warning", MB_APPLMODAL);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
va_end(args);
#endif
#endif
/* Lefteris Koutsofios - AT&T Labs Research */
+#include <stdbool.h>
#include "common.h"
#include "g.h"
#include "gcommon.h"
else
Gfontp[0].font = NULL;
ReleaseDC ((HWND) NULL, hdc);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
return 0;
}
case G_VIEWWIDGET:
Gadjustwrect (parent, &ps1);
if (ps1.x != ps2.x || ps1.y != ps2.y) {
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
SetWindowPos (widget->w, (HWND) NULL, 0, 0, ps1.x, ps1.y, wflags1);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
}
break;
case G_ARRAYWIDGET:
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
Gawresize (parent);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
break;
case G_SCROLLWIDGET:
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
for (i = 0; i < 2; i++) {
Gadjustwrect (parent, &ps1);
if (ps1.x > ps2.x || ps1.y > ps2.y)
SetWindowPos (widget->w, (HWND) NULL, -po.x, -po.y, 0, 0, wflags2);
ps2 = ps1;
}
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
break;
}
/* Lefteris Koutsofios - AT&T Labs Research */
+#include <stdbool.h>
#include "common.h"
#include "g.h"
#include "gcommon.h"
Gerr (POS, G_ERRCANNOTSETATTR2, "borderwidth");
return -1;
case G_ATTRTEXT:
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
SendMessage (widget->w, WM_SETTEXT, 0, "");
SendMessage (widget->w, EM_SETSEL, -1, 32760);
SendMessage (widget->w, EM_REPLACESEL, 0, (LPARAM) attrp[ai].u.t);
SendMessage (widget->w, EM_SETSEL, -1, 32760);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
break;
case G_ATTRAPPENDTEXT:
- Gnocallbacks = TRUE;
+ Gnocallbacks = true;
SendMessage (widget->w, EM_SETSEL, -1, 32760);
SendMessage (widget->w, EM_REPLACESEL, 0, (LPARAM) attrp[ai].u.t);
SendMessage (widget->w, EM_SETSEL, -1, 32760);
SendMessage (widget->w, EM_REPLACESEL, 0, (LPARAM) "\r\n");
SendMessage (widget->w, EM_SETSEL, -1, 32760);
- Gnocallbacks = FALSE;
+ Gnocallbacks = false;
break;
case G_ATTRMODE:
if (