Diff for /parser3/src/classes/Attic/root.C between versions 1.39 and 1.40

version 1.39, 2001/03/13 16:38:21 version 1.40, 2001/03/13 17:17:25
Line 195  static void _eval(Request& r, const Stri Line 195  static void _eval(Request& r, const Stri
                 string->APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr()));                  string->APPEND_CONST(format(pool, result->get_double(), fmt.as_string().cstr()));
                 result=new(pool) VString(*string);                  result=new(pool) VString(*string);
         }          }
         r.wcontext->write(*result,  String::Untaint_lang::NO /*always object, not string*/);          r.write_no_lang(*result);
 }  }
   
   
Line 215  static void double_one_op( Line 215  static void double_one_op(
                 method_name, "parameter must be expression");                  method_name, "parameter must be expression");
   
         Value& result=*new(pool) VDouble(pool, (*func)(r.process(param).get_double()));          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) {  static void _round(Request& r, const String& method_name, Array *params) {
Line 238  static void _sign(Request& r, const Stri Line 238  static void _sign(Request& r, const Stri
         double_one_op(r, method_name, params,   &sign);          double_one_op(r, method_name, params,   &sign);
 }  }
   
   // initialize
   
 void initialize_root_class(Pool& pool, VStateless_class& vclass) {  void initialize_root_class(Pool& pool, VStateless_class& vclass) {
         // ^if(condition){code-when-true}          // ^if(condition){code-when-true}
         // ^if(condition){code-when-true}{code-when-false}          // ^if(condition){code-when-true}{code-when-false}

Removed from v.1.39  
changed lines
  Added in v.1.40


E-mail: