Annotation of parser3/src/include/pa_globals.h, revision 1.121

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.121   ! moko       11: #define IDENT_PA_GLOBALS_H "$Id: pa_globals.h,v 1.120 2024/11/04 03:53:25 moko Exp $"
1.105     paf        12: 
                     13: #ifdef XML
                     14: #      include "libxml/tree.h"
                     15: #endif
1.104     paf        16: 
1.108     paf        17: class Request;
1.1       paf        18: 
1.110     paf        19: /// initialize global variables
1.104     paf        20: void pa_globals_init();
1.110     paf        21: 
                     22: /// finalize global variables
                     23: void pa_globals_done();
1.5       paf        24: 
1.115     moko       25: /// for lt_dlinit to be called once
                     26: void pa_dlinit();
                     27: 
1.14      paf        28: /// hex_value[c] = hex value of c
1.5       paf        29: extern short hex_value[0x100];
1.1       paf        30: 
1.75      paf        31: #ifdef XML
                     32: /// flag whether there were some xml generic errors on current thread
                     33: bool xmlHaveGenericErrors();
1.74      paf        34: /// get xml generic error accumulated for current thread. WARNING: it is up to caller to free up
1.104     paf        35: const char* xmlGenericErrors();
1.75      paf        36: #endif
1.108     paf        37: 
                     38: /// register request for local thread to retrive later with pa_get_request()
                     39: void pa_register_thread_request(Request&);
                     40: /// retrives request set by pa_set_request function, useful in contextless places [slow]
                     41: Request& pa_thread_request();
1.1       paf        42: 
                     43: #endif

E-mail: