Nick Wellnhofer
87bebd25f1
xmllint: Return error code if XPath returns empty nodeset
...
Return an error code as before but make it possible to distinguish from
real errors.
Fixes #690 .
2024-02-12 16:47:12 +01:00
Nick Wellnhofer
b53562bde5
examples: Readd xpath1 test
...
This was removed for some reason in fc119e32 .
Fixes #685 .
2024-02-11 12:33:02 +01:00
Nick Wellnhofer
2835337a1a
doc: Mark xmllint --xpath as experimental
...
This feature was poorly thought-out.
2024-01-30 14:18:45 +01:00
Nick Wellnhofer
6b089473e0
doc: Update xmllint man page after fixing #180
...
Fixes #673 .
2024-01-30 13:38:54 +01:00
Nick Wellnhofer
d636ef1de1
tests: Remove testOOM
...
This was never part of the standard test suite and we now test OOM error
handling more comprehensively with fuzz testing.
2024-01-11 00:43:44 +01:00
Nick Wellnhofer
9122ad0ce6
include: Move globals from xmlsave.h to parser.h
...
Fix downstream build issues after reworking globals.h.
2023-12-07 12:31:06 +01:00
Nick Wellnhofer
c011e7605d
globals: Remove unused globals from thread storage
...
Setting these deprecated globals hasn't had an effect for a long time.
Make them constants. This reduces the size of per-thread storage from
~700 to ~250 bytes.
2023-12-06 20:07:54 +01:00
Nick Wellnhofer
7d6969d955
Remove Trio
...
Trio is a rather old cross-platform printf library which was bundled with
libxml2. It was needed for ancient pre-C99 systems without snprintf and
should be safe to remove these days.
2023-11-23 15:48:52 +01:00
Nick Wellnhofer
f5d4d33bfa
tests: Regenerate testapi.c
2023-11-23 15:39:30 +01:00
Nick Wellnhofer
a40c32ac1f
doc: Regenerate documentation
2023-11-04 19:32:48 +01:00
Nick Wellnhofer
b8e03e13ed
examples: Don't use sprintf
...
Avoids warnings on macOS.
2023-10-02 15:07:55 +02:00
Nick Wellnhofer
42a0bc6d96
tests: Add ATTRIBUTE_NO_SANITIZE_INTEGER macro
2023-09-29 00:15:40 +02:00
Nick Wellnhofer
45470611b0
error: Make xmlGetLastError return a const error
...
This is a slight break of the API, but users really shouldn't modify the
global error struct. The goal is to make xmlLastError use static buffers
for its strings eventually. This should warn people if they're abusing
the struct.
2023-09-22 13:29:07 +02:00
Nick Wellnhofer
e4091bcfea
doc: Allow 'unsigned' without 'int'
2023-09-21 22:54:57 +02:00
Nick Wellnhofer
46d7aaecff
doc: Add ignored tokens to apibuild.py
2023-09-21 22:54:30 +02:00
Nick Wellnhofer
9fc5090c05
hash: Clean up libxml/hash.h
...
Rename variables, fix subincludes, whitespace.
2023-09-21 14:47:25 +02:00
Nick Wellnhofer
1117fae040
include: Remove unneeded includes
2023-09-20 22:07:41 +02:00
Nick Wellnhofer
a77f9ab84c
globals: Don't include SAX2.h from globals.h
2023-09-20 22:06:49 +02:00
Nick Wellnhofer
ed3bd05284
parser: Allow to set maximum amplification factor
2023-08-20 20:49:16 +02:00
Nick Wellnhofer
b463b38bcd
.gitignore: Split up and rearrange .gitignore files
2023-04-30 16:22:27 +02:00
Nick Wellnhofer
fc119e3290
examples: Don't call xmlCleanupParser and xmlMemoryDump
...
xmlCleanupParser is dangerous and shouldn't be called in most cases.
Being part of the examples led many people to use it incorrectly.
xmlMemoryDump is an obsolete way to test for memory leaks.
2023-04-30 15:48:35 +02:00
Nick Wellnhofer
6e12409b33
Regenerate docs and testapi.c
2023-04-26 21:22:17 +02:00
Nick Wellnhofer
21cec82bea
win32: Remove broken libxml2.def.src
...
Fixes #472 .
2023-03-12 16:04:17 +01:00
Nick Wellnhofer
bbb2b8f136
Remove symbols from version script
...
The version script didn't account for symbols disabled by configuration
options. This has caused problems on some OSs in the past and breaks
lld 16 which enables --no-undefined-version by default.
A proper fix would be rather involved, so we simply remove all symbols
from the version script. This is an ELF-only feature and libxml2 never
made use of symbol versioning anyway. Ultimately, this removes the need
for a lot of bookkeeping without tangible benefits.
We have to keep the version nodes to avoid errors when running binaries
linked against older versions of libxml2.
Fixes #473 .
2023-01-17 16:18:48 +01:00
Nick Wellnhofer
78c4430f4e
doc: Remove ancient files
2022-12-22 00:03:10 +01:00
Nick Wellnhofer
785cfcff49
doc/libxml2-api.xml: Regenerate
2022-12-08 19:18:09 +01:00
Nick Wellnhofer
ce9baf94d5
Remove XMLCALL and XMLCDECL macros from public headers
2022-12-08 02:48:27 +01:00
Ross Burton
4762c85668
Use python3 not python
...
As per https://peps.python.org/pep-0394/ , the python binary can be one
of the following options:
- Python 2
- Python 3
- Not exist
All of the scripts in libxml2 use 'python', which may not exist.
As Python 2 reached EOL on the 1st January 2020, it's safe to move the
scripts to use python3 explicitly.
2022-12-07 13:21:12 +00:00
Nick Wellnhofer
b693905f9b
doc: Remove xmlDllMain from documentation and version script
...
This is a Windows-only symbol.
2022-11-04 14:50:39 +01:00
Nick Wellnhofer
d48faf1a7d
doc: Mention ${sysconfdir} in man pages
...
Fixes #395 .
2022-11-04 14:35:34 +01:00
Nick Wellnhofer
3ab57bf475
doc: Document xmlcatalog --convert
...
Fixes #417 .
2022-11-04 14:35:33 +01:00
Nick Wellnhofer
ae7096a173
doc: Document xmllint --nodict and --pedantic
...
Fixes #418 .
2022-11-04 14:35:33 +01:00
Nick Wellnhofer
736487dffb
doc: Fix indentation in source XML files
2022-11-04 14:35:33 +01:00
Nick Wellnhofer
fec85df14d
xmllint: Document --quiet option
2022-09-06 19:33:32 +02:00
Nick Wellnhofer
caef85633e
Move automata test to runtest.c
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
1bd24d448a
Fix compiler warning in examples
2022-09-02 18:33:36 +02:00
Nick Wellnhofer
1660331b28
Remove xmlErrMemory from symbols
...
This function was never publically declared.
2022-08-26 02:24:23 +02:00
Nick Wellnhofer
0f568c0b73
Consolidate private header files
...
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.
2022-08-26 02:11:56 +02:00
Nick Wellnhofer
34a050cdee
Move some HTML functions to correct header file
2022-08-24 16:44:39 +02:00
Nick Wellnhofer
ca3807d946
Mark more functions setting globals as deprecated
2022-08-24 16:16:09 +02:00
Nick Wellnhofer
e70b0c5e03
Rebuild documentation
2022-08-24 15:16:04 +02:00
Nick Wellnhofer
88637d428d
Improve cross-references in API docs
...
Also cross-reference keywords followed by a period. This is still a hack
but catches quite a few more keywords.
2022-08-24 15:09:46 +02:00
Nick Wellnhofer
6cdaa192cd
Rebuild documentation
2022-08-24 14:34:04 +02:00
Nick Wellnhofer
b33be8a04f
Switch back to HTML output for API documentation
2022-08-24 14:29:50 +02:00
Nick Wellnhofer
0e49f8826a
Mark most SAX1 functions as deprecated
...
No compiler warnings generated yet.
2022-08-24 14:07:57 +02:00
Nick Wellnhofer
9a82b94a94
Introduce xmlNewSAXParserCtxt and htmlNewSAXParserCtxt
...
Add API functions to create a parser context with a custom SAX handler
without having to mess with ctxt->sax manually.
2022-08-24 14:07:55 +02:00
Nick Wellnhofer
3513d76aa2
Improve documentation of globals
...
Document more global variables as deprecated. Some of the variables
don't generate deprecation warnings yet, but they shouldn't be used in
new code.
2022-08-24 02:27:50 +02:00
Nick Wellnhofer
f703ed694b
Fix documentation parser
...
Reset comment right after adding to the index.
2022-08-24 01:29:49 +02:00
Nick Wellnhofer
bd6a427232
Rebuild API documentation
2022-08-24 01:02:22 +02:00
Nick Wellnhofer
4f3eb8a3b4
Support comments for global variables in documentation
...
This was never implemented.
2022-08-24 01:02:22 +02:00