summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorSøren Sandmann <sandmann@redhat.com>2007-10-17 02:04:39 -0400
committerSøren Sandmann <sandmann@redhat.com>2007-10-17 02:04:39 -0400
commitaf2c5e716c246bbd7ce7091b7af5b5230e27c366 (patch)
tree601eafa924c23be39e8b284d452f932196b81fa1 /ast.c
parent3f67e685baac1166bb5b053d20cfca9d22a238de (diff)
Allow general types with new
Diffstat (limited to 'ast.c')
-rw-r--r--ast.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ast.c b/ast.c
index 4d27e2a..8080c5f 100644
--- a/ast.c
+++ b/ast.c
@@ -375,12 +375,12 @@ ast_expression_new_statement (ast_statement_t *statement,
}
ast_expression_t *
-ast_expression_new_new (const char *type,
+ast_expression_new_new (ast_type_spec_t *type,
ast_expression_t **args)
{
ast_expression_t *expr = expression_new (AST_NEW_EXPRESSION);
- expr->new.type_name = g_strdup (type);
+ expr->new.type = type;
expr->new.args = args;
return expr;