prototypes, and avoid a NULL dereference when PZDEBUG is active
This commit is contained in:
parent
146069952d
commit
aaf3f9da1b
|
|
@ -1,3 +1,7 @@
|
||||||
|
2011-08-21 Robert Larice
|
||||||
|
* src/spicelib/analysis/cktpzstr.c :
|
||||||
|
prototypes, and avoid a NULL dereference when PZDEBUG is active
|
||||||
|
|
||||||
2011-08-21 Robert Larice
|
2011-08-21 Robert Larice
|
||||||
* src/frontend/outitf.c :
|
* src/frontend/outitf.c :
|
||||||
avoid segfault when printing aout a nonexistant `ReferenceValue' (pzan)
|
avoid segfault when printing aout a nonexistant `ReferenceValue' (pzan)
|
||||||
|
|
|
||||||
|
|
@ -37,7 +37,7 @@ void CKTpzReset(PZtrial **set);
|
||||||
|
|
||||||
|
|
||||||
#ifdef PZDEBUG
|
#ifdef PZDEBUG
|
||||||
static void show_trial( );
|
static void show_trial(PZtrial *new_trial, char x);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#define NITER_LIM 200
|
#define NITER_LIM 200
|
||||||
|
|
@ -1017,16 +1017,18 @@ zaddeq(double *a, int *amag, double x, int xmag, double y, int ymag)
|
||||||
|
|
||||||
#ifdef PZDEBUG
|
#ifdef PZDEBUG
|
||||||
static void
|
static void
|
||||||
show_trial(new_trial, x)
|
show_trial(PZtrial *new_trial, char x)
|
||||||
PZtrial *new_trial;
|
|
||||||
char x;
|
|
||||||
{
|
{
|
||||||
DEBUG(1) fprintf(stderr, "%c (%3d/%3d) %.15g %.15g :: %.30g %.30g %d\n", x,
|
DEBUG(1) {
|
||||||
|
if(new_trial) {
|
||||||
|
fprintf(stderr, "%c (%3d/%3d) %.15g %.15g :: %.30g %.30g %d\n", x,
|
||||||
NIter, new_trial->seq_num, new_trial->s.real, new_trial->s.imag,
|
NIter, new_trial->seq_num, new_trial->s.real, new_trial->s.imag,
|
||||||
new_trial->f_def.real, new_trial->f_def.imag, new_trial->mag_def);
|
new_trial->f_def.real, new_trial->f_def.imag, new_trial->mag_def);
|
||||||
DEBUG(1)
|
if (new_trial->flags & ISANABERRATION)
|
||||||
if (new_trial->flags & ISANABERRATION) {
|
|
||||||
fprintf(stderr, "*** numerical aberration ***\n");
|
fprintf(stderr, "*** numerical aberration ***\n");
|
||||||
|
} else {
|
||||||
|
fprintf(stderr, "%c (%3d/---) new_trial = nil\n", x, NIter);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue