use CKTcircuit instead of void*, #2/4

This commit is contained in:
rlar 2010-07-07 17:28:29 +00:00
parent 72fc1a0186
commit fe68605770
5 changed files with 13 additions and 5 deletions

View File

@ -1,3 +1,11 @@
2010-07-07 Robert Larice
* src/include/cktdefs.h ,
* src/include/ifsim.h ,
* src/spicelib/analysis/ckt.h ,
* src/spicelib/analysis/cktaskaq.c :
the second of a series of four patches, which will change the code
to use the CKTcircuit type instead of the current mixed void*/char*
2010-07-07 Robert Larice
* src/tclspice.c ,
* src/frontend/com_option.c ,

View File

@ -277,7 +277,7 @@ extern int CKTacLoad(CKTcircuit *);
extern int CKTaccept(CKTcircuit *);
extern int CKTacct(CKTcircuit *, void *, int , IFvalue *);
extern int CKTask(void *, void *, int , IFvalue *, IFvalue *);
extern int CKTaskAnalQ(void *, void *, int , IFvalue *, IFvalue *);
extern int CKTaskAnalQ(CKTcircuit *, void *, int , IFvalue *, IFvalue *);
extern int CKTaskNodQst(void *, void *, int , IFvalue *, IFvalue *);
extern int CKTbindNode(void *, void *, int , void *);
extern void CKTbreakDump(CKTcircuit *);

View File

@ -395,7 +395,7 @@ struct IFsimulator {
/* create new analysis within a task */
int (*setAnalysisParm) (CKTcircuit *, void *, int, IFvalue *, IFvalue *);
/* set a parameter on an analysis */
int (*askAnalysisQuest) (void *, void *, int, IFvalue *, IFvalue *);
int (*askAnalysisQuest) (CKTcircuit *, void *, int, IFvalue *, IFvalue *);
/* ask a question about an analysis */
int (*findAnalysis) (void *, int *, void **, IFuid, void *, IFuid);
/* find a specific analysis */

View File

@ -19,7 +19,7 @@ int CKTacLoad( CKTcircuit *);
int CKTaccept( CKTcircuit *);
int CKTacct( CKTcircuit *, void *, int , IFvalue *);
int CKTask( void *, void *, int , IFvalue *, IFvalue *);
int CKTaskAnalQ( void *, void *, int , IFvalue *, IFvalue *);
int CKTaskAnalQ( CKTcircuit *, void *, int , IFvalue *, IFvalue *);
int CKTaskNodQst( void *, void *, int , IFvalue *, IFvalue *);
int CKTbindNode( void *, void *, int , void *);
void CKTbreakDump( CKTcircuit *);

View File

@ -16,10 +16,10 @@ extern SPICEanalysis *analInfo[];
/* ARGSUSED */
int
CKTaskAnalQ(void *ckt, void *analPtr, int parm, IFvalue *value, IFvalue *selector)
CKTaskAnalQ(CKTcircuit *ckt, void *analPtr, int parm, IFvalue *value, IFvalue *selector)
{
int type = ((JOB *)analPtr)->JOBtype;
if((analInfo[type]->askQuest) == NULL) return(E_BADPARM);
return( (*(analInfo[type]->askQuest))((CKTcircuit*)ckt,analPtr,parm,value));
return( (*(analInfo[type]->askQuest))(ckt,analPtr,parm,value));
}