2003-09-30 Vera Albrecht <albrecht@danalyse.de>

* src/include/cktdefs.h src/spicelib/analysis/noisean.c:
	Fix resuming noise analysis causing segfault,
	also fix compiler warnings.
This commit is contained in:
stefanjones 2003-09-30 13:52:29 +00:00
parent 54b8757f3f
commit 126a96e4d3
3 changed files with 12 additions and 5 deletions

View File

@ -1,3 +1,9 @@
2003-09-30 Vera Albrecht <albrecht@danalyse.de>
* src/include/cktdefs.h src/spicelib/analysis/noisean.c:
Fix resuming noise analysis causing segfault,
also fix compiler warnings.
2003-08-31 Stefan Jones <stefan.jones@multigig.com>
* configure.in:

View File

@ -379,7 +379,8 @@ extern int NIpzSym(PZtrial **, PZtrial *);
extern int NIpzSym2(PZtrial **, PZtrial *);
extern int NIreinit( CKTcircuit *);
extern int NIsenReinit( CKTcircuit *);
extern int NIdIter (CKTcircuit *);
extern int NIdIter (CKTcircuit *);
extern void NInzIter(CKTcircuit *ckt, int posDrive, int negDrive);
extern IFfrontEnd *SPfrontEnd;
#endif /*CKT*/

View File

@ -25,7 +25,7 @@ extern int CKTnoise( CKTcircuit *, int, int, Ndata * );
int
NOISEan (CKTcircuit *ckt, int restart)
{
Ndata *data;
static Ndata *data;
double realVal;
double imagVal;
int error;
@ -34,7 +34,7 @@ NOISEan (CKTcircuit *ckt, int restart)
int code;
int step;
IFuid freqUid;
char *inst;
void *inst;
double freqTol; /* tolerence parameter for finding final frequency; hack */
NOISEAN *job = (NOISEAN*) (ckt->CKTcurJob);
@ -47,7 +47,7 @@ NOISEan (CKTcircuit *ckt, int restart)
inst = NULL;
code = CKTtypelook("Vsource");
if (code != -1) {
error = CKTfndDev((void *)ckt,&code,(void **)&inst,
error = CKTfndDev((void *)ckt,&code,&inst,
job->input, (void *)NULL, (IFuid)NULL);
if (!error && !((VSRCinstance *)inst)->VSRCacGiven) {
errMsg = MALLOC(strlen(noacinput)+1);
@ -58,7 +58,7 @@ NOISEan (CKTcircuit *ckt, int restart)
code = CKTtypelook("Isource");
if (code != -1 && inst==NULL) {
error = CKTfndDev((void *)ckt,&code, (void **)&inst,
error = CKTfndDev((void *)ckt,&code, &inst,
job->input, (void *)NULL,(IFuid)NULL);
if (error) {
/* XXX ??? */