--- parser3/src/include/pa_config_includes.h 2003/03/26 13:46:58 1.23.2.5.2.1 +++ parser3/src/include/pa_config_includes.h 2012/06/17 11:14:11 1.36 @@ -1,7 +1,7 @@ /** @file Parser: includes all Configure-d headers - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2012 Art. Lebedev Studio (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) when used Configure [HAVE_CONFIG_H] it uses defines from Configure, @@ -26,6 +26,10 @@ # undef inline #endif +#ifdef HAVE_ASSERT_H +# include +#endif + #ifdef HAVE_CTYPE_H # include #endif @@ -76,6 +80,10 @@ # include #endif +#ifdef HAVE_LIMITS_H +#include +#endif + #ifdef HAVE_DIRECT_H # include #endif @@ -148,6 +156,8 @@ // math function replacements +#ifdef __cplusplus + #ifndef HAVE_TRUNC inline double trunc(double param) { return param > 0? floor(param) : ceil(param); } #endif @@ -160,4 +170,69 @@ inline double round(double param) { retu inline double sign(double param) { return param > 0 ? 1 : ( param < 0 ? -1 : 0 ); } #endif +#if !defined(max) +inline int max(int a, int b) { return a>b?a:b; } +inline int min(int a, int b){ return ab?a:b; } +inline size_t min(size_t a, size_t b){ return a