transform(), drop unused argument `u_p'
This commit is contained in:
parent
ea6290f666
commit
7cf4338981
|
|
@ -286,8 +286,7 @@ modernizeex(SPICE_DSTRINGPTR dstr_p)
|
||||||
|
|
||||||
|
|
||||||
static char
|
static char
|
||||||
transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol,
|
transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol)
|
||||||
SPICE_DSTRINGPTR u_p)
|
|
||||||
/* line s is categorized and crippled down to basic Spice
|
/* line s is categorized and crippled down to basic Spice
|
||||||
* returns in u control word following dot, if any
|
* returns in u control word following dot, if any
|
||||||
*
|
*
|
||||||
|
|
@ -312,14 +311,13 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol,
|
||||||
* 'B' netlist (or .model ?) line that had Braces killed
|
* 'B' netlist (or .model ?) line that had Braces killed
|
||||||
*/
|
*/
|
||||||
{
|
{
|
||||||
int k, a, n;
|
int a, n;
|
||||||
char *s; /* dstring value of dstr_p */
|
char *s; /* dstring value of dstr_p */
|
||||||
char *t; /* dstring value of tstr */
|
char *t; /* dstring value of tstr */
|
||||||
char category;
|
char category;
|
||||||
SPICE_DSTRING tstr; /* temporary string */
|
SPICE_DSTRING tstr; /* temporary string */
|
||||||
|
|
||||||
spice_dstring_init(&tstr);
|
spice_dstring_init(&tstr);
|
||||||
spice_dstring_reinit(u_p);
|
|
||||||
stripsomespace(dstr_p, incontrol);
|
stripsomespace(dstr_p, incontrol);
|
||||||
modernizeex(dstr_p); /* required for stripbraces count */
|
modernizeex(dstr_p); /* required for stripbraces count */
|
||||||
|
|
||||||
|
|
@ -328,13 +326,8 @@ transform(dico_t *dico, SPICE_DSTRINGPTR dstr_p, bool incontrol,
|
||||||
if (s[0] == '.') {
|
if (s[0] == '.') {
|
||||||
/* check PS parameter format */
|
/* check PS parameter format */
|
||||||
scopy_up(&tstr, spice_dstring_value(dstr_p));
|
scopy_up(&tstr, spice_dstring_value(dstr_p));
|
||||||
k = 1;
|
|
||||||
|
|
||||||
t = spice_dstring_value(&tstr);
|
t = spice_dstring_value(&tstr);
|
||||||
while (t[k] > ' ') {
|
|
||||||
cadd(u_p, t[k]);
|
|
||||||
k++;
|
|
||||||
}
|
|
||||||
|
|
||||||
if (ci_prefix(".PARAM", t) == 1) {
|
if (ci_prefix(".PARAM", t) == 1) {
|
||||||
/* comment it out */
|
/* comment it out */
|
||||||
|
|
@ -741,10 +734,8 @@ nupa_copy(struct card *deck)
|
||||||
int ls;
|
int ls;
|
||||||
char c, d;
|
char c, d;
|
||||||
SPICE_DSTRING u;
|
SPICE_DSTRING u;
|
||||||
SPICE_DSTRING keywd;
|
|
||||||
|
|
||||||
spice_dstring_init(&u);
|
spice_dstring_init(&u);
|
||||||
spice_dstring_init(&keywd);
|
|
||||||
ls = (int) strlen(s);
|
ls = (int) strlen(s);
|
||||||
|
|
||||||
while ((ls > 0) && (s[ls - 1] <= ' '))
|
while ((ls > 0) && (s[ls - 1] <= ' '))
|
||||||
|
|
@ -756,7 +747,7 @@ nupa_copy(struct card *deck)
|
||||||
if ((!inexpansionS) && (linenum >= 0) && (linenum <= dynmaxline)) {
|
if ((!inexpansionS) && (linenum >= 0) && (linenum <= dynmaxline)) {
|
||||||
linecountS++;
|
linecountS++;
|
||||||
dicoS->dynrefptr[linenum] = deck->line;
|
dicoS->dynrefptr[linenum] = deck->line;
|
||||||
c = transform(dicoS, &u, incontrolS, &keywd);
|
c = transform(dicoS, &u, incontrolS);
|
||||||
if (c == 'C')
|
if (c == 'C')
|
||||||
incontrolS = 1;
|
incontrolS = 1;
|
||||||
else if (c == 'E')
|
else if (c == 'E')
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue