mirror of
https://git.code.sf.net/p/ngspice/ngspice
synced 2026-09-07 04:53:15 +02:00
Integrated code from tclspice, brorson xspice and Vera memleak.
This commit is contained in:
@@ -17,6 +17,8 @@ extern void txfree(void *ptr);
|
||||
#define txfree(m)
|
||||
#endif
|
||||
|
||||
#include "../misc/stringutil.h" /* va: spice3 internally bzero */
|
||||
|
||||
#define alloc(TYPE) ((TYPE *) tmalloc(sizeof(TYPE)))
|
||||
#define MALLOC(x) tmalloc((unsigned)(x))
|
||||
#define FREE(x) {if (x) {txfree((char *)(x));(x) = 0;}}
|
||||
|
||||
Reference in New Issue
Block a user