📄 fincstruct.h
字号:
#ifndef _FINC_STRUCT_H_#define _FINC_STRUCT_H_#include <global.h>#include <hash.h>#include <str.h>#include <vector.h>#include <fincfield.h>#define FinC_STRUCT(obj) ((FinCStruct*) obj)typedef struct _FinCStruct FinCStruct;struct _FinCStruct{ Object parent; String* name; HashTable* hash_field; int size; int next_index;};FinCStruct* finc_struct_new(String* p_name);void finc_struct_destroy(Object* self);Vector* finc_struct_init_data(FinCStruct* self, ADT p_raw);void finc_struct_add_field (FinCStruct* self, FinCField* p_field);FinCField* finc_struct_get_field (FinCStruct* self, String* p_name);/*get the field offset in data block.*/int finc_struct_get_field_offset (FinCStruct* self, String* p_name);int finc_struct_get_field_index (FinCStruct* self, String* p_name);int finc_struct_get_size (FinCStruct* self);#endif
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -