Formatting
This commit is contained in:
parent
c179b01734
commit
9bc9d94244
|
|
@ -29,16 +29,13 @@ CKTinit(CKTcircuit **ckt) /* new circuit to create */
|
||||||
CKTcircuit *sckt = TMALLOC(CKTcircuit, 1);
|
CKTcircuit *sckt = TMALLOC(CKTcircuit, 1);
|
||||||
*ckt = sckt;
|
*ckt = sckt;
|
||||||
if (sckt == NULL)
|
if (sckt == NULL)
|
||||||
return(E_NOMEM);
|
return(E_NOMEM);
|
||||||
/* gtri - begin - dynamically allocate the array of model lists */
|
|
||||||
/* CKThead used to be statically sized in CKTdefs.h, but has been changed */
|
/* dynamically allocate the array of model lists */
|
||||||
/* to a ** pointer */
|
|
||||||
sckt->CKThead = TMALLOC(GENmodel *, DEVmaxnum);
|
sckt->CKThead = TMALLOC(GENmodel *, DEVmaxnum);
|
||||||
if(sckt->CKThead == NULL) return(E_NOMEM);
|
if(sckt->CKThead == NULL)
|
||||||
/* gtri - end - dynamically allocate the array of model lists */
|
return(E_NOMEM);
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
for (i = 0; i < DEVmaxnum; i++)
|
for (i = 0; i < DEVmaxnum; i++)
|
||||||
sckt->CKThead[i] = NULL;
|
sckt->CKThead[i] = NULL;
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue