Diff for /parser3/src/classes/math.C between versions 1.78 and 1.81

version 1.78, 2015/10/06 22:20:50 version 1.81, 2016/03/31 21:46:20
Line 1 Line 1
 /** @file  /** @file
         Parser: @b math parser class.          Parser: @b math parser class.
   
         Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com)          Copyright (c) 2001-2015 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)
   
         portions from gen_uuid.c,          portions from gen_uuid.c,
Line 31  volatile const char * IDENT_MATH_C="$Id$ Line 31  volatile const char * IDENT_MATH_C="$Id$
 // class  // class
   
 class MMath: public Methoded {  class MMath: public Methoded {
 public:  
         MMath();  
   
 public: // Methoded  public: // Methoded
         bool used_directly() { return false; }          bool used_directly() { return false; }
   
   public:
           MMath();
 };  };
   
 // global variables  // global variables
   
 DECLARE_CLASS_VAR(math, 0 /*fictive*/, new MMath);  DECLARE_CLASS_VAR(math, new MMath);
   
 // methods  // methods
   
Line 510  static void _crc32(Request& r, MethodPar Line 510  static void _crc32(Request& r, MethodPar
   
 static void toBase(unsigned long long int value, unsigned int base, char*& ptr){  static void toBase(unsigned long long int value, unsigned int base, char*& ptr){
         static const char* hex="0123456789ABCDEF";          static const char* hex="0123456789ABCDEF";
         int rest = value % base;          unsigned int rest = (unsigned int)(value % base);
         if(value >= base)          if(value >= base)
                 toBase( (value-rest)/base, base, ptr);                  toBase( (value-rest)/base, base, ptr);
         *ptr++=(char)hex[rest];          *ptr++=(char)hex[rest];

Removed from v.1.78  
changed lines
  Added in v.1.81


E-mail: