stage4/generate_c/generate_var_list.cc
changeset 206 261beef39000
parent 195 66d501d7b67d
child 221 c6aed7e5f070
equal deleted inserted replaced
205:96d8b6e006f0 206:261beef39000
   427       reset_var_type_symbol();
   427       reset_var_type_symbol();
   428     
   428     
   429       return NULL;
   429       return NULL;
   430     }
   430     }
   431 
   431 
       
   432     void *visit(en_param_declaration_c *symbol) {
       
   433       TRACE("en_param_declaration_c");
       
   434 
       
   435       /* Start off by setting the current_var_type_symbol and
       
   436        * current_var_init_symbol private variables...
       
   437        */
       
   438       this->current_var_type_symbol = symbol->type;
       
   439 
       
   440       /* now to produce the c equivalent... */
       
   441       declare_variable(symbol->name);
       
   442 
       
   443       /* Values no longer in scope, and therefore no longer used.
       
   444        * Make an effort to keep them set to NULL when not in use
       
   445        * in order to catch bugs as soon as possible...
       
   446        */
       
   447       reset_var_type_symbol();
       
   448 
       
   449       return NULL;
       
   450     }
       
   451 
       
   452     void *visit(eno_param_declaration_c *symbol) {
       
   453       TRACE("eno_param_declaration_c");
       
   454 
       
   455       /* Start off by setting the current_var_type_symbol and
       
   456        * current_var_init_symbol private variables...
       
   457        */
       
   458       this->current_var_type_symbol = symbol->type;
       
   459 
       
   460       /* now to produce the c equivalent... */
       
   461       declare_variable(symbol->name);
       
   462 
       
   463       /* Values no longer in scope, and therefore no longer used.
       
   464        * Make an effort to keep them set to NULL when not in use
       
   465        * in order to catch bugs as soon as possible...
       
   466        */
       
   467       reset_var_type_symbol();
       
   468 
       
   469       return NULL;
       
   470     }
       
   471 
   432 /********************************/
   472 /********************************/
   433 /* B 1.3.3 - Derived data types */
   473 /* B 1.3.3 - Derived data types */
   434 /********************************/
   474 /********************************/
   435     void *visit(data_type_declaration_c *symbol) {
   475     void *visit(data_type_declaration_c *symbol) {
   436       return NULL;
   476       return NULL;