📄 finsh_var.h
字号:
#ifndef __FINSH_VAR_H__
#define __FINSH_VAR_H__
#include "finsh/finsh_opts.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
{
u_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;
};
};
int finsh_var_init();
int finsh_var_insert(const u_char* name, int type);
int finsh_var_delete(const u_char* name);
struct finsh_var* finsh_var_lookup(const u_char* name);
#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -