--- parser3/src/main/compile.y 2015/09/28 22:26:13 1.272 +++ parser3/src/main/compile.y 2015/10/26 01:21:57 1.274 @@ -2,13 +2,13 @@ /** @file Parser: compiler(lexical parser and grammar). - Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) + Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) */ -volatile const char * IDENT_COMPILE_Y = "$Id: compile.y,v 1.272 2015/09/28 22:26:13 moko Exp $"; +volatile const char * IDENT_COMPILE_Y = "$Id: compile.y,v 1.274 2015/10/26 01:21:57 moko Exp $"; /** @todo parser4: @@ -179,8 +179,10 @@ control_method: '@' STRING '\n' } } else if(command==USE_CONTROL_METHOD_NAME) { CLASS_ADD; - for(size_t i=0; icount(); i+=OPERATIONS_PER_OPVALUE) - PC.request.use_file(PC.request.main_class, LA2S(*strings_code, i)->trim(String::TRIM_END), PC.request.get_used_filename(PC.file_no)); + for(size_t i=0; icount(); i+=OPERATIONS_PER_OPVALUE){ + PC.request.use_file(PC.request.main_class, LA2S(*strings_code, i)->trim(String::TRIM_END), + PC.request.get_used_filename(PC.file_no), strings_code->get(i+1).origin); + } } else if(command==BASE_NAME) { if(PC.append){ strcpy(PC.error, "can't set base while appending methods to class '");