finsh_var.h.svn-base

来自「RT-Thread是发展中的下一代微内核嵌入式实时操作系统」· SVN-BASE 代码 · 共 33 行

SVN-BASE
33
字号
#ifndef __FINSH_VAR_H__#define __FINSH_VAR_H__#include <finsh.h>/**The variable in finsh is put in data segment as a global variable.The 'finsh_var' structure presents the structure of variable in data segment.*/struct finsh_var{	char name[FINSH_NAME_MAX + 1];	/* the name of variable */	u_char type;					/* the type of variable */	/* variable value */	union {		char 	char_value;		short 	short_value;		int		int_value;		long	long_value;		void*	ptr;	}value;};extern struct finsh_var global_variable[];int finsh_var_init(void);int finsh_var_insert(const char* name, int type);int finsh_var_delete(const char* name);struct finsh_var* finsh_var_lookup(const char* name);#endif

⌨️ 快捷键说明

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