Fixed VARIABLES.csv, was broken when using enumrated types
authorEdouard Tisserant
Sat, 01 Sep 2012 16:27:24 +0200
changeset 626 9f2cefb98e60
parent 625 c0bda77b37a0
child 627 e7caa7d32ef5
Fixed VARIABLES.csv, was broken when using enumrated types
stage4/generate_c/generate_var_list.cc
--- a/stage4/generate_c/generate_var_list.cc	Wed Aug 22 16:46:17 2012 +0200
+++ b/stage4/generate_c/generate_var_list.cc	Sat Sep 01 16:27:24 2012 +0200
@@ -346,7 +346,7 @@
           break;
       }
     }
-    
+
     void print_var_number(void) {
       char str[10];
       sprintf(str, "%d", current_var_number);
@@ -554,6 +554,12 @@
       return NULL;
     }
 
+    /* enumerated_value_list ',' enumerated_value */
+    void *visit(enumerated_value_list_c *symbol) {
+      this->current_var_type_name->accept(*this);
+      return NULL;
+    }
+    
     /* fb_name_list ':' function_block_type_name ASSIGN structure_initialization */
     /* structure_initialization -> may be NULL ! */
     void *visit(fb_name_decl_c *symbol) {