Browse Source

drop -1, extend enum Mif_Cntl_Src_Type_t

pre-master-46
rlar 16 years ago
parent
commit
c2ca9a7998
  1. 8
      ChangeLog
  2. 1
      src/include/miftypes.h
  3. 2
      src/xspice/mif/mifload.c
  4. 4
      src/xspice/mif/mifsetup.c
  5. 2
      src/xspice/mif/mifutil.c

8
ChangeLog

@ -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
* com_measure2.c: allow variables v(n1)=v(n2)
* inpcom.c: par('expression') in .four, .plot, .print, .meas, .save,

1
src/include/miftypes.h

@ -168,6 +168,7 @@ typedef enum {
MIF_VCIS,
MIF_ICVS,
MIF_ICIS,
MIF_minus_one,
} Mif_Cntl_Src_Type_t;

2
src/xspice/mif/mifload.c

@ -660,6 +660,8 @@ MIFload(
rhs[smp_data_out->branch] -= partial * cntl_input;
}
break;
case MIF_minus_one:
break;
} /* end switch on controlled source type */
} /* end for number of input ports */
} /* end for number of input connections */

4
src/xspice/mif/mifsetup.c

@ -435,6 +435,8 @@ MIFsetup(
case MIF_ICVS:
CTSTALLOC(h.branch_ibranchcntl, branch, ibranch);
break;
case MIF_minus_one:
break;
} /* end switch on controlled source type */
} /* end for number of input ports */
} /* end for number of input connections */
@ -507,7 +509,7 @@ MIFunsetup(GENmodel *inModel,CKTcircuit *ckt)
case MIF_ICVS:
case MIF_VCIS:
case MIF_ICIS:
case -1:
case MIF_minus_one: /* FIXME, really ? */
if(smp_data_out->branch)
{
CKTdltNNum(ckt, smp_data_out->branch);

2
src/xspice/mif/mifutil.c

@ -302,7 +302,7 @@ Mif_Cntl_Src_Type_t MIFget_cntl_src_type(
}
return(-1);
return(MIF_minus_one);
}

Loading…
Cancel
Save