# HG changeset patch
# User laurent
# Date 1251905702 -7200
# Node ID 261beef39000c59210ce034b21dbd8c932da478d
# Parent  96d8b6e006f08eba3753fa2997a3d80d98740ea2
Bug with EN/ENO in generate_var_list that breaks parsing of variables.csv fixed

diff -r 96d8b6e006f0 -r 261beef39000 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 */
 /********************************/