--- parser3/src/main/pa_string.C 2001/03/21 14:06:46 1.47 +++ parser3/src/main/pa_string.C 2001/03/24 15:58:01 1.49 @@ -5,10 +5,10 @@ Author: Alexander Petrosyan (http://design.ru/paf) - $Id: pa_string.C,v 1.47 2001/03/21 14:06:46 paf Exp $ + $Id: pa_string.C,v 1.49 2001/03/24 15:58:01 paf Exp $ */ -#include +#include "pa_config_includes.h" #include "pa_pool.h" #include "pa_string.h" @@ -342,6 +342,8 @@ const Origin& String::origin() const { 0, "String::origin() of empty string called"); - return head.rows[0].item.origin; + // determining origin by last appended piece + // first frequently constant. ex: ^load[/file] "document_root" + "/file" + return append_here[-1].item.origin; } #endif