Diff for /parser3/src/classes/double.C between versions 1.71 and 1.72

version 1.71, 2016/10/08 18:35:26 version 1.72, 2016/11/01 23:10:40
Line 34  DECLARE_CLASS_VAR(double, new MDouble); Line 34  DECLARE_CLASS_VAR(double, new MDouble);
   
 static void _int(Request& r, MethodParams&) {  static void _int(Request& r, MethodParams&) {
         VDouble& vdouble=GET_SELF(r, VDouble);          VDouble& vdouble=GET_SELF(r, VDouble);
         r.write_no_lang(*new VInt(vdouble.as_int()));          r.write(*new VInt(vdouble.as_int()));
 }  }
   
 static void _double(Request& r, MethodParams&) {  static void _double(Request& r, MethodParams&) {
         VDouble& vdouble=GET_SELF(r, VDouble);          VDouble& vdouble=GET_SELF(r, VDouble);
         r.write_no_lang(*new VDouble(vdouble.as_double()));          r.write(*new VDouble(vdouble.as_double()));
 }  }
   
 static void _bool(Request& r, MethodParams&) {  static void _bool(Request& r, MethodParams&) {
         VDouble& vdouble=GET_SELF(r, VDouble);          VDouble& vdouble=GET_SELF(r, VDouble);
         r.write_no_lang(VBool::get(vdouble.as_bool()));          r.write(VBool::get(vdouble.as_bool()));
 }  }
   
 typedef void (*vdouble_op_func_ptr)(VDouble& vdouble, double param);  typedef void (*vdouble_op_func_ptr)(VDouble& vdouble, double param);
Line 81  static void _sql(Request& r, MethodParam Line 81  static void _sql(Request& r, MethodParam
                 else {                  else {
                         throw Exception(PARSER_RUNTIME, 0, "produced no result, but no default option specified");                          throw Exception(PARSER_RUNTIME, 0, "produced no result, but no default option specified");
                 }                  }
         r.write_no_lang(*new VDouble(val));          r.write(*new VDouble(val));
 }  }
   
 // constructor  // constructor

Removed from v.1.71  
changed lines
  Added in v.1.72


E-mail: