equal
deleted
inserted
replaced
625 |
625 |
626 /* start off by adding this declaration to the global |
626 /* start off by adding this declaration to the global |
627 * function block declaration symbol table... |
627 * function block declaration symbol table... |
628 */ |
628 */ |
629 function_block_type_symtable.insert(symbol->fblock_name, symbol); |
629 function_block_type_symtable.insert(symbol->fblock_name, symbol); |
630 |
630 |
631 /* (A) Function Block data structure declaration... */ |
631 /* (A) Function Block data structure declaration... */ |
632 /* (A.1) Data structure declaration */ |
632 /* (A.1) Data structure declaration */ |
633 s4o.print("// FUNCTION_BLOCK "); |
633 s4o.print("// FUNCTION_BLOCK "); |
634 symbol->fblock_name->accept(*this); |
634 symbol->fblock_name->accept(*this); |
635 s4o.print("\n// Data part\n"); |
635 s4o.print("\n// Data part\n"); |
1401 /***************************/ |
1401 /***************************/ |
1402 void *visit(library_c *symbol) { |
1402 void *visit(library_c *symbol) { |
1403 generate_location_list_c generate_location_list(&s4o); |
1403 generate_location_list_c generate_location_list(&s4o); |
1404 symbol->accept(generate_location_list); |
1404 symbol->accept(generate_location_list); |
1405 |
1405 |
1406 for(int i = 1; i < symbol->n; i++) { |
1406 for(int i = 0; i < symbol->n; i++) { |
1407 symbol->elements[i]->accept(*this); |
1407 symbol->elements[i]->accept(*this); |
1408 } |
1408 } |
1409 return NULL; |
1409 return NULL; |
1410 } |
1410 } |
1411 |
1411 |