--- parser3/src/include/pa_common.h 2009/01/25 02:04:34 1.128 +++ parser3/src/include/pa_common.h 2009/08/05 08:57:34 1.133 @@ -1,14 +1,14 @@ /** @file Parser: commonly used functions. - Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2009 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2009/01/25 02:04:34 $"; +static const char * const IDENT_COMMON_H="$Date: 2009/08/05 08:57:34 $"; #include "pa_string.h" #include "pa_hash.h" @@ -26,8 +26,15 @@ class Request; #define HTTP_CONTENT_TYPE_MULTIPART_RELATED "multipart/related" #define HTTP_CONTENT_TYPE_MULTIPART_MIXED "multipart/mixed" +#define HASH_ORDER + +#ifdef HASH_ORDER +#undef PA_HASH_CLASS +#include "pa_hash.h" +#endif + class Value; -typedef Hash HashStringValue; +typedef HASH_STRING HashStringValue; // replace system s*nprintf with our versions #undef vsnprintf @@ -231,7 +238,6 @@ bool StrStartFromNC(const char* str, con size_t strpos(const char *str, const char *substr); Charset* detect_charset(const char* content_type); -Charset* detect_charset(Charset& source_charset, const String& content_type); #define SECS_PER_DAY (60*60*24) int getMonthDays(int year, int month); @@ -292,7 +298,6 @@ static void file_crc32_file_action( int f, const String&, const char* /*fname*/, bool, void *context); -char* print_pcre_exec_error_text(int exec_result); static const char* hex_string(unsigned char* bytes, size_t size, bool upcase) { char *bytes_hex=new(PointerFreeGC) char [size*2/*byte->hh*/+1/*for zero-teminator*/];