Subversion Repositories wimsdev

Compare Revisions

Ignore whitespace Rev 18166 → Rev 18172

/trunk/wims/src/Misc/canvasdraw/canvasdraw.c
7024,8 → 7024,14
temp[i]='\0';
if(strstr(temp,"dash") !=0 && strlen(temp) > 4 && strstr(temp,"dashtype") == 0 ){
/* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */
use_dashed = TRUE;int idx=0;
for(int p = 4; p < strlen(temp); p++){temp[idx] = temp[p];idx++;}
use_dashed = TRUE;int idx=0;int p;
/*
Sophie Lemaire
When I compile the source of wims I have again the error message:
canvasdraw.c:7028: erreur: ?for? loop initial declarations are only allowed in C99 mode
canvasdraw.c:7028: note: use option -std=c99 or -std=gnu99 to compile your code
*/
for( p = 4; p < strlen(temp); p++){temp[idx] = temp[p];idx++;}
input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp);
}else{
input_type=(char*)my_newmem(strlen(temp));