You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
32 lines
663 B
32 lines
663 B
/**********
|
|
Copyright 1990 Regents of the University of California. All rights reserved.
|
|
Author: 1985 Thomas L. Quarles
|
|
**********/
|
|
|
|
/*
|
|
*CKTmkNode(ckt,node)
|
|
* Tentatively allocate a new circuit equation structure
|
|
*/
|
|
|
|
#include "ngspice.h"
|
|
#include <stdio.h>
|
|
#include "ifsim.h"
|
|
#include "iferrmsg.h"
|
|
#include "smpdefs.h"
|
|
#include "cktdefs.h"
|
|
|
|
|
|
/* ARGSUSED */
|
|
int
|
|
CKTmkNode(CKTcircuit *ckt, CKTnode **node)
|
|
{
|
|
CKTnode *mynode;
|
|
|
|
mynode = (CKTnode *)MALLOC(sizeof(CKTnode));
|
|
if(mynode == (CKTnode *)NULL) return(E_NOMEM);
|
|
mynode->next = (CKTnode *)NULL;
|
|
mynode->name = (IFuid) 0;
|
|
|
|
if(node) *node = mynode;
|
|
return(OK);
|
|
}
|