|
|
| version 1.57, 2010/10/13 11:30:08 | version 1.59, 2012/03/16 09:24:07 |
|---|---|
| Line 1 | Line 1 |
| /** @file | /** @file |
| Parser: @b math parser class. | Parser: @b math 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) |
| portions from gen_uuid.c, | portions from gen_uuid.c, |
| Copyright (C) 1996, 1997, 1998, 1999 Theodore Ts'o. | Copyright (C) 1996, 1997, 1998, 1999 Theodore Ts'o. |
| */ | */ |
| static const char * const IDENT_MATH_C="$Date$"; | |
| #include "pa_vmethod_frame.h" | #include "pa_vmethod_frame.h" |
| #include "pa_common.h" | #include "pa_common.h" |
| #include "pa_vint.h" | #include "pa_vint.h" |
| Line 32 static const char * const IDENT_MATH_C=" | Line 30 static const char * const IDENT_MATH_C=" |
| extern char *crypt(const char* , const char* ); | extern char *crypt(const char* , const char* ); |
| #endif | #endif |
| volatile const char * IDENT_MATH_C="$Id$"; | |
| // defines | // defines |
| #define MAX_SALT 8 | #define MAX_SALT 8 |
| Line 360 static void _crc32(Request& r, MethodPar | Line 360 static void _crc32(Request& r, MethodPar |
| static void toBase(long value, int base, char*& ptr){ | static void toBase(long value, int base, char*& ptr){ |
| static const char* hex="0123456789ABCDEF"; | static const char* hex="0123456789ABCDEF"; |
| int rest = value % base; | int rest = 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]; |
| } | } |