--- parser3/src/main/pa_string.C 2001/12/10 09:44:17 1.129 +++ parser3/src/main/pa_string.C 2001/12/13 10:47:34 1.131 @@ -4,7 +4,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://paf.design.ru) - $Id: pa_string.C,v 1.129 2001/12/10 09:44:17 paf Exp $ + $Id: pa_string.C,v 1.131 2001/12/13 10:47:34 paf Exp $ */ #include "pa_config_includes.h" @@ -398,7 +398,7 @@ break2: int String::pos(const String& substr, int result, Untaint_lang lang) const { size_t self_size=size(); - for(; resultrows; for(uint i=0; icount; ) { if(row==append_here) @@ -744,16 +744,19 @@ String& String::reconstruct(Pool& pool) uchar joined_lang; const char *joined_ptr; size_t joined_size; +#ifndef NO_STRING_ORIGIN + const char *joined_origin_file=row->item.origin.file; + const size_t joined_origin_line=row->item.origin.line; +#endif join_chain(pool, i, chunk, row, joined_lang, joined_ptr, joined_size); - result.APPEND(joined_ptr, joined_size, - joined_lang, - row->item.origin.file, row->item.origin.line); + result.APPEND(joined_ptr, joined_size, joined_lang, + joined_origin_file, joined_origin_line); if(!chunk) goto break2; } - } while(true); + } break2: return result;