--- a/stage4/generate_c/generate_c_il.cc Fri Dec 26 09:39:18 2014 +0000
+++ b/stage4/generate_c/generate_c_il.cc Fri Dec 26 09:57:02 2014 +0000
@@ -1067,9 +1067,9 @@
if (function_block_type_name == NULL) ERROR;
/* Now find the declaration of the function block type being called... */
- function_block_declaration_c *fb_decl = function_block_type_symtable.find_value(function_block_type_name);
- /* should never occur. The function block type being called MUST be in the symtable... */
- if (fb_decl == function_block_type_symtable.end_value()) ERROR;
+ function_block_type_symtable_t::iterator iter = function_block_type_symtable.find(function_block_type_name);
+ if (iter == function_block_type_symtable.end()) ERROR; // The function block type being called MUST be in the symtable.
+ function_block_declaration_c *fb_decl = iter->second;
/* loop through each function block parameter, find the value we should pass
* to it, and then output the c equivalent...