Browse Source

everywhere, drop `MALLOC()' and `REALLOC()'

pre-master-46
rlar 10 years ago
parent
commit
6342bec8ec
  1. 2
      src/include/ngspice/memory.h
  2. 2
      src/maths/sparse/spdefs.h

2
src/include/ngspice/memory.h

@ -29,9 +29,7 @@ extern void txfree(void *ptr);
#include "ngspice/stringutil.h" /* va: spice3 internally bzero */ #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 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)) #define ZERO(PTR, TYPE) bzero(PTR, sizeof(TYPE))

2
src/maths/sparse/spdefs.h

@ -38,9 +38,7 @@
#include <stdio.h> #include <stdio.h>
#undef ABORT #undef ABORT
#undef MALLOC
#undef FREE #undef FREE
#undef REALLOC

Loading…
Cancel
Save