Fixed typo in EN/ENO parameters handling for std library functions
authoretisserant
Sun, 04 Jan 2009 17:21:33 +0100
changeset 162 60a124678842
parent 161 a27957e13d42
child 163 61f65dd6eeb9
Fixed typo in EN/ENO parameters handling for std library functions
stage4/generate_c/generate_c_st.cc
--- a/stage4/generate_c/generate_c_st.cc	Tue Dec 23 13:21:19 2008 +0100
+++ b/stage4/generate_c/generate_c_st.cc	Sun Jan 04 17:21:33 2009 +0100
@@ -472,7 +472,7 @@
       EN_param_value = (symbol_c*)(new boolean_literal_c((symbol_c*)(new bool_type_name_c()), new boolean_true_c()));
     ADD_PARAM_LIST(EN_param_value, (symbol_c*)(new bool_type_name_c()), function_param_iterator_c::direction_in)
     
-    identifier_c eno_param_name("EN0");
+    identifier_c eno_param_name("ENO");
     /* Get the value from ENO param */
     symbol_c *ENO_param_value = function_call_param_iterator.search(&eno_param_name);
     ADD_PARAM_LIST(ENO_param_value, (symbol_c*)(new bool_type_name_c()), function_param_iterator_c::direction_out)
@@ -629,7 +629,7 @@
   for(int i = 1; (param_name = fp_iterator.next()) != NULL; i++) {
     function_param_iterator_c::param_direction_t param_direction = fp_iterator.param_direction();
     
-    fprintf(stderr, "param : %s\n", param_name->value);
+    /*fprintf(stderr, "param : %s\n", param_name->value);*/
     
     /* Get the value from a foo(<param_name> = <param_value>) style call */
     symbol_c *param_value = function_call_param_iterator.search(param_name);