--- parser3/src/classes/Attic/root.C 2001/03/13 16:38:21 1.39 +++ parser3/src/classes/Attic/root.C 2001/03/18 13:38:45 1.41 @@ -3,7 +3,7 @@ Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) Author: Alexander Petrosyan (http://design.ru/paf) - $Id: root.C,v 1.39 2001/03/13 16:38:21 paf Exp $ + $Id: root.C,v 1.41 2001/03/18 13:38:45 paf Exp $ */ #include @@ -191,11 +191,11 @@ static void _eval(Request& r, const Stri method_name, "fmt must not be junction"); Pool& pool=r.pool(); - String *string=new(pool) String(pool); - string->APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr())); - result=new(pool) VString(*string); + String& string=*new(pool) String(pool); + string.APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr())); + result=new(pool) VString(string); } - r.wcontext->write(*result, String::Untaint_lang::NO /*always object, not string*/); + r.write_no_lang(*result); } @@ -215,7 +215,7 @@ static void double_one_op( method_name, "parameter must be expression"); Value& result=*new(pool) VDouble(pool, (*func)(r.process(param).get_double())); - r.wcontext->write(result, String::Untaint_lang::NO /*always object, not string*/); + r.write_no_lang(result); } static void _round(Request& r, const String& method_name, Array *params) { @@ -238,6 +238,8 @@ static void _sign(Request& r, const Stri double_one_op(r, method_name, params, &sign); } +// initialize + void initialize_root_class(Pool& pool, VStateless_class& vclass) { // ^if(condition){code-when-true} // ^if(condition){code-when-true}{code-when-false}