--- parser3/src/main/compile.tab.C 2002/04/24 09:53:02 1.52 +++ parser3/src/main/compile.tab.C 2002/08/12 14:21:51 1.59 @@ -38,7 +38,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.tab.C,v 1.52 2002/04/24 09:53:02 paf Exp $ + $Id: compile.tab.C,v 1.59 2002/08/12 14:21:51 paf Exp $ */ /** @@ -1014,12 +1014,12 @@ case 1: #line 108 "compile.y" { Method& method=*NEW Method(POOL, - *main_method_name, + PC.request->main_method_name, Method::CT_ANY, 0, 0, /*min, max numbered_params_count*/ 0/*param_names*/, 0/*local_names*/, yyvsp[0]/*parser_code*/, 0/*native_code*/); - PC.cclass->add_method(*main_method_name, method); + PC.cclass->add_method(PC.request->main_method_name, method); ; break;} case 8: @@ -1034,7 +1034,7 @@ case 8: YYERROR; } if(command==CLASS_NAME) { - if(PC.cclass->base()) { // already changed from default? + if(PC.cclass->base_class()) { // already changed from default? strcpy(PC.error, "class already have a name '"); strncat(PC.error, PC.cclass->name().cstr(), 100); strcat(PC.error, "'"); @@ -1056,9 +1056,9 @@ case 8: for(int i=0; isize(); i+=2) PC.request->use_file(*LA2S(strings_code, i)); } else if(command==BASE_NAME) { - if(PC.cclass->base()) { // already changed from default? + if(PC.cclass->base_class()) { // already changed from default? strcpy(PC.error, "class already have a base '"); - strncat(PC.error, PC.cclass->base()->name().cstr(), 100); + strncat(PC.error, PC.cclass->base_class()->name().cstr(), 100); strcat(PC.error, "'"); YYERROR; }