--- parser3/src/main/Attic/pa_wcontext.C 2001/02/25 13:23:02 1.3 +++ parser3/src/main/Attic/pa_wcontext.C 2001/03/08 12:19:21 1.4 @@ -1,27 +1,27 @@ /* - $Id: pa_wcontext.C,v 1.3 2001/02/25 13:23:02 paf Exp $ + $Id: pa_wcontext.C,v 1.4 2001/03/08 12:19:21 paf Exp $ */ #include "pa_wcontext.h" #include "pa_exception.h" -// appends a string to result +// appends a fstring to result void WContext::write(String *astring) { if(!astring) return; - string+=*astring; + fstring+=*astring; } -// if value is VString writes string, +// if value is VString writes fstring, // else writes Value; raises an error if already void WContext::write(Value *avalue) { if(!avalue) return; - String *string=avalue->get_string(); - if(string) - write(string); + String *fstring=avalue->get_string(); + if(fstring) + write(fstring); else if(fvalue) // already have value? THROW(0,0, // must not construct twice