--- parser3/src/include/pa_common.h 2002/11/29 08:06:59 1.87 +++ parser3/src/include/pa_common.h 2003/04/15 06:44:34 1.88.4.1 @@ -8,11 +8,12 @@ #ifndef PA_COMMON_H #define PA_COMMON_H -static const char* IDENT_COMMON_H="$Date: 2002/11/29 08:06:59 $"; +static const char* IDENT_COMMON_H="$Date: 2003/04/15 06:44:34 $"; #include "pa_pool.h" #include "pa_string.h" +class Request; class Hash; class Value; @@ -85,7 +86,7 @@ inline double sign(double param) { retur $content-type[$value[text/html] charset[windows-1251]] -> content-type: text/html; charset=windows-1251 */ -const String& attributed_meaning_to_string(Value& meaning, String::Untaint_lang lang); +const String& attributed_meaning_to_string(Value& meaning, String::Untaint_lang lang, bool forced); /// yields to OS for secs secs and usecs milliseconds int pa_sleep(unsigned long secs, unsigned long usecs); @@ -124,7 +125,8 @@ 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, Hash** out_fields=0); + Hash* options=0, Request* r=0, + Hash** out_fields=0); /** read specified file using pool, @@ -135,7 +137,8 @@ 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, Hash** out_fields=0, + Hash* options=0, Request* r=0, + Hash** out_fields=0, bool fail_on_read_problem=true); typedef void (*File_write_action)(int f, void *context);