--- parser3/src/main/compile.tab.C 2003/03/27 10:04:07 1.81.2.13.2.15 +++ parser3/src/main/compile.tab.C 2003/04/01 07:59:08 1.81.2.13.2.19 @@ -43,7 +43,7 @@ Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: compile.tab.C,v 1.81.2.13.2.15 2003/03/27 10:04:07 paf Exp $ + $Id: compile.tab.C,v 1.81.2.13.2.19 2003/04/01 07:59:08 paf Exp $ */ /** @@ -1979,7 +1979,7 @@ default: case '"': case ':': if(end!=begin) { // append piece till ^ - PC.string.append(begin, end-begin); + PC.string.append_strdup(begin, end-begin); } // reset piece 'begin' position & line begin=PC.source; // ->punctuation @@ -1993,7 +1993,7 @@ default: case '#': if(end!=begin) { // append piece till ^ - PC.string.append(begin, end-begin); + PC.string.append_strdup(begin, end-begin); } // #HH ? if(PC.source[0]=='#' && PC.source[1] && PC.source[2]) { @@ -2024,7 +2024,7 @@ default: if(c=='#' && PC.col==1) { if(end!=begin) { // append piece till # - PC.string.append(begin, end-begin); + PC.string.append_strdup(begin, end-begin); } // fall into COMMENT lexical state [wait for \n] push_LS(PC, LS_USER_COMMENT); @@ -2167,7 +2167,7 @@ default: case '#': // comment start skipping if(end!=begin) { // append piece till # - PC.string.append(begin, end-begin); + PC.string.append_strdup(begin, end-begin); } // fall into COMMENT lexical state [wait for \n] push_LS(PC, LS_EXPRESSION_COMMENT); @@ -2599,7 +2599,7 @@ break2: } if(end!=begin && PC.ls!=LS_USER_COMMENT) { // last piece still alive and not comment? // append it - PC.string.append(begin, end-begin); + PC.string.append_strdup(begin, end-begin); } } if(!PC.string.is_empty()) { // something accumulated?