# HG changeset patch
# User laurent
# Date 1305542181 -7200
# Node ID e53b93cd90e4ed7f73452d5af09d3e1cd59fc805
# Parent  a1d9c206409e92aca330ebd620098fda270f0bae# Parent  1b0686c546ab26fee369e152815b29eba29d72bf
Merged with Edouard's modifications

diff -r 1b0686c546ab -r e53b93cd90e4 stage4/generate_c/generate_var_list.cc
--- a/stage4/generate_c/generate_var_list.cc	Thu Apr 21 11:22:13 2011 +0200
+++ b/stage4/generate_c/generate_var_list.cc	Mon May 16 12:36:21 2011 +0200
@@ -110,6 +110,7 @@
       variable_vtc,
       external_vtc,
       located_input_vtc,
+      located_memory_vtc,
       located_output_vtc,
       array_vtc,
       structure_vtc,
@@ -216,6 +217,9 @@
         case located_input_vtc:
           s4o.print("IN");
           break;
+        case located_memory_vtc:
+          s4o.print("MEM");
+          break;
         case located_output_vtc:
           s4o.print("OUT");
           break;
@@ -484,6 +488,8 @@
 	  locationtype_t location_type = search_location_type.get_location_type(symbol->location);
 	  if (location_type == input_lt)
         this->current_var_type_category = located_input_vtc;
+      else if (location_type == memory_lt)
+        this->current_var_type_category = located_memory_vtc;
       else if (location_type == output_lt)
         this->current_var_type_category = located_output_vtc;