stage4/generate_cc/generate_cc_st.cc
changeset 33 4507beb2aac6
parent 32 289256ec66f1
child 41 8998c8b24b60
equal deleted inserted replaced
32:289256ec66f1 33:4507beb2aac6
   349     symbol_c *function_return_type = search_expression_type->get_type(symbol);
   349     symbol_c *function_return_type = search_expression_type->get_type(symbol);
   350     
   350     
   351     function_call_param_iterator_c function_call_param_iterator(symbol);
   351     function_call_param_iterator_c function_call_param_iterator(symbol);
   352     
   352     
   353     int nb_param = ((list_c *)symbol->parameter_assignment_list)->n;
   353     int nb_param = ((list_c *)symbol->parameter_assignment_list)->n;
       
   354 
       
   355 #include "st_code_gen.c"
       
   356 
       
   357 #if 0
   354     for(int current_param = 0; current_param < nb_param; current_param++) {
   358     for(int current_param = 0; current_param < nb_param; current_param++) {
   355       symbol_c *param_name = NULL;
   359       symbol_c *param_name = NULL;
   356       switch (current_function_type) {
   360       switch (current_function_type) {
   357         case function_add:
   361         case function_add:
   358         case function_and:
   362         case function_and:
   453             s4o.print(")");
   457             s4o.print(")");
   454           break;
   458           break;
   455         default: ERROR;
   459         default: ERROR;
   456       }
   460       }
   457     } /* for(...) */
   461     } /* for(...) */
       
   462 #endif
   458   }
   463   }
   459   else {
   464   else {
   460     /* loop through each function parameter, find the value we should pass
   465     /* loop through each function parameter, find the value we should pass
   461      * to it, and then output the c equivalent...
   466      * to it, and then output the c equivalent...
   462      */
   467      */