diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-09-04 00:55:16 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-09-04 00:55:16 -0400 |
commit | 07233d517e4ff5c8aa1c3ea4fd91ea3fba6658b8 (patch) | |
tree | 7143de45acd9ed22f2a7a227ff27c4672641d1fc /ast.c | |
parent | 4d0dd6fd594eb4f6fd2ced69cf88a7340458e4d1 (diff) |
Working field access
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 9 |
1 files changed, 9 insertions, 0 deletions
@@ -402,6 +402,15 @@ ast_type_spec_new_class (ast_class_definition_t *class) return type_spec; } +ast_type_spec_t * +ast_type_spec_resolve (ast_type_spec_t *type) +{ + if (type->common.type == AST_IDENTIFIER_TYPE) + return ast_type_spec_resolve (type->identifier.resolved); + else + return type; +} + static ast_definition_t * definition_new (ast_definition_type_t type) { |