arg_file_name = argv[1];
buf = GC_MALLOC_ATOMIC(8192);
if (NULL == buf) OUT_OF_MEMORY;
- setvbuf(stdout, buf, _IOFBF, 8192);
+ setvbuf(stdout, (char *)buf, _IOFBF, 8192);
initscr();
noecho(); nonl(); cbreak();
generic_init();
HWND hwnd;
-void de_error(char *s)
+void de_error(const char *s)
{
(void)MessageBoxA(hwnd, s, "Demonstration Editor",
MB_ICONINFORMATION | MB_OK);
{
MSG msg;
WNDCLASS wndclass;
- HANDLE hAccel;
+ HACCEL hAccel;
GC_INIT();
# if defined(CPPCHECK)
wndclass.hInstance = hInstance;
wndclass.hIcon = LoadIcon (hInstance, szAppName);
wndclass.hCursor = LoadCursor (NULL, IDC_ARROW);
- wndclass.hbrBackground = GetStockObject(WHITE_BRUSH);
+ wndclass.hbrBackground = (HBRUSH)GetStockObject(WHITE_BRUSH);
wndclass.lpszMenuName = TEXT("DE");
wndclass.lpszClassName = szAppName;
/* Return the argument with all control characters replaced by blanks. */
char * plain_chars(char * text, size_t len)
{
- char * result = GC_MALLOC_ATOMIC(len + 1);
+ char * result = (char *)GC_MALLOC_ATOMIC(len + 1);
register size_t i;
if (NULL == result) return NULL;
/* blank, and all control characters c replaced by c + 32. */
char * control_chars(char * text, size_t len)
{
- char * result = GC_MALLOC_ATOMIC(len + 1);
+ char * result = (char *)GC_MALLOC_ATOMIC(len + 1);
register size_t i;
if (NULL == result) return NULL;
LRESULT CALLBACK WndProc (HWND hwnd, UINT message,
WPARAM wParam, LPARAM lParam)
{
- static HANDLE hInstance;
+ static HINSTANCE hInstance;
HDC dc;
PAINTSTRUCT ps;
RECT client_area;