Fix bug in generate_c_inlinefcall.cc that prevent to use extendible standard functions
authorlaurent
Sun, 09 Oct 2011 20:16:41 +0200
changeset 380 b78e59ed4269
parent 379 7dc97c825bb8
child 381 2fd934b91ffd
Fix bug in generate_c_inlinefcall.cc that prevent to use extendible standard functions
stage4/generate_c/generate_c_inlinefcall.cc
--- a/stage4/generate_c/generate_c_inlinefcall.cc	Sun Oct 09 20:12:05 2011 +0200
+++ b/stage4/generate_c/generate_c_inlinefcall.cc	Sun Oct 09 20:16:41 2011 +0200
@@ -24,6 +24,7 @@
 
 
 #define INLINE_RESULT_TEMP_VAR "__res"
+#define INLINE_PARAM_COUNT "__PARAM_COUNT"
 
 class generate_c_inlinefcall_c: public generate_c_typedecl_c {
 
@@ -520,7 +521,7 @@
           if ((res >= 32) || (res < 0)) ERROR;
           identifier_c *param_value = new identifier_c(tmp);
           uint_type_name_c *param_type  = new uint_type_name_c();
-          identifier_c *param_name = new identifier_c("");
+          identifier_c *param_name = new identifier_c(INLINE_PARAM_COUNT);
           ADD_PARAM_LIST(param_name, param_value, param_type, function_param_iterator_c::direction_in)
           found_first_extensible_parameter = true;
         }
@@ -702,7 +703,7 @@
           if ((res >= 32) || (res < 0)) ERROR;
           identifier_c *param_value = new identifier_c(tmp);
           uint_type_name_c *param_type  = new uint_type_name_c();
-          identifier_c *param_name = new identifier_c("");
+          identifier_c *param_name = new identifier_c(INLINE_PARAM_COUNT);
           ADD_PARAM_LIST(param_name, param_value, param_type, function_param_iterator_c::direction_in)
           found_first_extensible_parameter = true;
         }
@@ -1068,7 +1069,7 @@
           if ((res >= 32) || (res < 0)) ERROR;
           identifier_c *param_value = new identifier_c(tmp);
           uint_type_name_c *param_type  = new uint_type_name_c();
-          identifier_c *param_name = new identifier_c("");
+          identifier_c *param_name = new identifier_c(INLINE_PARAM_COUNT);
           ADD_PARAM_LIST(param_name, param_value, param_type, function_param_iterator_c::direction_in)
           found_first_extensible_parameter = true;
         }