stage4/generate_cc/generate_cc_typedecl.cc
changeset 26 fd67f54e64e1
parent 0 fb772792efd1
equal deleted inserted replaced
25:e6a841e365b7 26:fd67f54e64e1
   368 // direct_variable: direct_variable_token	{$$ = new direct_variable_c($1);};
   368 // direct_variable: direct_variable_token	{$$ = new direct_variable_c($1);};
   369 void *visit(direct_variable_c *symbol) {
   369 void *visit(direct_variable_c *symbol) {
   370   TRACE("direct_variable_c");
   370   TRACE("direct_variable_c");
   371   /* Do not use print_token() as it will change everything into uppercase */
   371   /* Do not use print_token() as it will change everything into uppercase */
   372   if (strlen(symbol->value) == 0) ERROR;
   372   if (strlen(symbol->value) == 0) ERROR;
   373   return s4o.print(symbol->value + 1);
   373   return s4o.printlocation(symbol->value + 1);
   374 }
   374 }
   375 
   375 
   376 
   376 
   377 /*************************************/
   377 /*************************************/
   378 /* B.1.4.2   Multi-element Variables */
   378 /* B.1.4.2   Multi-element Variables */