对于定义的操作.h

来自「ns2的tcl脚本的解析器,能够解析简单的有限网络下的tcl脚本,并保存为.da」· C头文件 代码 · 共 35 行

H
35
字号
int nodeseq_index(char *word,struct NODE *nodehead);//按结点名查结点序号
struct LINK *link_genera(struct buffer *sentehead,int flag);//生成新的链表节点
void link_inser(struct LINK *newlink,struct LINK *linktail);//插入新的链表结点
struct LINK *link_index(struct LINK *linkhead);//查找链表的队列尾
void link_operate(struct buffer *sentehead,struct LINK *linkhead,struct NODE *nodehead,int flag);//链表的定义操作
struct NODE *node_genera(struct buffer *sentehead,int seq);//生成新结点
void node_inser(struct NODE *newnode,struct NODE *nodetail);//插入新结点
struct NODE *node_index(struct NODE *nodehead);//查找结点队列尾
void node_operate(struct buffer *sentehead,struct NODE *nodehead);//结点定义的操作
struct topo *operate(struct topo *result,struct buffer *sentehead,int flag);//对定义的操作

//数据结构定义
struct LINK
{
	int type;//double or simple
	int from;
	int end;            
	char capability[10];
	struct LINK *next;
	int dest;
};
struct NODE
{
	char name[10];
	int  seq;
	struct NODE *next;
	int dir;
	int type;//流量有待解决
};
struct topo
{
	struct NODE *nodehead;
	struct LINK *linkhead;
};

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?