Diff for /parser3/src/classes/double.C between versions 1.9 and 1.11

version 1.9, 2001/03/11 12:04:42 version 1.11, 2001/03/12 21:17:59
Line 17  VClass *double_class; Line 17  VClass *double_class;
   
 // methods  // methods
   
 static void _int(Request& r, Array *) {  static void _int(Request& r, const String&, Array *) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         VDouble *vdouble=static_cast<VDouble *>(r.self);          VDouble *vdouble=static_cast<VDouble *>(r.self);
         Value& value=*new(pool) VInt(pool, static_cast<int>(vdouble->get_double()));          Value& value=*new(pool) VInt(pool, (int)vdouble->get_double());
         r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);          r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);
 }  }
   
 static void _double(Request& r, Array *) {  static void _double(Request& r, const String&, Array *) {
         Pool& pool=r.pool();          Pool& pool=r.pool();
         VDouble *vdouble=static_cast<VDouble *>(r.self);          VDouble *vdouble=static_cast<VDouble *>(r.self);
         Value& value=*new(pool) VDouble(pool, vdouble->get_double());          Value& value=*new(pool) VDouble(pool, vdouble->get_double());
         r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);          r.wcontext->write(value, String::Untaint_lang::NO /*always object, not string*/);
 }  }
   
 static void _inc(Request& r, Array *params) {  static void _inc(Request& r, const String&, Array *params) {
         VDouble *vdouble=static_cast<VDouble *>(r.self);          VDouble *vdouble=static_cast<VDouble *>(r.self);
         double increment=params->size()?          double increment=params->size()?
                 r.autocalc(                  r.process(
                         *static_cast<Value *>(params->get(0)),                          *static_cast<Value *>(params->get(0)),
                         0/*no name*/,                          0/*no name*/,
                         false/*don't intercept string*/).get_double():1;                          false/*don't intercept string*/).get_double():1;

Removed from v.1.9  
changed lines
  Added in v.1.11


E-mail: