frontend/device.c, com_alter_common(), #10/11 whitespace
This commit is contained in:
parent
78a0f74bbc
commit
c1b9f746a3
|
|
@ -1321,28 +1321,30 @@ com_alter_common(wordlist *wl, int do_model)
|
||||||
words = words->wl_next;
|
words = words->wl_next;
|
||||||
xsbuf = rem_xsbuf = wl_flatten(words);
|
xsbuf = rem_xsbuf = wl_flatten(words);
|
||||||
/* fprintf(cp_err, "Chain converted %s \n", xsbuf); */
|
/* fprintf(cp_err, "Chain converted %s \n", xsbuf); */
|
||||||
list = NULL;
|
|
||||||
for (;;) {
|
|
||||||
tmp = INPevaluate(&xsbuf, &error, 1);
|
|
||||||
if (error)
|
|
||||||
break;
|
|
||||||
/*printf(" returning vector value %g\n", tmp); */
|
|
||||||
list = TREALLOC(double, list, i + 1);
|
|
||||||
list[i++] = tmp;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (i < 1) {
|
list = NULL;
|
||||||
fprintf(cp_err, "Error: cannot evaluate new parameter value.\n");
|
for (;;) {
|
||||||
return;
|
tmp = INPevaluate(&xsbuf, &error, 1);
|
||||||
}
|
if (error)
|
||||||
|
break;
|
||||||
|
/* printf(" returning vector value %g\n", tmp); */
|
||||||
|
list = TREALLOC(double, list, i + 1);
|
||||||
|
list[i++] = tmp;
|
||||||
|
}
|
||||||
|
|
||||||
dv = TMALLOC(struct dvec, 1);
|
if (i < 1) {
|
||||||
if (!dv)
|
fprintf(cp_err, "Error: cannot evaluate new parameter value.\n");
|
||||||
return;
|
return;
|
||||||
dv->v_name = copy("real vector");
|
}
|
||||||
dv->v_type = SV_NOTYPE;
|
|
||||||
dv->v_flags = VF_REAL;
|
dv = TMALLOC(struct dvec, 1);
|
||||||
dv->v_realdata = list;
|
if (!dv)
|
||||||
|
return;
|
||||||
|
|
||||||
|
dv->v_name = copy("real vector");
|
||||||
|
dv->v_type = SV_NOTYPE;
|
||||||
|
dv->v_flags = VF_REAL;
|
||||||
|
dv->v_realdata = list;
|
||||||
dv->v_length = i;
|
dv->v_length = i;
|
||||||
|
|
||||||
/* Here I was, to change the inclusion in the circuit.
|
/* Here I was, to change the inclusion in the circuit.
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue