equal
deleted
inserted
replaced
1065 symbol_c *function_block_type_name = this->search_fb_instance_decl->get_type_name(symbol->fb_name); |
1065 symbol_c *function_block_type_name = this->search_fb_instance_decl->get_type_name(symbol->fb_name); |
1066 /* should never occur. The function block instance MUST have been declared... */ |
1066 /* should never occur. The function block instance MUST have been declared... */ |
1067 if (function_block_type_name == NULL) ERROR; |
1067 if (function_block_type_name == NULL) ERROR; |
1068 |
1068 |
1069 /* Now find the declaration of the function block type being called... */ |
1069 /* Now find the declaration of the function block type being called... */ |
1070 function_block_declaration_c *fb_decl = function_block_type_symtable.find_value(function_block_type_name); |
1070 function_block_type_symtable_t::iterator iter = function_block_type_symtable.find(function_block_type_name); |
1071 /* should never occur. The function block type being called MUST be in the symtable... */ |
1071 if (iter == function_block_type_symtable.end()) ERROR; // The function block type being called MUST be in the symtable. |
1072 if (fb_decl == function_block_type_symtable.end_value()) ERROR; |
1072 function_block_declaration_c *fb_decl = iter->second; |
1073 |
1073 |
1074 /* loop through each function block parameter, find the value we should pass |
1074 /* loop through each function block parameter, find the value we should pass |
1075 * to it, and then output the c equivalent... |
1075 * to it, and then output the c equivalent... |
1076 */ |
1076 */ |
1077 function_param_iterator_c fp_iterator(fb_decl); |
1077 function_param_iterator_c fp_iterator(fb_decl); |