Mercurial > dwindows
comparison os2/dw.c @ 1548:ef7959aae8da
Clean up some warnings with GCC on OS/2.
author | bsmith@81767d24-ef19-dc11-ae90-00e081727c95 |
---|---|
date | Fri, 13 Jan 2012 17:07:52 +0000 |
parents | 2fd9ff675d79 |
children | 4a9c574d5c17 |
comparison
equal
deleted
inserted
replaced
1547:2fd9ff675d79 | 1548:ef7959aae8da |
---|---|
4737 { | 4737 { |
4738 unsigned long bytes; | 4738 unsigned long bytes; |
4739 int height, width; | 4739 int height, width; |
4740 char *buf, *ptr; | 4740 char *buf, *ptr; |
4741 int basicwidth; | 4741 int basicwidth; |
4742 int wrap = WinSendMsg(handle, MLM_QUERYWRAP, 0,0); | 4742 int wrap = (int)WinSendMsg(handle, MLM_QUERYWRAP, 0,0); |
4743 | 4743 |
4744 thisheight = 8; | 4744 thisheight = 8; |
4745 basicwidth = thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL) + 8; | 4745 basicwidth = thiswidth = WinQuerySysValue(HWND_DESKTOP, SV_CXVSCROLL) + 8; |
4746 | 4746 |
4747 dw_mle_get_size(handle, &bytes, NULL); | 4747 dw_mle_get_size(handle, &bytes, NULL); |
4748 | 4748 |
4749 ptr = buf = _alloca(bytes + 2); | 4749 ptr = buf = alloca(bytes + 2); |
4750 dw_mle_export(handle, buf, 0, (int)bytes); | 4750 dw_mle_export(handle, buf, 0, (int)bytes); |
4751 buf[bytes] = 0; | 4751 buf[bytes] = 0; |
4752 strcat(buf, "\n"); | 4752 strcat(buf, "\n"); |
4753 | 4753 |
4754 /* MLE */ | 4754 /* MLE */ |
4755 while(ptr = strstr(buf, "\n")) | 4755 while((ptr = strstr(buf, "\n"))) |
4756 { | 4756 { |
4757 ptr[0] = 0; | 4757 ptr[0] = 0; |
4758 width = 0; | 4758 width = 0; |
4759 if(strlen(buf)) | 4759 if(strlen(buf)) |
4760 dw_font_text_extents_get(handle, NULL, buf, &width, &height); | 4760 dw_font_text_extents_get(handle, NULL, buf, &width, &height); |
12133 HWND API dw_calendar_new(ULONG id) | 12133 HWND API dw_calendar_new(ULONG id) |
12134 { | 12134 { |
12135 WindowData *blah = calloc(sizeof(WindowData), 1); | 12135 WindowData *blah = calloc(sizeof(WindowData), 1); |
12136 DATETIME dt; | 12136 DATETIME dt; |
12137 HWND tmp = WinCreateWindow(HWND_OBJECT, | 12137 HWND tmp = WinCreateWindow(HWND_OBJECT, |
12138 CalendarClassName, | 12138 (PSZ)CalendarClassName, |
12139 NULL, | 12139 NULL, |
12140 WS_VISIBLE, | 12140 WS_VISIBLE, |
12141 0,0,2000,1000, | 12141 0,0,2000,1000, |
12142 NULLHANDLE, | 12142 NULLHANDLE, |
12143 HWND_TOP, | 12143 HWND_TOP, |