CIDER, use controlled_exit(1) instead of exit(1)
This commit is contained in:
parent
53555373dd
commit
bb868c74ed
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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;
|
||||
|
|
|
|||
|
|
@ -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 */
|
||||
|
|
|
|||
|
|
@ -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];
|
||||
|
|
|
|||
|
|
@ -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…
Reference in New Issue