comparison os2/dw.c @ 1693:b2311922a4de

Ah so... eliminated the last few VAC36 warnings on OS/2. Thanks to the Project Odin ticket #1 for explaining how to get rid of them with VisualAge.
author bsmith@81767d24-ef19-dc11-ae90-00e081727c95
date Tue, 01 May 2012 23:25:20 +0000
parents 6e26c9ead2fe
children c01961b48c40
comparison
equal deleted inserted replaced
1692:6e26c9ead2fe 1693:b2311922a4de
4814 dw_mle_export(handle, buf, 0, (int)bytes); 4814 dw_mle_export(handle, buf, 0, (int)bytes);
4815 buf[bytes] = 0; 4815 buf[bytes] = 0;
4816 strcat(buf, "\n"); 4816 strcat(buf, "\n");
4817 4817
4818 /* MLE */ 4818 /* MLE */
4819 while((ptr = strstr(buf, "\n"))) 4819 while((ptr = strstr(buf, "\n")) != NULL)
4820 { 4820 {
4821 ptr[0] = 0; 4821 ptr[0] = 0;
4822 width = 0; 4822 width = 0;
4823 if(strlen(buf)) 4823 if(strlen(buf))
4824 dw_font_text_extents_get(handle, NULL, buf, &width, &height); 4824 dw_font_text_extents_get(handle, NULL, buf, &width, &height);
6403 NULL); 6403 NULL);
6404 char *file; 6404 char *file;
6405 HPIXMAP pixmap = NULL, disabled = NULL; 6405 HPIXMAP pixmap = NULL, disabled = NULL;
6406 HPOINTER icon = 0; 6406 HPOINTER icon = 0;
6407 6407
6408 if ( ( pixmap = calloc( 1, sizeof(struct _hpixmap) ) ) ) 6408 if((pixmap = calloc(1, sizeof(struct _hpixmap))) != NULL)
6409 { 6409 {
6410 int z, j, lim; 6410 int z, j, lim;
6411 LONG fore; 6411 LONG fore;
6412 file = tmpnam( NULL ); 6412 file = tmpnam( NULL );
6413 if ( file != NULL ) 6413 if ( file != NULL )
9271 9271
9272 _dw_send_msg(handle, CM_INSERTRECORD, MPFROMP(ci->data), MPFROMP(&recin), 0); 9272 _dw_send_msg(handle, CM_INSERTRECORD, MPFROMP(ci->data), MPFROMP(&recin), 0);
9273 9273
9274 free(ci); 9274 free(ci);
9275 9275
9276 if((pCore = _dw_container_start(handle, CRA_CURSORED))) 9276 if((pCore = _dw_container_start(handle, CRA_CURSORED)) != NULL)
9277 { 9277 {
9278 NOTIFYRECORDEMPHASIS pre; 9278 NOTIFYRECORDEMPHASIS pre;
9279 9279
9280 pre.pRecord = pCore; 9280 pre.pRecord = pCore;
9281 pre.fEmphasisMask = CRA_CURSORED; 9281 pre.fEmphasisMask = CRA_CURSORED;