CKTfndDev(), drop unused argument `modfast'

This commit is contained in:
rlar 2013-06-30 22:44:20 +02:00
parent 771d1fa697
commit 0ab6a6e463
11 changed files with 15 additions and 15 deletions

View File

@ -614,7 +614,7 @@ finddev_special(
int err;
int type = -1;
err = ft_sim->findInstance (ckt, &type, devptr, name, NULL);
err = ft_sim->findInstance (ckt, &type, devptr, name);
if (err == OK) {
*device_or_model = 0;
return (type);
@ -1215,7 +1215,7 @@ finddev(CKTcircuit *ckt, char *name, GENinstance **devptr, GENmodel **modptr)
int err;
int type = -1;
err = ft_sim->findInstance (ckt, &type, devptr, name, NULL);
err = ft_sim->findInstance (ckt, &type, devptr, name);
if (err == OK)
return (type);

View File

@ -319,7 +319,7 @@ extern void NDEVacct(CKTcircuit *ckt, FILE *file);
extern void CKTncDump(CKTcircuit *);
extern int CKTfndAnal(CKTcircuit *, int *, JOB **, IFuid , TSKtask *, IFuid);
extern int CKTfndBranch(CKTcircuit *, IFuid);
extern int CKTfndDev(CKTcircuit *, int *, GENinstance **, IFuid , GENmodel *);
extern int CKTfndDev(CKTcircuit *, int *, GENinstance **, IFuid);
extern int CKTfndMod(CKTcircuit *, int *, GENmodel **, IFuid);
extern int CKTfndNode(CKTcircuit *, CKTnode **, IFuid);
extern int CKTfndTask(CKTcircuit *, TSKtask **, IFuid );

View File

@ -370,7 +370,7 @@ struct IFsimulator {
/* set a parameter on an instance */
int (*askInstanceQuest) (CKTcircuit *, GENinstance *, int, IFvalue *, IFvalue *);
/* ask a question about an instance */
int (*findInstance) (CKTcircuit *, int *, GENinstance **, IFuid, GENmodel *);
int (*findInstance) (CKTcircuit *, int *, GENinstance **, IFuid);
/* find a specific instance */
int (*deleteInstance) (CKTcircuit *, void *);
/* delete an instance from the circuit */

View File

@ -48,7 +48,7 @@ NOISEan (CKTcircuit *ckt, int restart)
inst = NULL;
code = CKTtypelook("Vsource");
if (code != -1) {
error = CKTfndDev(ckt, &code, &inst, job->input, NULL);
error = CKTfndDev(ckt, &code, &inst, job->input);
if (!error && !((VSRCinstance *)inst)->VSRCacGiven) {
errMsg = TMALLOC(char, strlen(noacinput) + 1);
strcpy(errMsg,noacinput);
@ -58,7 +58,7 @@ NOISEan (CKTcircuit *ckt, int restart)
code = CKTtypelook("Isource");
if (code != -1 && inst==NULL) {
error = CKTfndDev(ckt, &code, &inst, job->input, NULL);
error = CKTfndDev(ckt, &code, &inst, job->input);
if (error) {
/* XXX ??? */
SPfrontEnd->IFerror (ERR_WARNING,

View File

@ -51,7 +51,7 @@ TFanal(CKTcircuit *ckt, int restart)
Itype = CKTtypelook("Isource");
Vtype = CKTtypelook("Vsource");
if(Itype != -1) {
error = CKTfndDev(ckt, &Itype, &ptr, job->TFinSrc, NULL);
error = CKTfndDev(ckt, &Itype, &ptr, job->TFinSrc);
if(error ==0) {
job->TFinIsI = 1;
job->TFinIsV = 0;
@ -61,7 +61,7 @@ TFanal(CKTcircuit *ckt, int restart)
}
if( (Vtype != -1) && (ptr==NULL) ) {
error = CKTfndDev(ckt, &Vtype, &ptr, job->TFinSrc, NULL);
error = CKTfndDev(ckt, &Vtype, &ptr, job->TFinSrc);
job->TFinIsV = 1;
job->TFinIsI = 0;
if(error !=0) {

View File

@ -31,7 +31,7 @@ CKTcrtElt(CKTcircuit *ckt, GENmodel *modPtr, GENinstance **inInstPtr, IFuid name
type = modPtr->GENmodType;
error = CKTfndDev(ckt, &type, &instPtr, name, modPtr);
error = CKTfndDev(ckt, &type, &instPtr, name);
if (error == OK) {
if (inInstPtr)

View File

@ -11,7 +11,7 @@ Author: 1985 Thomas L. Quarles
int
CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name, GENmodel *modfast)
CKTfndDev(CKTcircuit *ckt, int *type, GENinstance **fast, IFuid name)
{
GENinstance *here;

View File

@ -43,7 +43,7 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
return(E_INTERN);
}
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind1), here->MUTindName1, NULL);
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind1), here->MUTindName1);
if(error && error!= E_NODEV && error != E_NOMOD) return(error);
if(error) {
IFuid namarray[2];
@ -53,7 +53,7 @@ MUTsetup(SMPmatrix *matrix, GENmodel *inModel, CKTcircuit *ckt, int *states)
"%s: coupling to non-existant inductor %s.",
namarray);
}
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind2), here->MUTindName2, NULL);
error = CKTfndDev(ckt, &ktype, (GENinstance **) &(here->MUTind2), here->MUTindName2);
if(error && error!= E_NODEV && error != E_NOMOD) return(error);
if(error) {
IFuid namarray[2];

View File

@ -40,7 +40,7 @@ INPaName(char *parm, IFvalue * val, CKTcircuit *ckt, int *dev, char *devnam,
* (name, type, direct pointer) - the type and direct pointer
* WILL be set on return unless error is not OK
*/
error = sim->findInstance (ckt, dev, fast, devnam, NULL);
error = sim->findInstance (ckt, dev, fast, devnam);
if (error)
return (error);

View File

@ -1394,7 +1394,7 @@ get_mod_param TCL_CMDPROCARGS(clientData, interp, argc, argv)
/* get the unique IFuid for name (device/model) */
INPretrieve(&name, ft_curckt->ci_symtab);
err = ft_sim->findInstance (ft_curckt->ci_ckt, &typecode, &devptr, name, NULL);
err = ft_sim->findInstance (ft_curckt->ci_ckt, &typecode, &devptr, name);
if (err != OK) {
typecode = -1;
devptr = NULL;

View File

@ -42,7 +42,7 @@ SENstartup(CKTcircuit *ckt, int restart)
type = -1;
fast = NULL;
err = CKTfndDev(ckt, &type, &fast, ckt->CKTsenInfo->SENdevices[i], NULL);
err = CKTfndDev(ckt, &type, &fast, ckt->CKTsenInfo->SENdevices[i]);
if (err != OK)
return err;