Browse Source

CIDER, use controlled_exit(1) instead of exit(1)

pre-master-46
h_vogt 10 years ago
committed by rlar
parent
commit
d84387d449
  1. 2
      src/ciderlib/oned/onedopng.c
  2. 4
      src/ciderlib/support/suprmitf.c
  3. 2
      src/ciderlib/twod/twodopng.c
  4. 2
      src/include/ngspice/1-f-code.h
  5. 4
      src/include/ngspice/memory.h

2
src/ciderlib/oned/onedopng.c

@ -36,7 +36,7 @@ ONEdopingValue(DOPprofile *pProfile, DOPtable *pTable, double x)
if (pTable == NULL) {
fprintf(stderr, "Error: unknown impurity profile %d\n",
((int)pProfile->IMPID));
exit(1);
controlled_exit(1);
}
}
/* Find distances */

4
src/ciderlib/support/suprmitf.c

@ -208,7 +208,7 @@ SUPbinRead(char *inFile, float *x, float *conc, int *impId, int *numNod)
if(j < 0) {
fprintf(stderr, "internal error in %s, bye !\n", __FUNCTION__);
exit(1);
controlled_exit(1);
}
siIndex = j;
@ -344,7 +344,7 @@ SUPascRead(char *inFile, float *x, float *conc, int *impId, int *numNod)
if(j < 0) {
fprintf(stderr, "internal error in %s, bye !\n", __FUNCTION__);
exit(1);
controlled_exit(1);
}
siIndex = j;

2
src/ciderlib/twod/twodopng.c

@ -37,7 +37,7 @@ TWOdopingValue(DOPprofile *pProfile, DOPtable *pTable, double x,
if ( pTable == NULL ) {
fprintf( stderr, "Error: unknown impurity profile %d\n",
((int)pProfile->IMPID) );
exit(1);
controlled_exit(1);
}
}
/* Find distances */

2
src/include/ngspice/1-f-code.h

@ -53,7 +53,7 @@ trnoise_state_get(struct trnoise_state *this, CKTcircuit *ckt, size_t index)
if(index + TRNOISE_STATE_MEM_LEN < this->top) {
fprintf(stderr, "ouch, trying to fetch from the past %d %d\n",
(int)index, (int)this->top);
exit(1);
controlled_exit(1);
}
return this->points[index % TRNOISE_STATE_MEM_LEN];

4
src/include/ngspice/memory.h

@ -45,7 +45,7 @@ extern void txfree(const void *ptr);
do { \
if ((number) && (ptr = (type *)calloc((size_t)(number), sizeof(type))) == NULL) { \
SPfrontEnd->IFerrorf(E_PANIC, "Out of Memory"); \
exit(1); \
controlled_exit(1); \
} \
} while(0)
@ -53,7 +53,7 @@ extern void txfree(const void *ptr);
do { \
if ((number) && (ptr = (type *)calloc((size_t)(number), sizeof(type))) == NULL) { \
fprintf(stderr, "Out of Memory\n"); \
exit(1); \
controlled_exit(1); \
} \
} while(0)

Loading…
Cancel
Save