--- parser3/src/include/pa_globals.h 2003/11/06 09:11:35 1.106 +++ parser3/src/include/pa_globals.h 2005/08/05 13:02:59 1.111.8.1 @@ -1,31 +1,28 @@ /** @file Parser: global decls. - Copyright (c) 2001-2003 ArtLebedev Group (http://www.artlebedev.com) + Copyright (c) 2001-2005 ArtLebedev Group (http://www.artlebedev.com) Author: Alexandr Petrosian (http://paf.design.ru) */ #ifndef PA_GLOBALS_H #define PA_GLOBALS_H -static const char* IDENT_GLOBALS_H="$Date: 2003/11/06 09:11:35 $"; - - -#include "pa_hash.h" -#include "pa_string.h" +static const char * const IDENT_GLOBALS_H="$Date: 2005/08/05 13:02:59 $"; #ifdef XML # include "libxml/tree.h" # include "gdome.h" #endif -class Dictionary; -class Charset; -class Table; +class Request; -/// core func +/// initialize global variables void pa_globals_init(); +/// finalize global variables +void pa_globals_done(); + /// hex_value[c] = hex value of c extern short hex_value[0x100]; @@ -39,4 +36,9 @@ bool xmlHaveGenericErrors(); const char* xmlGenericErrors(); #endif +/// register request for local thread to retrive later with pa_get_request() +void pa_register_thread_request(Request&); +/// retrives request set by pa_set_request function, useful in contextless places [slow] +Request& pa_thread_request(); + #endif