stage4/generate_c/generate_var_list.cc
changeset 300 092a6fa4926f
parent 292 a1d9c206409e
child 317 5b687021c6e7
equal deleted inserted replaced
299:de1be61482fa 300:092a6fa4926f
   314         
   314         
   315         search_location_type_c search_location_type;
   315         search_location_type_c search_location_type;
   316         locationtype_t location_type = search_location_type.get_location_type(symbol->location);
   316         locationtype_t location_type = search_location_type.get_location_type(symbol->location);
   317         if (location_type == input_lt)
   317         if (location_type == input_lt)
   318           this->current_var_type_category = located_input_vtc;
   318           this->current_var_type_category = located_input_vtc;
       
   319         else if (location_type == memory_lt)
       
   320           this->current_var_type_category = located_memory_vtc;
   319         else if (location_type == output_lt)
   321         else if (location_type == output_lt)
   320           this->current_var_type_category = located_output_vtc;
   322           this->current_var_type_category = located_output_vtc;
   321 
   323 
   322         if (symbol->variable_name != NULL)
   324         if (symbol->variable_name != NULL)
   323           declare_variable(symbol->variable_name);
   325           declare_variable(symbol->variable_name);
   339 
   341 
   340         search_location_type_c search_location_type;
   342         search_location_type_c search_location_type;
   341         locationtype_t location_type = search_location_type.get_location_type(symbol->incompl_location);
   343         locationtype_t location_type = search_location_type.get_location_type(symbol->incompl_location);
   342         if (location_type == input_lt)
   344         if (location_type == input_lt)
   343           this->current_var_type_category = located_input_vtc;
   345           this->current_var_type_category = located_input_vtc;
       
   346         else if (location_type == memory_lt)
       
   347           this->current_var_type_category = located_memory_vtc;
   344         else if (location_type == output_lt)
   348         else if (location_type == output_lt)
   345           this->current_var_type_category = located_output_vtc;
   349           this->current_var_type_category = located_output_vtc;
   346 
   350 
   347         if (symbol->variable_name != NULL)
   351         if (symbol->variable_name != NULL)
   348           declare_variable(symbol->variable_name);
   352           declare_variable(symbol->variable_name);