Browse Source

use CKTcircuit instead of void*, #2/4

pre-master-46
rlar 16 years ago
parent
commit
fe68605770
  1. 8
      ChangeLog
  2. 2
      src/include/cktdefs.h
  3. 2
      src/include/ifsim.h
  4. 2
      src/spicelib/analysis/ckt.h
  5. 4
      src/spicelib/analysis/cktaskaq.c

8
ChangeLog

@ -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 ,

2
src/include/cktdefs.h

@ -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 *);

2
src/include/ifsim.h

@ -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 */

2
src/spicelib/analysis/ckt.h

@ -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 *);

4
src/spicelib/analysis/cktaskaq.c

@ -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));
}
Loading…
Cancel
Save