`E..value=', `G..value=', allow `=' being optional
This commit is contained in:
parent
3f373a0a19
commit
7479e48f7a
|
|
@ -4229,12 +4229,10 @@ inp_compat(struct line *card)
|
||||||
/* Exxx n1 n2 value={equation}
|
/* Exxx n1 n2 value={equation}
|
||||||
-->
|
-->
|
||||||
Exxx n1 n2 vol={equation} */
|
Exxx n1 n2 vol={equation} */
|
||||||
if ((str_ptr = strstr(curr_line, "value=")) != NULL) {
|
if ((str_ptr = search_plain_identifier(curr_line, "value")) != NULL) {
|
||||||
str_ptr[0] = ' ';
|
if (str_ptr[5] == '=')
|
||||||
str_ptr[1] = ' ';
|
*str_ptr++ = ' ';
|
||||||
str_ptr[2] = 'v';
|
strncpy(str_ptr, " vol=", 5);
|
||||||
str_ptr[3] = 'o';
|
|
||||||
str_ptr[4] = 'l';
|
|
||||||
}
|
}
|
||||||
/* Exxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
|
/* Exxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
|
||||||
-->
|
-->
|
||||||
|
|
@ -4405,12 +4403,10 @@ inp_compat(struct line *card)
|
||||||
/* Gxxx n1 n2 value={equation}
|
/* Gxxx n1 n2 value={equation}
|
||||||
-->
|
-->
|
||||||
Gxxx n1 n2 cur={equation} */
|
Gxxx n1 n2 cur={equation} */
|
||||||
if ((str_ptr = strstr(curr_line, "value=")) != NULL) {
|
if ((str_ptr = search_plain_identifier(curr_line, "value")) != NULL) {
|
||||||
str_ptr[0] = ' ';
|
if (str_ptr[5] == '=')
|
||||||
str_ptr[1] = ' ';
|
*str_ptr++ = ' ';
|
||||||
str_ptr[2] = 'c';
|
strncpy(str_ptr, " cur=", 5);
|
||||||
str_ptr[3] = 'u';
|
|
||||||
str_ptr[4] = 'r';
|
|
||||||
}
|
}
|
||||||
|
|
||||||
/* Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
|
/* Gxxx n1 n2 TABLE {expression} = (x0, y0) (x1, y1) (x2, y2)
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue