summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-09-05 02:59:52 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-09-05 02:59:52 -0400
commitaab51ea15f4747bc9ed02ef0070f709ee9772829 (patch)
treecf0181f27983471bdd52826ee7fa44e32fd3a4ac /ast.c
parentf68dde83dbbd6ff3a8c8105e155f9974fe14e849 (diff)
Rename class type to object type
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c14
1 files changed, 7 insertions, 7 deletions
diff --git a/ast.c b/ast.c
index 5cc7596..86d219e 100644
--- a/ast.c
+++ b/ast.c
@@ -402,20 +402,20 @@ ast_type_spec_new_function (ast_type_spec_t *return_,
}
void
-ast_type_spec_init_class (ast_type_spec_t *type_spec,
- ast_class_definition_t *class)
+ast_type_spec_init_object (ast_type_spec_t *type_spec,
+ ast_class_definition_t *class)
{
- type_spec->common.type = AST_CLASS_TYPE;
+ type_spec->common.type = AST_OBJECT_TYPE;
- type_spec->class.class = class;
+ type_spec->object.class = class;
}
ast_type_spec_t *
-ast_type_spec_new_class (ast_class_definition_t *class)
+ast_type_spec_new_object (ast_class_definition_t *class)
{
- ast_type_spec_t *type_spec = ast_type_spec_new (AST_CLASS_TYPE);
+ ast_type_spec_t *type_spec = ast_type_spec_new (AST_OBJECT_TYPE);
- ast_type_spec_init_class (type_spec, class);
+ ast_type_spec_init_object (type_spec, class);
return type_spec;
}