Annotation of parser3/src/include/pa_globals.h, revision 1.122
1.13 paf 1: /** @file
1.15 paf 2: Parser: global decls.
3:
1.121 moko 4: Copyright (c) 2001-2026 Art. Lebedev Studio (https://www.artlebedev.com)
1.119 moko 5: Authors: Konstantin Morshnev <moko@design.ru>, Alexandr Petrosian <paf@design.ru>
1.1 paf 6: */
7:
8: #ifndef PA_GLOBALS_H
9: #define PA_GLOBALS_H
1.90 paf 10:
1.122 ! moko 11: #define IDENT_PA_GLOBALS_H "$Id: pa_globals.h,v 1.121 2026/04/25 13:38:46 moko Exp $"
! 12:
! 13: #include "pa_config_includes.h"
1.105 paf 14:
15: #ifdef XML
16: # include "libxml/tree.h"
17: #endif
1.104 paf 18:
1.108 paf 19: class Request;
1.1 paf 20:
1.110 paf 21: /// initialize global variables
1.104 paf 22: void pa_globals_init();
1.110 paf 23:
24: /// finalize global variables
25: void pa_globals_done();
1.5 paf 26:
1.115 moko 27: /// for lt_dlinit to be called once
28: void pa_dlinit();
29:
1.14 paf 30: /// hex_value[c] = hex value of c
1.5 paf 31: extern short hex_value[0x100];
1.1 paf 32:
1.75 paf 33: #ifdef XML
34: /// flag whether there were some xml generic errors on current thread
35: bool xmlHaveGenericErrors();
1.74 paf 36: /// get xml generic error accumulated for current thread. WARNING: it is up to caller to free up
1.104 paf 37: const char* xmlGenericErrors();
1.75 paf 38: #endif
1.108 paf 39:
1.122 ! moko 40: /// request of the local thread: set in the Request constructor and cleared in its destructor, can be used in signal handlers
! 41: extern THREAD_LOCAL Request* thread_request;
! 42: /// retrives thread_request or throws if there is none, useful in contextless places
1.108 paf 43: Request& pa_thread_request();
1.1 paf 44:
45: #endif
E-mail: