From 6342bec8ec77473bf63484a7f9170f85a414ae7e Mon Sep 17 00:00:00 2001 From: rlar Date: Sat, 12 Mar 2016 12:21:44 +0100 Subject: [PATCH] everywhere, drop `MALLOC()' and `REALLOC()' --- src/include/ngspice/memory.h | 2 -- src/maths/sparse/spdefs.h | 2 -- 2 files changed, 4 deletions(-) diff --git a/src/include/ngspice/memory.h b/src/include/ngspice/memory.h index 658f46552..fee10b991 100644 --- a/src/include/ngspice/memory.h +++ b/src/include/ngspice/memory.h @@ -29,9 +29,7 @@ extern void txfree(void *ptr); #include "ngspice/stringutil.h" /* va: spice3 internally bzero */ -#define MALLOC(x) tmalloc((size_t) (x)) #define FREE(x) do { if(x) { txfree(x); (x) = NULL; } } while(0) -#define REALLOC(x, y) trealloc(x, (size_t) (y)) #define ZERO(PTR, TYPE) bzero(PTR, sizeof(TYPE)) diff --git a/src/maths/sparse/spdefs.h b/src/maths/sparse/spdefs.h index f88255a3f..0eaf0b0a1 100644 --- a/src/maths/sparse/spdefs.h +++ b/src/maths/sparse/spdefs.h @@ -38,9 +38,7 @@ #include #undef ABORT -#undef MALLOC #undef FREE -#undef REALLOC