drop -1, extend enum Mif_Cntl_Src_Type_t
This commit is contained in:
parent
94f3120cae
commit
c2ca9a7998
|
|
@ -1,3 +1,11 @@
|
||||||
|
2010-07-10 Robert Larice
|
||||||
|
* src/include/miftypes.h ,
|
||||||
|
* src/xspice/mif/mifload.c ,
|
||||||
|
* src/xspice/mif/mifsetup.c ,
|
||||||
|
* src/xspice/mif/mifutil.c :
|
||||||
|
extend the Mif_Cntl_Src_Type_t enum, to avoid mixed use with integer -1.
|
||||||
|
FIXME, the switch() in mifsetup.c looks suspicious.
|
||||||
|
|
||||||
2010-07-10 Holger Vogt
|
2010-07-10 Holger Vogt
|
||||||
* com_measure2.c: allow variables v(n1)=v(n2)
|
* com_measure2.c: allow variables v(n1)=v(n2)
|
||||||
* inpcom.c: par('expression') in .four, .plot, .print, .meas, .save,
|
* inpcom.c: par('expression') in .four, .plot, .print, .meas, .save,
|
||||||
|
|
|
||||||
|
|
@ -168,6 +168,7 @@ typedef enum {
|
||||||
MIF_VCIS,
|
MIF_VCIS,
|
||||||
MIF_ICVS,
|
MIF_ICVS,
|
||||||
MIF_ICIS,
|
MIF_ICIS,
|
||||||
|
MIF_minus_one,
|
||||||
} Mif_Cntl_Src_Type_t;
|
} Mif_Cntl_Src_Type_t;
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -660,6 +660,8 @@ MIFload(
|
||||||
rhs[smp_data_out->branch] -= partial * cntl_input;
|
rhs[smp_data_out->branch] -= partial * cntl_input;
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
|
case MIF_minus_one:
|
||||||
|
break;
|
||||||
} /* end switch on controlled source type */
|
} /* end switch on controlled source type */
|
||||||
} /* end for number of input ports */
|
} /* end for number of input ports */
|
||||||
} /* end for number of input connections */
|
} /* end for number of input connections */
|
||||||
|
|
|
||||||
|
|
@ -435,6 +435,8 @@ MIFsetup(
|
||||||
case MIF_ICVS:
|
case MIF_ICVS:
|
||||||
CTSTALLOC(h.branch_ibranchcntl, branch, ibranch);
|
CTSTALLOC(h.branch_ibranchcntl, branch, ibranch);
|
||||||
break;
|
break;
|
||||||
|
case MIF_minus_one:
|
||||||
|
break;
|
||||||
} /* end switch on controlled source type */
|
} /* end switch on controlled source type */
|
||||||
} /* end for number of input ports */
|
} /* end for number of input ports */
|
||||||
} /* end for number of input connections */
|
} /* end for number of input connections */
|
||||||
|
|
@ -507,7 +509,7 @@ MIFunsetup(GENmodel *inModel,CKTcircuit *ckt)
|
||||||
case MIF_ICVS:
|
case MIF_ICVS:
|
||||||
case MIF_VCIS:
|
case MIF_VCIS:
|
||||||
case MIF_ICIS:
|
case MIF_ICIS:
|
||||||
case -1:
|
case MIF_minus_one: /* FIXME, really ? */
|
||||||
if(smp_data_out->branch)
|
if(smp_data_out->branch)
|
||||||
{
|
{
|
||||||
CKTdltNNum(ckt, smp_data_out->branch);
|
CKTdltNNum(ckt, smp_data_out->branch);
|
||||||
|
|
|
||||||
|
|
@ -302,7 +302,7 @@ Mif_Cntl_Src_Type_t MIFget_cntl_src_type(
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
return(-1);
|
return(MIF_minus_one);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue