replace malloc by tmalloc
This commit is contained in:
parent
8362809e2d
commit
824ce581e6
|
|
@ -14,3 +14,6 @@ extern struct pnode *PP_mksnode(const char *string);
|
|||
#if defined (_MSC_VER)
|
||||
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
|
||||
#endif
|
||||
|
||||
#define malloc tmalloc
|
||||
#define free txfree
|
||||
|
|
|
|||
|
|
@ -731,7 +731,7 @@ cx_sortorder(void *data, short int type, int length, int *newlength, short int *
|
|||
int i;
|
||||
|
||||
amplitude_index_t *array_amplitudes;
|
||||
array_amplitudes = (amplitude_index_t *) malloc(sizeof(amplitude_index_t) * (size_t) length);
|
||||
array_amplitudes = (amplitude_index_t *) tmalloc(sizeof(amplitude_index_t) * (size_t) length);
|
||||
|
||||
*newlength = length;
|
||||
*newtype = VF_REAL;
|
||||
|
|
|
|||
|
|
@ -185,7 +185,7 @@ B4SOItemp(
|
|||
}
|
||||
|
||||
if (Size_Not_Found)
|
||||
{ pParam = (struct b4soiSizeDependParam *)malloc(
|
||||
{ pParam = (struct b4soiSizeDependParam *)tmalloc(
|
||||
sizeof(struct b4soiSizeDependParam));
|
||||
if (pLastKnot == NULL)
|
||||
model->pSizeDependParamKnot = pParam;
|
||||
|
|
|
|||
|
|
@ -13,3 +13,6 @@ extern INPparseNode *PT_mksnode(const char *string, void *ckt);
|
|||
#if defined (_MSC_VER)
|
||||
# define __func__ __FUNCTION__ /* __func__ is C99, but MSC can't */
|
||||
#endif
|
||||
|
||||
#define malloc tmalloc
|
||||
#define free txfree
|
||||
|
|
|
|||
Loading…
Reference in New Issue