aboutsummaryrefslogtreecommitdiff
path: root/gen_code.c
diff options
context:
space:
mode:
Diffstat (limited to 'gen_code.c')
-rw-r--r--gen_code.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/gen_code.c b/gen_code.c
index b89b622..c244dcb 100644
--- a/gen_code.c
+++ b/gen_code.c
@@ -135,6 +135,21 @@ ptree *t;
}
+void gen_arguments(t)
+ptree *t;
+{
+ if (t->type != LIST){
+ GEN_EXPR(t)
+ fprintf(stdout, "pushq\t%s", *reg_ptr);
+
+ fprintf(stdout, "\n##ARGUMENT BOUNDARY\n");
+ return;
+ }
+
+ gen_arguments(t->r);
+ gen_arguments(t->l);
+}
+
void gen_statement(t)
ptree *t;
{