4129,6 → 4129,11 |
reply_format = (int) get_real(infile,1); |
reply_precision = precision; |
break; |
|
case RESET: |
no_reset=FALSE; |
reset(); |
break; |
|
case ROUNDRECT: |
/* |
6318,6 → 6323,7 |
return; |
} |
|
|
void reset(){ |
if(no_reset == FALSE){ /* 8/5/2020 */ |
use_filled = FALSE; |
6391,7 → 6397,7 |
/* need to remover newline from svg-string on freebsd */ |
char *pch = strstr(buffer, "\n"); |
while(pch != NULL){ |
strncpy(pch, " ", 1); |
strcpy(pch, " "); |
pch = strstr(buffer, "\n"); |
} |
string_length = 1 + snprintf(NULL,0,"%s",buffer); |
6681,7 → 6687,7 |
} |
|
int count_substring(char* string, char* substring) { |
int i, j, l1, l2; |
int i, l1, l2; |
int count = 0; |
l1 = strlen(string); |
l2 = strlen(substring); |
6988,6 → 6994,7 |
*obabel="obabel", |
*chemtex="chemtex", |
*noreset="noreset", |
*reset="reset", |
*killreset="killreset", |
*arrowarc="arrowarc", |
*arcarrow="arcarrow", |
7016,11 → 7023,10 |
/* 4/2024 adapt to Flydraw's dashing syntax for all objects with prefix "dash" */ |
use_dashed = TRUE;int idx=0; |
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)); |
snprintf(input_type,sizeof(temp),"%s",temp); |
} |
input_type=(char*)my_newmem(strlen(temp)); |
snprintf(input_type,sizeof(temp),"%s",temp); |
|
/* fprintf(stdout,"input_type = %s<br/>",input_type);*/ |
if( strcmp(input_type, size) == 0 ){ |
free(input_type); |
7975,8 → 7981,13 |
return CHEMTEX; |
} |
if( strcmp(input_type, noreset) == 0 || strcmp(input_type, killreset) == 0 ){ |
free(input_type); |
return NORESET; |
} |
if( strcmp(input_type, reset) == 0 ){ |
free(input_type); |
return RESET; |
} |
if( strcmp(input_type, duplicates) == 0 || strcmp(input_type, allowdups) == 0 ){ |
free(input_type); |
return ALLOW_DUPLICATES; |