#include "ctrump/common/varray.h"
#include "ctrump/common/mempool.h"
#include "ctrump/ast/ast.h"
#include "ctrump/ast/types.h"
Go to the source code of this file.
Functions | |
CTRUMP_EXTDEF void | ctrump_env_handle_record_decls (struct ctrump_record_type *record_type, struct ctrump_type_env *type_env, struct ctrump_struct_decl *decls, int num_decl, int num_field, struct ctrump_gccext_attribute *attr, struct ctrump_location *loc, struct ctrump_mempool *tree_pool) |
フィールドの宣言列(decls)からrecord_typeをつくる incomplete struct のrecord_type をわたすと complete struct になる |
Definition in file env.h.
CTRUMP_EXTDEF void ctrump_env_handle_record_decls | ( | struct ctrump_record_type * | record_type, | |
struct ctrump_type_env * | type_env, | |||
struct ctrump_struct_decl * | decls, | |||
int | num_decl, | |||
int | num_field, | |||
struct ctrump_gccext_attribute * | attr, | |||
struct ctrump_location * | loc, | |||
struct ctrump_mempool * | tree_pool | |||
) |
フィールドの宣言列(decls)からrecord_typeをつくる incomplete struct のrecord_type をわたすと complete struct になる
record_type | 構造体型(incomplete struct) | |
type_env | 型環境 | |
decls | フィールド宣言列 | |
num_decl | 宣言(declarator)の数 | |
num_field | フィールド(declaration)の数 | |
attr | この構造体のGCC attribute | |
loc | 宣言位置 | |
tree_pool | メモリプール |
Definition at line 194 of file env.c.
References ctrump_gccext_attribute::aligned, ctrump_record_type_field::attr, ctrump_record_type_field::bitfield_width, ctrump_struct_decl::code, CTRUMP_ALIGN_UNSPECIFIED, CTRUMP_BITFIELD_UNSPECIFIED, ctrump_complete_struct_type(), ctrump_env_handle_decl(), ctrump_mempool_alloc, CTRUMP_STRUCT_DECL_FIELDS, ctrump_struct_decl::decl, ctrump_struct_decl_decl::decls, ctrump_gccext_attribute::flags, ctrump_record_type_field::name, ctrump_struct_decl_decl::num_decls, ctrump_struct_decl_decl::spec, ctrump_record_type_field::type, and ctrump_struct_decl::u.
Referenced by build_struct().