--- parser3/src/include/pa_globals.h 2001/11/16 12:38:43 1.69 +++ parser3/src/include/pa_globals.h 2002/02/08 08:30:13 1.78 @@ -1,21 +1,21 @@ /** @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.69 2001/11/16 12:38:43 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 @@ -68,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" //@} @@ -102,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; @@ -129,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