-struct declaration *_enum_declaration_new(struct type *type,
- struct declaration_scope *parent_scope);
+struct definition *_enum_definition_new(struct type *type,
+ struct definition_scope *parent_scope);
void enum_copy(struct stream_pos *dest, const struct format *fdest,
struct stream_pos *src, const struct format *fsrc,
void enum_copy(struct stream_pos *dest, const struct format *fdest,
struct stream_pos *src, const struct format *fsrc,
- struct declaration_enum *_enum =
- container_of(declaration, struct declaration_enum, p);
+ struct definition_enum *_enum =
+ container_of(definition, struct definition_enum, p);
enum_type->p.alignment = 1;
enum_type->p.copy = enum_copy;
enum_type->p.type_free = _enum_type_free;
enum_type->p.alignment = 1;
enum_type->p.copy = enum_copy;
enum_type->p.type_free = _enum_type_free;
- enum_type->p.declaration_new = _enum_declaration_new;
- enum_type->p.declaration_free = _enum_declaration_free;
+ enum_type->p.definition_new = _enum_definition_new;
+ enum_type->p.definition_free = _enum_definition_free;
-struct declaration *
- _enum_declaration_new(struct type *type,
- struct declaration_scope *parent_scope)
+struct definition *
+ _enum_definition_new(struct type *type,
+ struct definition_scope *parent_scope)
{
struct type_enum *enum_type =
container_of(type, struct type_enum, p);
{
struct type_enum *enum_type =
container_of(type, struct type_enum, p);
- declaration_integer_parent =
- enum_type->integer_type->p.declaration_new(&enum_type->integer_type->p,
+ definition_integer_parent =
+ enum_type->integer_type->p.definition_new(&enum_type->integer_type->p,
- _enum->integer = container_of(declaration_integer_parent,
- struct declaration_integer, p);
+ _enum->integer = container_of(definition_integer_parent,
+ struct definition_integer, p);
- struct declaration_enum *_enum =
- container_of(declaration, struct declaration_enum, p);
+ struct definition_enum *_enum =
+ container_of(definition, struct definition_enum, p);