ReactOS 0.4.16-dev-289-g096a551
|
#include "libxml.h"
#include <string.h>
#include <stdarg.h>
#include <stdlib.h>
#include <assert.h>
#include <time.h>
#include <sys/timeb.h>
#include <sys/types.h>
#include <sys/stat.h>
#include <fcntl.h>
#include <unistd.h>
#include <libxml/xmlmemory.h>
#include <libxml/parser.h>
#include <libxml/parserInternals.h>
#include <libxml/HTMLparser.h>
#include <libxml/HTMLtree.h>
#include <libxml/tree.h>
#include <libxml/xpath.h>
#include <libxml/debugXML.h>
#include <libxml/xmlerror.h>
#include <libxml/globals.h>
#include <libxml/xmlreader.h>
Go to the source code of this file.
Macros | |
#define | XML_XML_DEFAULT_CATALOG "file://" SYSCONFDIR "/xml/catalog" |
#define | MAX_PATHS 64 |
#define | PATH_SEPARATOR ':' |
#define | CLOCKS_PER_SEC 100 |
Enumerations | |
enum | xmllintReturnCode { XMLLINT_RETURN_OK = 0 , XMLLINT_ERR_UNCLASS = 1 , XMLLINT_ERR_DTD = 2 , XMLLINT_ERR_VALID = 3 , XMLLINT_ERR_RDFILE = 4 , XMLLINT_ERR_SCHEMACOMP = 5 , XMLLINT_ERR_OUT = 6 , XMLLINT_ERR_SCHEMAPAT = 7 , XMLLINT_ERR_RDREGIS = 8 , XMLLINT_ERR_MEM = 9 , XMLLINT_ERR_XPATH = 10 } |
Variables | |
static int | debug = 0 |
static int | maxmem = 0 |
static int | recovery = 0 |
static int | noent = 0 |
static int | noenc = 0 |
static int | noblanks = 0 |
static int | noout = 0 |
static int | nowrap = 0 |
static int | repeat = 0 |
static int | insert = 0 |
static int | htmlout = 0 |
static int | testIO = 0 |
static char * | encoding = NULL |
static int | dtdattrs = 0 |
static int | loaddtd = 0 |
static xmllintReturnCode | progresult = XMLLINT_RETURN_OK |
static int | quiet = 0 |
static int | timing = 0 |
static int | generate = 0 |
static int | dropdtd = 0 |
static int | chkregister = 0 |
static int | nbregister = 0 |
static int | options = XML_PARSE_COMPACT | XML_PARSE_BIG_LINES |
static int | sax = 0 |
static int | oldxml10 = 0 |
static xmlChar * | paths [MAX_PATHS+1] |
static int | nbpaths = 0 |
static int | load_trace = 0 |
static xmlExternalEntityLoader | defaultEntityLoader = NULL |
static clock_t | begin |
static clock_t | end |
static char | buffer [50000] |
static xmlSAXHandler | emptySAXHandlerStruct |
static xmlSAXHandlerPtr | emptySAXHandler = &emptySAXHandlerStruct |
static int | callbacks |
: the entity name | |
referenceDebug: @ctxt: An XML parser context called when an entity reference is detected. | |
xmlSAXHandlerPtr | debugSAXHandler = &debugSAXHandlerStruct |
static xmlSAXHandler | debugSAXHandlerStruct |
static void XMLCDECL | LIBXML_ATTR_FORMAT (2, 3) |
static void | entityDeclDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name, int type, const xmlChar *publicId, const xmlChar *systemId, xmlChar *content) |
static void | referenceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *name) |
static void | ignorableWhitespaceDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *ch, int len) |
static void | processingInstructionDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *target, const xmlChar *data) |
static void | cdataBlockDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value, int len) |
static void | commentDebug (void *ctx ATTRIBUTE_UNUSED, const xmlChar *value) |
#define XML_XML_DEFAULT_CATALOG "file://" SYSCONFDIR "/xml/catalog" |
Definition at line 87 of file xmllint.c.
|
static |
Definition at line 1055 of file xmllint.c.
cdataBlockDebug: @ctx: the user data (XML parser context) @value: The pcdata content @len: the block length
called when a pcdata block has been parsed
charactersDebug: @ctxt: An XML parser context @ch: a xmlChar string @len: the number of xmlChar
receiving some chars from the parser. Question: how much at a time ???
Definition at line 1241 of file xmllint.c.
|
static |
Definition at line 3101 of file xmllint.c.
Referenced by main().
|
static |
|
static |
|
static |
|
static |
|
static |
|
static |
ignorableWhitespaceDebug: @ctxt: An XML parser context @ch: a xmlChar string @start: the first char in the string @len: the number of xmlChar
receiving some ignorable whitespaces from the parser. Question: how much at a time ???
|
static |
Definition at line 464 of file xmllint.c.
xmlHTMLError: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format an error messages, gives file, line, position and extra parameters.
xmlHTMLWarning: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a warning messages, gives file, line, position and extra parameters.
xmlHTMLValidityError: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format an validity error messages, gives file, line, position and extra parameters.
xmlHTMLValidityWarning: @ctx: an XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a validity warning messages, gives file, line, position and extra parameters.
warningDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a warning messages, gives file, line, position and extra parameters.
errorDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a error messages, gives file, line, position and extra parameters.
fatalErrorDebug: @ctxt: An XML parser context @msg: the message to display/transmit ...: extra parameters for the message display
Display and format a fatalError messages, gives file, line, position and extra parameters.
Definition at line 586 of file xmllint.c.
Definition at line 3110 of file xmllint.c.
Definition at line 785 of file xmllint.c.
Referenced by parseAndPrintFile().
Definition at line 338 of file xmllint.c.
Referenced by main().
Definition at line 782 of file xmllint.c.
Referenced by parseAndPrintFile().
Definition at line 353 of file xmllint.c.
Referenced by main().
Definition at line 326 of file xmllint.c.
Referenced by myMallocFunc(), myReallocFunc(), and myStrdupFunc().
|
static |
Definition at line 2133 of file xmllint.c.
Referenced by main().
Definition at line 212 of file xmllint.c.
Referenced by main().
|
static |
|
static |
Definition at line 3090 of file xmllint.c.
Referenced by main().
|
static |
resolveEntityDebug: @ctxt: An XML parser context @publicId: The public ID of the entity @systemId: The system ID of the entity
Special entity resolver, better left to the parser, it has more context than the application layer. The default behaviour is to NOT resolve the entities, in that case the ENTITY_REF nodes are built in the structure (and the parameter values).
Returns the xmlParserInputPtr if inlined or NULL for DOM behaviour.
Definition at line 957 of file xmllint.c.
|
static |
setDocumentLocatorDebug: @ctxt: An XML parser context @loc: A SAX Locator
Receive the document locator at startup, actually xmlDefaultSAXLocator Everything is available on the context, so this is useless in our case.
|
static |
|
static |
Definition at line 460 of file xmllint.c.
Referenced by main(), QMyMainWindow::mousePressEvent(), parseAndPrintFile(), FxTimer::Start(), and FxIoTarget::SubmitLocked().
Definition at line 1586 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 2970 of file xmllint.c.
Definition at line 487 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT(), xmlHTMLPrintFileContext(), and xmlHTMLPrintFileInfo().
|
static |
xmlHTMLPrintFileContext: @input: an xmlParserInputPtr input
Displays current context within the input content for error tracking
Definition at line 536 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT().
|
static |
xmlHTMLPrintFileInfo: @input: an xmlParserInputPtr input
Displays the associated file and line information for the current input
Definition at line 512 of file xmllint.c.
Referenced by LIBXML_ATTR_FORMAT().
|
static |
Definition at line 240 of file xmllint.c.
Referenced by main().
|
static |
Definition at line 458 of file xmllint.c.
Referenced by basic_string< _CharT, _Traits, _Alloc >::_M_assign(), __BVECTOR_QUALIFIED::_M_fill_assign(), vector< _Tp, >::_M_fill_assign(), list< _Tp, >::_M_fill_assign(), __BVECTOR_QUALIFIED::_M_fill_insert(), __BVECTOR_QUALIFIED::_M_insert_aux(), adns__findtype(), list< _Tp, >::assign(), basic_string< _CharT, _Traits, _Alloc >::assign(), __BVECTOR_QUALIFIED::capacity(), checkMiddle(), __BVECTOR_QUALIFIED::clear(), list< _Tp, >::clear(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::clear(), copy_char_to_wchar_sz(), DBG_cutIntersectionPoly(), DBG_edgeIntersectChainD(), DecompressBitmap(), directedLine::deleteChain(), dialog_edit_control(), dialog_vcl_add_columns(), Window::dispatch_dialog_msg(), __BVECTOR_QUALIFIED::empty(), list< _Tp, >::erase(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::erase(), basic_string< _CharT, _Traits, _Alloc >::find_first_of(), basic_string< _CharT, _Traits, _Alloc >::find_last_not_of(), basic_string< _CharT, _Traits, _Alloc >::find_last_of(), vertexArray::findDecreaseChainFromEnd(), findIncreaseChainFromBegin(), __BVECTOR_QUALIFIED::front(), list< _Tp, >::front(), slist< _Tp, >::front(), ResizeManager::HandleSize(), anonymous_namespace{mstscax.cpp}::init(), ATL::CComEnumImpl< Base, piid, T, Copy >::Init(), vector< _Tp, >::insert(), __BVECTOR_QUALIFIED::insert(), LIBXML_ATTR_FORMAT(), list< _Tp, >::list(), list< _Tp, >::merge(), __BVECTOR_QUALIFIED::operator=(), list< _Tp, >::operator=(), _Rb_tree< key_type, key_compare, value_type, _STLP_SELECT1ST(value_type, int), _MapTraits, _Alloc >::operator=(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::operator=(), __BVECTOR_QUALIFIED::operator[](), parse_hex_literal(), list< _Tp, >::pop_front(), Window::pretranslate_msg(), print_tokens(), list< _Tp, >::push_front(), list< _Tp, >::remove(), XMLStorage::XMLNode::Children::remove(), __BVECTOR_QUALIFIED::rend(), list< _Tp, >::rend(), _Rb_tree< _Key, _Compare, _Value, _KeyOfValue, _Traits, >::rend(), deque< _Tp, >::rend(), vector< _Tp, >::rend(), __BVECTOR_QUALIFIED::reserve(), __BVECTOR_QUALIFIED::resize(), list< _Tp, >::resize(), basic_string< _CharT, _Traits, _Alloc >::rfind(), ShowDiff(), __BVECTOR_QUALIFIED::size(), list< _Tp, >::size(), startTimer(), XMLStorage::XMLErrorList::str(), String_trim(), Desktops::SwitchToDesktop(), and Desktops::~Desktops().
|
static |
Definition at line 838 of file xmllint.c.
Referenced by attributeDeclDebug(), cdataBlockDebug(), cf2_builder_cubeTo(), cf2_builder_lineTo(), cf2_builder_moveTo(), cf2_glyphpath_init(), cf2_interpT2CharString(), charactersDebug(), commentDebug(), debugclient_GetEventCallbacks(), debugclient_GetEventCallbacksWide(), debugclient_GetInputCallbacks(), debugclient_GetOutputCallbacks(), debugclient_GetOutputCallbacksWide(), debugclient_SetEventCallbacks(), debugclient_SetEventContextCallbacks(), debugclient_SetInputCallbacks(), debugclient_SetOutputCallbacks(), debugclient_SetOutputCallbacksWide(), DECLARE_INTERFACE_(), elementDeclDebug(), endDocumentDebug(), endElementDebug(), endElementNsDebug(), entityDeclDebug(), EnumLanguageGroupLocalesA(), EnumLanguageGroupLocalesW(), externalSubsetDebug(), getEntityDebug(), getParameterEntityDebug(), hasExternalSubsetDebug(), hasInternalSubsetDebug(), ignorableWhitespaceDebug(), FxInterrupt::InitializeWorker(), internalSubsetDebug(), IntGetIcdData(), isStandaloneDebug(), JSPROXY_InternetInitializeAutoProxyDll(), notationDeclDebug(), processingInstructionDebug(), referenceDebug(), resolveEntityDebug(), setDocumentLocatorDebug(), startDocumentDebug(), startElementDebug(), startElementNsDebug(), test_initterm(), testSAX(), unparsedEntityDeclDebug(), and wpp_set_callbacks().
|
static |
Definition at line 104 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
|
static |
xmlSAXHandlerPtr debugSAXHandler = &debugSAXHandlerStruct |
|
static |
|
static |
Definition at line 237 of file xmllint.c.
Referenced by main(), and xmllintExternalEntityLoader().
|
static |
Definition at line 165 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
|
static |
Definition at line 155 of file xmllint.c.
Referenced by _test_current_encoding(), _test_form_encoding(), _test_form_put_encoding(), BDF_Face_Init(), blob_to_str(), cff_cmap_encoding_init(), cff_encoding_done(), cff_encoding_load(), cff_face_init(), create_writer_output(), CreateFontPackage(), CreateXmlReaderInputWithEncodingName(), CreateXmlWriterOutputWithEncodingName(), decode_inner_content(), dwarf2_parse_augmentation_ptr(), dwarf2_parse_base_type(), enc2num(), find_unicode_charmap(), fnIMultiLanguage_ConvertStringFromUnicode(), FT_DEFINE_SERVICE_PSFONTNAMEREC(), FT_Get_BDF_Charset_ID(), FT_Select_Charmap(), get_code_page(), get_encoding_name(), get_url_encoding(), id3_to_utf8(), init_content_encoding(), init_output_buffer(), main(), mpg123_encsize(), mpg123_fmt_support(), mpg123_format_support(), mpg123_getformat(), mpg123_getformat2(), mpg123_open_fixed(), mxwriter_get_encoding(), mxwriter_put_encoding(), next_text(), open_fixed_post(), open_fixed_pre(), XMLStorage::XMLReaderBase::parse(), parse_cie_details(), parse_encoding_name(), parseAndPrintFile(), pcf_get_encodings(), process_comment(), process_extra(), process_picture(), PROFILE_Save(), PROFILE_WriteLine(), PROFILE_WriteMarker(), SearchFile(), set_content_length(), sfnt_find_encoding(), store_id3_text(), t1_cmap_custom_init(), test_mxwriter_default_properties(), test_sip(), test_UrlMkGetSessionOption(), UrlMkGetSessionOption(), WINTRUST_GetTimeFromCounterSigner(), WINTRUST_GetTimeFromSigner(), xmlCtxtReadDoc(), xmlCtxtReadFd(), xmlCtxtReadFile(), xmlCtxtReadIO(), xmlCtxtReadMemory(), xmlCtxtResetPush(), xmlCtxtUseOptionsInternal(), XMLStorage::XMLReaderBase::XmlDeclHandler(), xmlDoRead(), xmlParseEncodingDecl(), xmlParseTextDecl(), xmlReadDoc(), xmlReadFd(), xmlReadFile(), xmlReadIO(), xmlReadMemory(), xsltApplyStylesheetInternal(), xsltDocumentElem(), xsltSaveResultTo(), xsltSaveResultToFd(), xsltSaveResultToFile(), xsltSaveResultToFilename(), and xsltSaveResultToString().
|
static |
Definition at line 164 of file xmllint.c.
Referenced by GeneratorTest::gener1(), GeneratorTest::gener2(), main(), and parseAndPrintFile().
|
static |
Definition at line 143 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
Definition at line 138 of file xmllint.c.
Referenced by __BVECTOR_QUALIFIED::_M_fill_assign(), deque< _Tp, >::_M_fill_assign(), list< _Tp, >::_M_fill_assign(), list< _Tp, >::_M_fill_insert(), list< _Tp, >::_M_insert(), basic_string< _CharT, _Traits, _Alloc >::_M_insert_dispatch(), basic_string< _CharT, _Traits, _Alloc >::_M_insertT(), _STLP_STATIC_ASSERT(), add_entry(), add_reglocator_entry(), AddToInputListView(), deque< _Tp, >::assign(), list< _Tp, >::assign(), format_insert(), _Locale_impl::insert(), list< _Tp, >::insert(), vector< _Tp, >::insert(), deque< _Tp, >::insert(), slist< _Tp, >::insert(), reflexChain::insert(), rope< _CharT, _Alloc >::insert(), basic_string< _CharT, _Traits, _Alloc >::insert(), _Locale_impl::insert_collate_facets(), _Locale_impl::insert_ctype_facets(), _Locale_impl::insert_messages_facets(), _Locale_impl::insert_monetary_facets(), _Locale_impl::insert_numeric_facets(), _Locale_impl::insert_time_facets(), list< _Tp, >::list(), CDefView::LoadColumns(), LoadSystemIni(), main(), ME_InsertString(), deque< _Tp, >::operator=(), list< _Tp, >::operator=(), map< _Key, _Tp,, >::operator[](), parseAndPrintFile(), reflexChain::processNewVertex(), PropertyStore_LookupValue(), psh_glyph_interpolate_normal_points(), vector< _Tp, >::push_back(), list< _Tp, >::push_back(), list< _Tp, >::push_front(), basic_string< _CharT, _Traits, _Alloc >::replace(), __BVECTOR_QUALIFIED::resize(), vector< _Tp, >::resize(), deque< _Tp, >::resize(), list< _Tp, >::splice(), slist< _Tp, >::splice(), Knotspec::transform(), primStream::triangle(), xmlDictExists(), xmlDictLookup(), xmlDictQLookup(), xmlHashAddEntry3(), xmlHashUpdateEntry3(), xsltApplySequenceConstructor(), xsltCopyTree(), xsltCopyTreeList(), xsltEvalTemplateString(), xsltShallowCopyElem(), and xsltShallowCopyNsNode().
|
static |
Definition at line 209 of file xmllint.c.
Referenced by main(), and xmllintExternalEntityLoader().
|
static |
Definition at line 105 of file xmllint.c.
Referenced by main(), myMallocFunc(), myReallocFunc(), myStrdupFunc(), and OOM().
|
static |
Definition at line 208 of file xmllint.c.
Referenced by parsePath(), and xmllintExternalEntityLoader().
|
static |
Definition at line 185 of file xmllint.c.
Referenced by deregisterNode(), main(), and registerNode().
|
static |
Definition at line 111 of file xmllint.c.
Referenced by main(), and xsltCopyTree().
|
static |
Definition at line 113 of file xmllint.c.
Referenced by attributeDeclDebug(), cdataBlockDebug(), charactersDebug(), commentDebug(), elementDeclDebug(), endDocumentDebug(), endElementDebug(), endElementNsDebug(), entityDeclDebug(), externalSubsetDebug(), getEntityDebug(), getParameterEntityDebug(), hasExternalSubsetDebug(), hasInternalSubsetDebug(), ignorableWhitespaceDebug(), internalSubsetDebug(), isStandaloneDebug(), main(), notationDeclDebug(), parseAndPrintFile(), processingInstructionDebug(), referenceDebug(), resolveEntityDebug(), setDocumentLocatorDebug(), startDocumentDebug(), startElementDebug(), startElementNsDebug(), testSAX(), and unparsedEntityDeclDebug().
|
static |
|
static |
|
static |
Definition at line 162 of file xmllint.c.
Referenced by codeview_get_type(), LoadPerfCounterTextStringsA(), LoadPerfCounterTextStringsW(), main(), BtrfsRecv::Open(), parseAndPrintFile(), testSAX(), UnloadPerfCounterTextStringsA(), and UnloadPerfCounterTextStringsW().
|
static |
Definition at line 109 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
Definition at line 137 of file xmllint.c.
Referenced by _vsnprintf(), Ext2NewInode(), ext4_ext_create_new_leaf(), HUF_compress1X_repeat(), HUF_compress4X_repeat(), HUF_compress_internal(), insert_revoke_hash(), journal_add_journal_head(), KeyDownData(), main(), parseAndPrintFile(), profile_outline(), testSAX(), ZSTD_buildSuperBlockEntropy_literal(), ZSTD_compressLiterals(), and ZSTD_compressSubBlock_sequences().
|
static |
Definition at line 193 of file xmllint.c.
Referenced by main(), xmlCreateIOParserCtxt(), xmlDetectSAX2(), and xmlParseExternalEntityPrivate().
|
static |
Definition at line 154 of file xmllint.c.
Referenced by main(), and parseAndPrintFile().
|
static |
Definition at line 163 of file xmllint.c.
Referenced by AtapiDmaInit(), hpt_timing(), main(), parseAndPrintFile(), and promise_timing().