From 09f3b68acbe3355a3c05793e1edfd56cefd87cbe Mon Sep 17 00:00:00 2001 From: dwarning Date: Sat, 20 Oct 2007 19:57:41 +0000 Subject: [PATCH] stay with tmalloc instead of MALLOC --- src/spicelib/devices/cktinit.c | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/spicelib/devices/cktinit.c b/src/spicelib/devices/cktinit.c index 91efc5b14..d644e67c4 100644 --- a/src/spicelib/devices/cktinit.c +++ b/src/spicelib/devices/cktinit.c @@ -3,15 +3,16 @@ Copyright 1990 Regents of the University of California. All rights reserved. Author: 1985 Thomas L. Quarles Modifed: 2000 AlansFixes **********/ -#include -#include + +#include "config.h" + #include "memory.h" -#include -#include -#include -#include -#include -#include +#include "cktdefs.h" +#include "devdefs.h" +#include "sperror.h" +#include "fteext.h" +#include "ifsim.h" +#include "dev.h" #ifdef XSPICE /* gtri - add - wbk - 11/26/90 - add include for MIF global data */ @@ -32,7 +33,7 @@ CKTinit(void **ckt) /* new circuit to create */ /* gtri - begin - dynamically allocate the array of model lists */ /* CKThead used to be statically sized in CKTdefs.h, but has been changed */ /* to a ** pointer */ - (sckt)->CKThead = (GENmodel **)MALLOC(DEVmaxnum * sizeof(GENmodel *)); + (sckt)->CKThead = (GENmodel **)tmalloc(DEVmaxnum * sizeof(GENmodel *)); if((sckt)->CKThead == NULL) return(E_NOMEM); /* gtri - end - dynamically allocate the array of model lists */