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

This commit is contained in:
h_vogt 2016-11-12 15:24:15 +01:00
parent 53555373dd
commit bb868c74ed
5 changed files with 7 additions and 7 deletions

View File

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

View File

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

View File

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

View File

@ -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];

View File

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