src/spicelib/parser/inpptree.c, avoid warning, drop nested local `arg1' ...
This commit is contained in:
parent
0e0c2785a4
commit
36aa107c0e
|
|
@ -325,19 +325,15 @@ static INPparseNode *PTdifferentiate(INPparseNode * p, int varnum)
|
||||||
// naive:
|
// naive:
|
||||||
// d/d ternary_fcn(cond,exp1,exp2) --> ternary_fcn(cond, d/d exp1, d/d exp2)
|
// d/d ternary_fcn(cond,exp1,exp2) --> ternary_fcn(cond, d/d exp1, d/d exp2)
|
||||||
{
|
{
|
||||||
INPparseNode *arg1 = p->left;
|
|
||||||
INPparseNode *arg2 = p->right->left;
|
|
||||||
INPparseNode *arg3 = p->right->right;
|
|
||||||
|
|
||||||
// extern void printTree(INPparseNode *);
|
// extern void printTree(INPparseNode *);
|
||||||
//
|
//
|
||||||
// printf("debug: %s, PT_TERN: ", __func__);
|
// printf("debug: %s, PT_TERN: ", __func__);
|
||||||
// printTree(p);
|
// printTree(p);
|
||||||
// printf("\n");
|
// printf("\n");
|
||||||
|
|
||||||
newp = mkb(PT_TERN, arg1, mkb(PT_COMMA,
|
newp = mkb(PT_TERN, p->left, mkb(PT_COMMA,
|
||||||
PTdifferentiate(arg2, varnum),
|
PTdifferentiate(p->right->left, varnum),
|
||||||
PTdifferentiate(arg3, varnum)));
|
PTdifferentiate(p->right->right, varnum)));
|
||||||
|
|
||||||
// printf("debug, %s, returns; ", __func__);
|
// printf("debug, %s, returns; ", __func__);
|
||||||
// printTree(newp);
|
// printTree(newp);
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue