📄 cktlnkeq.c
字号:
/**********Copyright 1990 Regents of the University of California. All rights reserved.Author: 1985 Thomas L. Quarles**********/ /* *CKTlinkEq * Link an already allocated node into the necessary structure */#include "spice.h"#include <stdio.h>#include "ifsim.h"#include "iferrmsg.h"#include "smpdefs.h"#include "cktdefs.h"#include "util.h"#include "suffix.h"intCKTlinkEq(ckt,node) CKTcircuit *ckt; CKTnode *node;{ if(!(ckt->CKTnodes)) { /* starting the list - allocate both ground and 1 */ ckt->CKTnodes = (CKTnode *) MALLOC(sizeof(CKTnode)); if(ckt->CKTnodes == (CKTnode *)NULL) return(E_NOMEM); ckt->CKTnodes->name = (char *)NULL; ckt->CKTnodes->type = SP_VOLTAGE; ckt->CKTnodes->number = 0; ckt->CKTlastNode = ckt->CKTnodes; } if(node == (CKTnode *)NULL) return(E_BADPARM); ckt->CKTlastNode->next = node; ckt->CKTlastNode = ckt->CKTlastNode->next; ckt->CKTlastNode->number = ckt->CKTmaxEqNum++; ckt->CKTlastNode->next = (CKTnode *)NULL; return(OK);}
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -