equal
deleted
inserted
replaced
425 * variables, because if the desired parameter is not in the |
425 * variables, because if the desired parameter is not in the |
426 * variable list we will be analysing, the current_param_XXXX |
426 * variable list we will be analysing, the current_param_XXXX |
427 * variables will get overwritten when we visit the next |
427 * variables will get overwritten when we visit the next |
428 * var1_init_decl_c list! |
428 * var1_init_decl_c list! |
429 */ |
429 */ |
430 current_param_default_value = symbol->value; |
430 current_param_default_value = spec_init_sperator_c::get_init(symbol->type_decl); |
431 current_param_type = symbol->type; |
431 current_param_type = spec_init_sperator_c::get_spec(symbol->type_decl); |
432 |
432 |
433 void *res = handle_single_param(symbol->name); |
433 void *res = handle_single_param(symbol->name); |
434 |
434 |
435 /* If we have found the parameter we will be returning, we set the en_eno_param_implicit to TRUE if implicitly defined */ |
435 /* If we have found the parameter we will be returning, we set the en_eno_param_implicit to TRUE if implicitly defined */ |
436 if (res != NULL) symbol->method->accept(*this); |
436 if (res != NULL) symbol->method->accept(*this); |
437 |
437 |
465 /* fb_name_list ':' function_block_type_name ASSIGN structure_initialization */ |
465 /* fb_name_list ':' function_block_type_name ASSIGN structure_initialization */ |
466 /* structure_initialization -> may be NULL ! */ |
466 /* structure_initialization -> may be NULL ! */ |
467 // SYM_REF3(fb_name_decl_c, fb_name_list, function_block_type_name, structure_initialization) |
467 // SYM_REF3(fb_name_decl_c, fb_name_list, function_block_type_name, structure_initialization) |
468 void *function_param_iterator_c::visit(fb_name_decl_c *symbol) { |
468 void *function_param_iterator_c::visit(fb_name_decl_c *symbol) { |
469 TRACE("structured_var_init_decl_c"); |
469 TRACE("structured_var_init_decl_c"); |
470 current_param_default_value = symbol->structure_initialization ; |
470 current_param_default_value = spec_init_sperator_c::get_init(symbol->fb_spec_init); |
471 current_param_type = symbol->function_block_type_name ; |
471 current_param_type = spec_init_sperator_c::get_spec(symbol->fb_spec_init); |
472 |
472 |
473 return symbol->fb_name_list->accept(*this); |
473 return symbol->fb_name_list->accept(*this); |
474 } |
474 } |
475 |
475 |
476 |
476 |