--- parser3/src/include/pa_common.h 2009/05/26 10:44:41 1.131 +++ parser3/src/include/pa_common.h 2009/08/05 08:57:34 1.133 @@ -8,7 +8,7 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char * const IDENT_COMMON_H="$Date: 2009/05/26 10:44:41 $"; +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 HashString HashStringValue; +typedef HASH_STRING HashStringValue; // replace system s*nprintf with our versions #undef vsnprintf @@ -230,7 +237,7 @@ void back_slashes_to_slashes(char *s); bool StrStartFromNC(const char* str, const char* substr, bool equal=false); size_t strpos(const char *str, const char *substr); -Charset* detect_charset(const char* content_type, bool already_uppercased=false); +Charset* detect_charset(const char* content_type); #define SECS_PER_DAY (60*60*24) int getMonthDays(int year, int month);