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

version 1.71, 2016/10/08 18:35:26 version 1.73, 2017/02/07 22:00:26
Line 1 Line 1
 /** @file  /** @file
         Parser: @b double parser class.          Parser: @b double parser class.
   
         Copyright (c) 2001-2015 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2017 Art. Lebedev Studio (http://www.artlebedev.com)
         Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)          Author: Alexandr Petrosian <paf@design.ru> (http://paf.design.ru)
 */  */
   
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.73


E-mail: