--- parser3/src/main/compile.y 2003/03/21 13:42:30 1.204.2.8.2.1 +++ parser3/src/main/compile.y 2003/03/26 18:52:50 1.204.2.8.2.5 @@ -5,7 +5,7 @@ Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.y,v 1.204.2.8.2.1 2003/03/21 13:42:30 paf Exp $ + $Id: compile.y,v 1.204.2.8.2.5 2003/03/26 18:52:50 paf Exp $ */ /** @@ -114,7 +114,7 @@ static int yylex(YYSTYPE *lvalp, void *p %% all: one_big_piece { - Method& method=*new Method(main_method_name, Method::CT_ANY, + Method& method=*new Method(/*main_method_name, */Method::CT_ANY, 0, 0, /*min, max numbered_params_count*/ 0/*param_names*/, 0/*local_names*/, $1/*parser_code*/, 0/*native_code*/); @@ -158,7 +158,7 @@ control_method: '@' STRING '\n' YYERROR; } } else if(command==USE_CONTROL_METHOD_NAME) { - for(int i=0; icount(); i+=2) + for(size_t i=0; icount(); i+=2) PC.request.use_file(PC.request.main_class, *LA2S(*strings_code, i)); } else if(command==BASE_NAME) { if(PC.cclass->base_class()) { // already changed from default? @@ -209,7 +209,7 @@ code_method: '@' STRING bracketed_maybe_ const String& name=*LA2S(*$2); YYSTYPE params_names_code=$3; - ArrayString* params_names; + ArrayString* params_names=0; if(int size=params_names_code->count()) { params_names=new ArrayString; for(int i=0; icount()) { locals_names=new ArrayString; for(int i=0; i