stage4/generate_cc/generate_cc_base.cc
changeset 41 8998c8b24b60
parent 36 4d7fd441fbc3
child 55 8b7a21820737
equal deleted inserted replaced
40:873a5b60a7ea 41:8998c8b24b60
   192       s4o.print(")");
   192       s4o.print(")");
   193       return NULL;
   193       return NULL;
   194    	}
   194    	}
   195 
   195 
   196     void *print_compare_function(const char *function,
   196     void *print_compare_function(const char *function,
   197           const char *compare_sign,
   197           symbol_c *compare_type,
   198           symbol_c *l_exp,
   198           symbol_c *l_exp,
   199           symbol_c *r_exp) {
   199           symbol_c *r_exp) {
   200       s4o.print(function);
   200       s4o.print(function);
   201       s4o.print("(");
   201       compare_type->accept(*this);
   202       s4o.print(compare_sign);
   202       s4o.print("(2, ");
   203       s4o.print(", ");
       
   204       l_exp->accept(*this);
   203       l_exp->accept(*this);
   205       s4o.print(", ");
   204       s4o.print(", ");
   206       r_exp->accept(*this);
   205       r_exp->accept(*this);
   207       s4o.print(")");
   206       s4o.print(")");
   208       return NULL;
   207       return NULL;