⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 fincstruct.h

📁 FinC is Fava in C! A C-like syntax language. It s designed to apply to embededd system.
💻 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 + -