--- parser3/src/include/pa_common.h 2003/04/15 06:44:34 1.88.4.1 +++ parser3/src/include/pa_common.h 2003/04/11 15:00:05 1.92 @@ -1,19 +1,18 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001, 2003 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char* IDENT_COMMON_H="$Date: 2003/04/15 06:44:34 $"; +static const char* IDENT_COMMON_H="$Date: 2003/04/11 15:00:05 $"; #include "pa_pool.h" #include "pa_string.h" -class Request; class Hash; class Value; @@ -125,8 +124,7 @@ bool file_read_action_under_lock(Pool& p char *file_read_text(Pool& pool, const String& file_spec, bool fail_on_read_problem=true, - Hash* options=0, Request* r=0, - Hash** out_fields=0); + Hash *options=0, Hash** out_fields=0); /** read specified file using pool, @@ -137,8 +135,7 @@ char *file_read_text(Pool& pool, bool file_read(Pool& pool, const String& file_spec, void*& data, size_t& size, bool as_text, - Hash* options=0, Request* r=0, - Hash** out_fields=0, + Hash *options=0, Hash** out_fields=0, bool fail_on_read_problem=true); typedef void (*File_write_action)(int f, void *context); @@ -206,13 +203,6 @@ char *lsplit(char **string_ref,char deli char *rsplit(char *string, char delim); char *format(Pool& pool, double value, char *fmt); -#ifndef 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