summaryrefslogtreecommitdiff
path: root/ast.c
diff options
context:
space:
mode:
authorSøren Sandmann Pedersen <ssp@redhat.com>2012-06-14 14:35:42 -0400
committerSøren Sandmann Pedersen <ssp@redhat.com>2012-06-14 14:35:42 -0400
commitfbfd8e534c7e47b82f10d5c434328a28658b10dc (patch)
treecffb40b5da238fcbf56ea015d8187b063890c821 /ast.c
parenta04ee9ff196726d48da67d5b95611c118184a815 (diff)
Add support for multiple comma separated expressions
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 280b046..454b72e 100644
--- a/ast.c
+++ b/ast.c
@@ -131,11 +131,11 @@ ast_statement_new_definition (ast_definition_t *def)
}
ast_statement_t *
-ast_statement_new_print (ast_expression_t *expr)
+ast_statement_new_print (ast_expression_t **exprs)
{
ast_statement_t *statement = statement_new (AST_PRINT_STATEMENT);
- statement->print.expr = expr;
+ statement->print.exprs = exprs;
g_assert (statement->common.type == AST_PRINT_STATEMENT);