Diff for /parser3/src/classes/double.C between versions 1.61 and 1.64

version 1.61, 2007/04/23 10:30:09 version 1.64, 2012/03/16 09:24:06
Line 1 Line 1
 /** @file  /** @file
         Parser: @b double parser class.          Parser: @b double parser class.
   
         Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com)          Copyright (c) 2001-2012 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)
 */  */
   
 static const char * const IDENT_DOUBLE_C="$Date$";  
   
 #include "classes.h"  #include "classes.h"
 #include "pa_vmethod_frame.h"  #include "pa_vmethod_frame.h"
   
Line 15  static const char * const IDENT_DOUBLE_C Line 13  static const char * const IDENT_DOUBLE_C
 #include "pa_vint.h"  #include "pa_vint.h"
 #include "pa_vbool.h"  #include "pa_vbool.h"
   
   volatile const char * IDENT_DOUBLE_C="$Id$" IDENT_PA_VDOUBLE_H;
   
 // externs  // externs
   
 void _string_format(Request& r, MethodParams&);  void _string_format(Request& r, MethodParams&);
Line 24  void _string_format(Request& r, MethodPa Line 24  void _string_format(Request& r, MethodPa
 class MDouble: public Methoded {  class MDouble: public Methoded {
 public:  public:
         MDouble();          MDouble();
 public: // Methoded  
         bool used_directly() { return true; }  
 };  };
   
 // global variable  // global variable
Line 58  static void _bool(Request& r, MethodPara Line 56  static void _bool(Request& r, MethodPara
                 params.as_double(0, "default must be bool", r);                  params.as_double(0, "default must be bool", r);
   
         VDouble& vdouble=GET_SELF(r, VDouble);          VDouble& vdouble=GET_SELF(r, VDouble);
         r.write_no_lang(*new VBool(vdouble.as_bool()));          r.write_no_lang(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);

Removed from v.1.61  
changed lines
  Added in v.1.64


E-mail: