diff options
author | Søren Sandmann <sandmann@redhat.com> | 2007-10-17 02:04:39 -0400 |
---|---|---|
committer | Søren Sandmann <sandmann@redhat.com> | 2007-10-17 02:04:39 -0400 |
commit | af2c5e716c246bbd7ce7091b7af5b5230e27c366 (patch) | |
tree | 601eafa924c23be39e8b284d452f932196b81fa1 /ast.c | |
parent | 3f67e685baac1166bb5b053d20cfca9d22a238de (diff) |
Allow general types with new
Diffstat (limited to 'ast.c')
-rw-r--r-- | ast.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; |