summaryrefslogtreecommitdiff
path: root/include
Commit message (Collapse)AuthorAgeFilesLines
...
* Remove HAVE_WIN32_THREADS configuration flagNick Wellnhofer2022-09-041-4/+2
| | | | Check for LIBXML_THREAD_ENABLED and _WIN32 instead.
* Remove "runtime debugging"Nick Wellnhofer2022-09-021-2/+2
| | | | This doesn't seem useful as configuration option.
* Make xmlNewSAXParserCtx take a const sax handlerNick Wellnhofer2022-09-012-3/+4
| | | | Also improve documentation.
* Don't forget to install xmlversion.hNick Wellnhofer2022-08-261-0/+2
| | | | Fixes 7f7961df.
* Consolidate private header filesNick Wellnhofer2022-08-2620-67/+249
| | | | | | | | | | | Private functions were previously declared - in header files in the root directory - in public headers guarded with IN_LIBXML - in libxml.h - redundantly in source files that used them. Consolidate all private header files in include/private.
* Remove internal macros from parserInternals.hNick Wellnhofer2022-08-251-28/+0
| | | | Replace MOVETO_ENDTAG with code that updates line and column numbers.
* Deprecate internal parser functionsNick Wellnhofer2022-08-252-0/+45
|
* Deprecate old HTML SAX APINick Wellnhofer2022-08-251-0/+2
|
* Generate deprecation warnings for old SAX APINick Wellnhofer2022-08-252-0/+16
|
* Remove generated files from distributionNick Wellnhofer2022-08-251-1/+0
| | | | | | | | | | | | | | - libxml2.spec - libxml-2.0.pc - xml2-config - include/libxml/xmlversion.h - python/libxml2.py - python/libxml2-export.c - python/libxml2-py.c - python/libxml2-py.h - python/libxml2class.py - python/libxml2class.txt - python/setup.py
* Move some HTML functions to correct header fileNick Wellnhofer2022-08-242-10/+6
|
* Introduce xmlNewSAXParserCtxt and htmlNewSAXParserCtxtNick Wellnhofer2022-08-242-0/+5
| | | | | Add API functions to create a parser context with a custom SAX handler without having to mess with ctxt->sax manually.
* Don't index anything in DOC_DISABLE sectionsNick Wellnhofer2022-08-241-1/+3
| | | | | | | | Somewhat misleadingly, the DOC_DISABLE directive only disabled warnings. Now we really stop the documentation generator from indexing. This results in additional warnings for xmlThrDef* functions. This should be fixed by documenting or deprecating them.
* Deprecate some global variablesNick Wellnhofer2022-08-241-0/+28
| | | | Most of these should be completely unused.
* Fix warnings from apibuild.pyNick Wellnhofer2022-08-182-0/+4
|
* Skip incorrectly opened HTML commentsNick Wellnhofer2022-08-021-0/+1
| | | | | | | | Commit 4fd69f3e fixed handling of '<' characters not followed by an ASCII letter. But a '<!' sequence followed by invalid characters should be treated as bogus comment and skipped. Fixes #380.
* fix Schematron spellingMehltretter Karl2022-05-061-1/+1
|
* Add configuration flag for XPointer locations supportNick Wellnhofer2022-04-213-0/+42
| | | | | | | | | | | | | | | | | | | | | Add a new configuration flag that controls whether the outdated support for XPointer locations (ranges and points) is enabled. --with-xptr-locs # Autotools LIBXML2_WITH_XPTR_LOCS # CMake The latest spec for what it essentially an XPath extension seems to be this working draft from 2002: https://www.w3.org/TR/xptr-xpointer/ The xpointer() scheme is listed as "being reviewed" in the XPointer registry since at least 2006. libxml2 seems to be the only modern software that tries to implement this spec, but the code has many bugs and quality issues. The flag defaults to "off" and support for this extensions has to be requested explicitly. The relevant API functions are deprecated.
* Clean up encoding switching codeNick Wellnhofer2022-04-021-0/+1
| | | | | | | | - Remove xmlSwitchToEncodingInt which was basically just a wrapper around xmlSwitchInputEncodingInt. - Simplify xmlSwitchEncoding. - Improve error handling in xmlSwitchInputEncodingInt. - Deprecate xmlSwitchInputEncoding.
* Undeprecate schema init functionsNick Wellnhofer2022-03-102-2/+0
| | | | | These functions aren't called from xmlInitParser, so it's better to keep them public for now.
* Deprecate module init and cleanup functionsNick Wellnhofer2022-03-0610-0/+18
| | | | | | These functions shouldn't be part of the public API. Most init functions are only thread-safe when called from xmlInitParser. Global variables should only be cleaned up by calling xmlCleanupParser.
* Don't set HAVE_WIN32_THREADS in win32config.hNick Wellnhofer2022-03-061-2/+0
| | | | This flag must be set on the command line.
* Remove DOCBparserNick Wellnhofer2022-03-048-146/+7
| | | | | | | This code has been broken and deprecated since version 2.6.0, released in 2003. Because of a bug in commit 961b535c, DOCBparser.c was never compiled since 2012. I couldn't find a Debian package using any of its symbols, so it seems safe to remove this module.
* Remove unneeded #includesNick Wellnhofer2022-03-043-4/+0
|
* Use stdint.h with newer MSVCNick Wellnhofer2022-03-041-0/+4
| | | | stdint.h is available since Visual Studio 2010.
* Remove cruft from win32config.hNick Wellnhofer2022-03-041-33/+2
|
* Remove ICONV_CONST testNick Wellnhofer2022-03-041-4/+0
| | | | We can simply cast the offending pointer to (void *).
* Remove isinf/isnan emulation in win32config.hNick Wellnhofer2022-03-031-57/+0
| | | | There's already a better fallback in xpath.c.
* htmlParseComment: handle abruptly-closed commentsMike Dalessio2022-03-021-0/+1
| | | | | | See guidance provided on abrutply-closed comments here: https://html.spec.whatwg.org/multipage/parsing.html#parse-error-abrupt-closing-of-empty-comment
* Don't check for standard C89 headersNick Wellnhofer2022-03-021-11/+0
| | | | | | | | | | | | | | | | | | | | Don't check for - ctype.h - errno.h - float.h - limits.h - math.h - signal.h - stdarg.h - stdlib.h - string.h - time.h Stop including non-standard headers - malloc.h - strings.h
* Don't include ICU headers in public headersNick Wellnhofer2022-03-011-18/+3
| | | | There's no need to make these implementation details public.
* Remove broken Windows CE supportNick Wellnhofer2022-03-011-4/+0
|
* Remove useless __CYGWIN__ checksNick Wellnhofer2022-02-281-1/+1
| | | | | | | | | | From what I can tell, some really early Cygwin versions from around 1998-2000 used to erroneously define _WIN32. This was eventually fixed, but these days, the `defined(_WIN32) && !defined(__CYGWIN__)` idiom is unnecessary. Now, we only check for __CYGWIN__ in xmlexports.h when deciding whether to use __declspec.
* Deprecate IDREF-related functions in valid.hNick Wellnhofer2022-02-201-0/+5
| | | | | | | | | | | | | These functions are only needed internally for validation. xmlGetRefs is inherently unsafe because the ref table isn't updated if attributes are removed (unlike the ids table). None of the Ubuntu 20.04 packages depending on libxml2 use any of these functions (except xmlFreeRefTable in libxslt), so it seems perfectly safe to deprecate them. Remove xmlIsRef and xmlRemoveRef from the Python bindings.
* Deprecate all functions in DOCBparser.hNick Wellnhofer2022-02-201-0/+10
|
* Deprecate legacy functionsNick Wellnhofer2022-02-205-0/+53
|
* Deprecate all functions in nanoftp.hNick Wellnhofer2022-02-201-1/+24
|
* Add XML_DEPRECATED macroNick Wellnhofer2022-02-201-0/+18
| | | | | __attribute__((deprecated)) is available since at least GCC 3.1, so an exact version check is probably unnecessary.
* Rework validation context flagsNick Wellnhofer2022-02-201-7/+7
| | | | | | | | | | | | | Use a bitmask instead of magic values to - keep track whether the validation context is part of a parser context - keep track whether xmlValidateDtdFinal was called This allows to add addtional flags later. Note that this deliberately changes the name of a public struct member, assuming that this was always private data never to be used by client code.
* Remove xmlwin32version.hNick Wellnhofer2022-02-163-562/+1
| | | | | | | This file was undocumented and never used anywhere. Maybe users were supposed to rename this file to xmlversion.h manually. These days, both CMake and win32/configure.js generate xmlversion.h from xmlversion.h.in, just like the Autotools build.
* Remove CVS and SVN-related codeNick Wellnhofer2022-02-132-2/+2
|
* Add missing file xmlwin32version.h.in to EXTRA_DISTMarkus Rickert2021-05-211-1/+1
|
* Store per-element parser state in a structNick Wellnhofer2021-05-081-1/+3
| | | | | | | | | | | | | Make the parser context's "pushTab" point to an array of structs instead of void pointers. This avoids casting unrelated types to void pointers, improving readability and portability, and allows for more efficient packing. Ultimately, the struct could be extended to include the contents of "nameTab" and "spaceTab", further simplifying the code. Historically, "pushTab" was only used by the push parser (hence the name), so the change to the public headers should be safe. Also remove an unused parameter from xmlParseEndTag2.
* Fix include order in c14n.hNick Wellnhofer2021-03-201-4/+6
| | | | | | | - Include xmlversion.h before testing feature flags. - Include libxml headers before extern "C". Fixes #226.
* Remove temporary members from struct _xmlXPathContextNick Wellnhofer2020-12-161-2/+0
| | | | | These values are hardcoded now and the struct members, while public, were recently introduced and never part of an official release.
* Simplify xmlexports.hNick Wellnhofer2020-12-061-115/+39
| | | | | | | | | | All the compiler switches essentially set the same macros. The only exception was MSVC which omitted the "extern" keyword for exported variables. This in turn broke clang-cl. This commit rewrites and simplifies the whole header. Closes #163.
* Stop counting nbChars in parser contextNick Wellnhofer2020-08-091-1/+1
| | | | The value was inaccurate and never used.
* Fix typosNick Wellnhofer2020-03-087-16/+16
| | | | Resolves #133.
* Add xmlPopOutputCallbacksNick Wellnhofer2020-02-111-0/+2
| | | | | | | Add function to pop a single set of output callbacks from the stack. This was only implemented for input callbacks before. Fixes #135.
* Fix a few more typos ("fonction")Nick Wellnhofer2019-09-301-2/+2
|