--- parser3/src/include/pa_common.h 2002/11/29 08:06:59 1.87 +++ parser3/src/include/pa_common.h 2003/04/11 12:29:19 1.91 @@ -1,14 +1,14 @@ /** @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: 2002/11/29 08:06:59 $"; +static const char* IDENT_COMMON_H="$Date: 2003/04/11 12:29:19 $"; #include "pa_pool.h" #include "pa_string.h" @@ -85,7 +85,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); @@ -231,4 +231,8 @@ int getMonthDays(int year, int month); void remove_crlf(char *start, char *end); +#ifdef PA_SAFE_MODE +void check_safe_mode(struct stat finfo, const String& file_spec, const char* fname); +#endif + #endif