--- parser3/src/include/pa_globals.h 2001/11/05 11:46:24 1.68 +++ parser3/src/include/pa_globals.h 2002/02/08 08:30:13 1.78 @@ -1,29 +1,27 @@ /** @file Parser: global decls. - Copyright (c) 2001 ArtLebedev Group (http://www.artlebedev.com) - Author: Alexander Petrosyan (http://paf.design.ru) + Copyright (c) 2001, 2002 ArtLebedev Group (http://www.artlebedev.com) + Author: Alexandr Petrosian (http://paf.design.ru) - $Id: pa_globals.h,v 1.68 2001/11/05 11:46:24 paf Exp $ + $Id: pa_globals.h,v 1.78 2002/02/08 08:30:13 paf Exp $ */ #ifndef PA_GLOBALS_H #define PA_GLOBALS_H -#include "pa_config_includes.h" #include "pa_pool.h" class String; class Hash; class Dictionary; +class Charset; //@{ /// constant string. class name, predefined method & co #define CONFIG_FILE_NAME "parser3.conf" #define AUTO_FILE_NAME "auto.p" -#define USER_HTML_NAME "user-html" - #define CONTENT_TYPE_NAME "content-type" #define CHARSET_NAME "charset" #define BODY_NAME "body" @@ -70,6 +68,8 @@ class Dictionary; #define SQL_OFFSET_NAME "offset" #define SQL_DEFAULT_NAME "default" +#define CHARSET_UTF8_NAME "UTF-8" + #define HASH_DEFAULT_ELEMENT_NAME "_default" //@} @@ -82,7 +82,7 @@ extern short hex_value[0x100]; //@{ /// global string -extern String *user_html_name; +extern String *optimized_html_name; extern String *content_type_name; extern String *charset_name; extern String *body_name; @@ -104,7 +104,6 @@ extern String *main_method_name; extern String *main_class_name; -extern String *defaults_name; extern String *charsets_name; extern String *mime_types_name; @@ -131,14 +130,27 @@ extern String *sql_limit_name; extern String *sql_offset_name; extern String *sql_default_name; +extern String *charset_UTF8_name; + extern String *hash_default_element_name; //@} -/// global hash +/// name to enum language table extern Hash *untaint_lang_name2enum; -/// global table -extern Dictionary *default_typo_dict; + +/// UTF8 charset +extern Charset *utf8_charset; + +#ifdef XML +/// DOMImplementation +extern GdomeDOMImplementation *domimpl; + +/// flag whether there were some xml generic errors on current thread +bool xmlHaveGenericErrors(); +/// get xml generic error accumulated for current thread. WARNING: it is up to caller to free up +const char *xmlGenericErrors(); +#endif #endif