replace malloc by tmalloc

This commit is contained in:
Holger Vogt 2017-11-04 16:26:23 +01:00
parent 8362809e2d
commit 824ce581e6
4 changed files with 8 additions and 2 deletions

View File

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

View File

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

View File

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

View File

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