stage4/generate_c/generate_c_base.cc
changeset 149 05ca171a3d57
parent 146 eef5e62048c7
child 160 59d58f5e6caa
--- a/stage4/generate_c/generate_c_base.cc	Wed Oct 15 15:38:58 2008 +0200
+++ b/stage4/generate_c/generate_c_base.cc	Fri Oct 24 16:37:46 2008 +0200
@@ -49,10 +49,19 @@
 
 
 
-
-
-
-
+typedef struct
+{
+  symbol_c *param_value;
+  symbol_c *param_type;
+  function_param_iterator_c::param_direction_t param_direction;
+} FUNCTION_PARAM;
+
+#define ADD_PARAM_LIST(value, type, direction)\
+  param = new FUNCTION_PARAM;\
+  param->param_value = value;\
+  param->param_type = type;\
+  param->param_direction = direction;\
+  param_list.push_back(*param);
 
 
 
@@ -201,7 +210,7 @@
           symbol_c *r_exp) {
       s4o.print(function);
       compare_type->accept(*this);
-      s4o.print("(2, ");
+      s4o.print("(__BOOL_LITERAL(TRUE), NULL, 2, ");
       l_exp->accept(*this);
       s4o.print(", ");
       r_exp->accept(*this);