Bug with EN/ENO in generate_var_list that breaks parsing of variables.csv fixed
authorlaurent
Wed, 02 Sep 2009 17:35:02 +0200
changeset 206 261beef39000
parent 205 96d8b6e006f0
child 207 56ee922d0112
Bug with EN/ENO in generate_var_list that breaks parsing of variables.csv fixed
stage4/generate_c/generate_var_list.cc
--- a/stage4/generate_c/generate_var_list.cc	Wed Sep 02 14:05:27 2009 +0200
+++ b/stage4/generate_c/generate_var_list.cc	Wed Sep 02 17:35:02 2009 +0200
@@ -429,6 +429,46 @@
       return NULL;
     }
 
+    void *visit(en_param_declaration_c *symbol) {
+      TRACE("en_param_declaration_c");
+
+      /* Start off by setting the current_var_type_symbol and
+       * current_var_init_symbol private variables...
+       */
+      this->current_var_type_symbol = symbol->type;
+
+      /* now to produce the c equivalent... */
+      declare_variable(symbol->name);
+
+      /* Values no longer in scope, and therefore no longer used.
+       * Make an effort to keep them set to NULL when not in use
+       * in order to catch bugs as soon as possible...
+       */
+      reset_var_type_symbol();
+
+      return NULL;
+    }
+
+    void *visit(eno_param_declaration_c *symbol) {
+      TRACE("eno_param_declaration_c");
+
+      /* Start off by setting the current_var_type_symbol and
+       * current_var_init_symbol private variables...
+       */
+      this->current_var_type_symbol = symbol->type;
+
+      /* now to produce the c equivalent... */
+      declare_variable(symbol->name);
+
+      /* Values no longer in scope, and therefore no longer used.
+       * Make an effort to keep them set to NULL when not in use
+       * in order to catch bugs as soon as possible...
+       */
+      reset_var_type_symbol();
+
+      return NULL;
+    }
+
 /********************************/
 /* B 1.3.3 - Derived data types */
 /********************************/