Subversion Repositories wimsdev

Rev

Rev 18155 | Rev 18158 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 18155 Rev 18157
Line 7009... Line 7009...
7009
        }
7009
        }
7010
        if (c == '\n' || c == '\r' || c == '\t' ){  line_number++; }
7010
        if (c == '\n' || c == '\r' || c == '\t' ){  line_number++; }
7011
        if (c == EOF) {finished=1;return 0;}
7011
        if (c == EOF) {finished=1;return 0;}
7012
 
7012
 
7013
        temp[i]='\0';
7013
        temp[i]='\0';
7014
        input_type=(char*)my_newmem(strlen(temp));
7014
        if(strstr(temp,"dash") !=0 && strlen(temp) > 4 ){
7015
        snprintf(input_type,sizeof(temp),"%s",temp);
-
 
7016
        /* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */
7015
        /* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */
7017
        if(strstr(input_type,"dash") !=0 && strlen(input_type) > 4 ){
-
 
7018
            use_dashed = TRUE;int idx=0;
7016
            use_dashed = TRUE;int idx=0;
7019
            for(int p = 4; p < strlen(input_type); p++){temp[idx] = temp[p];idx++;}
7017
            for(int p = 4; p < strlen(temp); p++){temp[idx] = temp[p];idx++;}
7020
            free(input_type);input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp);
7018
            input_type = (char*)my_newmem(idx); snprintf(input_type,idx+1,"%s",temp);
-
 
7019
        }else{
-
 
7020
            input_type=(char*)my_newmem(strlen(temp));
-
 
7021
            snprintf(input_type,sizeof(temp),"%s",temp);
7021
        }
7022
        }
7022
/*      fprintf(stdout,"input_type = %s<br/>",input_type);*/
7023
/*      fprintf(stdout,"input_type = %s<br/>",input_type);*/
7023
        if( strcmp(input_type, size) == 0 ){
7024
        if( strcmp(input_type, size) == 0 ){
7024
        free(input_type);
7025
        free(input_type);
7025
        return SIZE;
7026
        return SIZE;