Browse Source

simplify #ifdef nesting #4/4

pre-master-46
rlar 13 years ago
parent
commit
503f5d5c26
  1. 20
      src/spicelib/analysis/dcpss.c
  2. 20
      src/spicelib/analysis/dctran.c

20
src/spicelib/analysis/dcpss.c

@ -1265,18 +1265,7 @@ resume:
}
/* gtri - end - wbk - Modify Breakpoint stuff */
#else /* !XSPICE */
#ifdef CLUSTER
if(!CLUsync(ckt->CKTtime,&ckt->CKTdelta,0)) {
fprintf (stderr, "Sync error!\n");
exit(0);
}
#endif
#endif /* XSPICE */
#ifdef XSPICE
/* gtri - begin - wbk - Do event solution */
if(ckt->evt->counts.num_insts > 0) {
@ -1319,6 +1308,15 @@ resume:
} /* end if there are event instances */
/* gtri - end - wbk - Do event solution */
#else
#ifdef CLUSTER
if(!CLUsync(ckt->CKTtime,&ckt->CKTdelta,0)) {
fprintf (stderr, "Sync error!\n");
exit(0);
}
#endif /* CLUSTER */
#endif
/* What is that??? */

20
src/spicelib/analysis/dctran.c

@ -622,18 +622,7 @@ resume:
}
/* gtri - end - wbk - Modify Breakpoint stuff */
#else /* !XSPICE */
#ifdef CLUSTER
if(!CLUsync(ckt->CKTtime,&ckt->CKTdelta,0)) {
printf("Sync error!\n");
exit(0);
}
#endif
#endif /* XSPICE */
#ifdef XSPICE
/* gtri - begin - wbk - Do event solution */
if(ckt->evt->counts.num_insts > 0) {
@ -676,6 +665,15 @@ resume:
} /* end if there are event instances */
/* gtri - end - wbk - Do event solution */
#else
#ifdef CLUSTER
if(!CLUsync(ckt->CKTtime,&ckt->CKTdelta,0)) {
printf("Sync error!\n");
exit(0);
}
#endif /* CLUSTER */
#endif
for(i=5; i>=0; i--)
ckt->CKTdeltaOld[i+1] = ckt->CKTdeltaOld[i];

Loading…
Cancel
Save