Age | Commit message (Collapse) | Author | |
---|---|---|---|
2015-04-12 | Permit custom allocation function to throw | Arseny Kapoulkine | |
Ensure that all the necessary cleanup is performed in case the allocation fails with an exception - files are closed, buffers are reclaimed, etc. Any test that triggers a simulated out-of-memory condition is ran once again with a throwing allocation function. Unobserved std::bad_alloc count as test failures and require CHECK_ALLOC_FAIL macro. Fixes #17. | |||
2015-04-12 | tests: Add more out of memory tests | Arseny Kapoulkine | |
Also add tests that verify save_file for absence of FILE leaks. | |||
2015-04-12 | Implment copyless copy for attributes | Arseny Kapoulkine | |
Previously attributes that were copied with their node used string sharing, but standalone attributes that were copied using xml_node::*_copy(xml_attribute) were not. | |||
2015-04-12 | tests: Add a test that verifies absence of file leaks | Arseny Kapoulkine | |
If an out of memory error happens in load_file there's a danger of leaking the FILE object. Since there is a limited supply of the objects we can easily test that the leak does not happen. | |||
2015-04-12 | tests: Fix some Coverity issues | Arseny Kapoulkine | |
2015-04-12 | Optimize xml_node::path() to use 1 allocation | Arseny Kapoulkine | |
Instead of reallocating the string for every tree level just do two passes over the ancestor chain. | |||
2015-04-12 | Move zero-termination out of as_utf8_end | Arseny Kapoulkine | |
as_utf8_end was used with std::string, where writing an extra zero-terminating character should *probably* always work (at least if size is positive) but is not ideal. The only place that needed to zero-terminate was convert_path_heap. | |||
2015-04-11 | Fix Travis CI build. | Arseny Kapoulkine | |
2015-04-11 | tests: Improve out-of-memory tests | Arseny Kapoulkine | |
Previously there was no guarantee that the tests that check for out of memory handling behavior are actually correct - e.g. that they correctly simulate out of memory conditions. Now every simulated out of memory condition has to be "guarded" using CHECK_ALLOC_FAIL. It makes sure that every piece of code that is supposed to cause out-of-memory does so, and that no other code runs out of memory unnoticed. | |||
2015-04-11 | tests: Add a test for throwing from xml_writer::write | Arseny Kapoulkine | |
We currently don't allocate/modify any state so there are no issues with this. | |||
2015-04-11 | Use -fno-exceptions flag for PUGIXML_NO_EXCEPTIONS build | Arseny Kapoulkine | |
This makes sure that no exception handling mechanisms are used if PUGXML_NO_EXCEPTIONS is defined. | |||
2015-04-11 | Fix exception type for out-of-memory for XPath variables | Arseny Kapoulkine | |
When parsing XPath variables, we need to perform a heap allocation; if it fails, an xpath_exception instead of bad_alloc used to be thrown. Now we throw the exception of a correct type so that xpath_exception means 'parsing error'. | |||
2015-04-11 | tests: Use char_t instead of wchar_t | Arseny Kapoulkine | |
2015-04-11 | tests: Add more out of memory tests | Arseny Kapoulkine | |
This provides more coverage for #17. | |||
2015-04-10 | Update README.md | Arseny Kapoulkine | |
2015-04-10 | docs: Update release datev1.6 | Arseny Kapoulkine | |
2015-04-10 | Fix archive packaging | Arseny Kapoulkine | |
Base directory is now using target basename. | |||
2015-03-24 | docs: Use automatically retrieved version for docs | Arseny Kapoulkine | |
This eliminates one more hardcoded version from the repo, yay! | |||
2015-03-24 | Update Makefile to exclude docs/manual folder from release | Arseny Kapoulkine | |
2015-03-24 | docs: Add generated documentation | Arseny Kapoulkine | |
2015-03-24 | docs: Finishing touches | Arseny Kapoulkine | |
It's almost done; the only remaining issue is that some section titles are too long. | |||
2015-03-22 | Add include dependencies to HTML targets | Arseny Kapoulkine | |
2015-03-22 | docs: Reword documentation note | Arseny Kapoulkine | |
2015-03-22 | docs: Minor API reference improvements | Arseny Kapoulkine | |
2015-03-22 | docs: Fix several internal links | Arseny Kapoulkine | |
2015-03-22 | docs: HTML validity fixes | Arseny Kapoulkine | |
Also minor wording fixes. | |||
2015-03-22 | docs: Converted some samples to Unix newline | Arseny Kapoulkine | |
2015-03-22 | docs: Extract configuration to config.adoc | Arseny Kapoulkine | |
2015-03-22 | docs: Remove old Quickbook sources | Arseny Kapoulkine | |
2015-03-22 | docs: Fix PUGIXML_HEADER_ONLY description | Arseny Kapoulkine | |
Users no longer need to #include "pugixml.cpp" | |||
2015-03-22 | docs: A lot of small fixes | Arseny Kapoulkine | |
Mostly added correct quotation to changelog. | |||
2015-03-21 | docs: Set up cross-referencing and anchors | Arseny Kapoulkine | |
This is mostly done using regex replaces of original Quickbook markup, plus a bit of manual fixup for multiple references to the single point from different lines that AsciiDoc does not seem to handle. | |||
2015-03-21 | docs: API reference is closer to being done | Arseny Kapoulkine | |
Still need to replace [link ] with actual links. Also a bunch of small fixes here and there. | |||
2015-03-21 | docs: Fix nested lists and changelog | Arseny Kapoulkine | |
2015-03-21 | docs: Fix tables and images in the manual | Arseny Kapoulkine | |
Also remove redundant [lbr] | |||
2015-03-21 | docs: Remove image thumbnails | Arseny Kapoulkine | |
2015-03-21 | Add docs target to Makefile | Arseny Kapoulkine | |
2015-03-21 | docs: Remove auxiliary files for old documentation | Arseny Kapoulkine | |
2015-03-21 | docs: Remove old HTML documentation | Arseny Kapoulkine | |
2015-03-21 | docs: Use AsciiDoc-compatible comments in samples | Arseny Kapoulkine | |
2015-03-21 | docs: Add AsciiDoc versions of quickstart and manual | Arseny Kapoulkine | |
Quickstart should be reasonably complete; manual is still in progress | |||
2015-03-21 | tests: Final test fix for CW | Arseny Kapoulkine | |
2015-03-21 | tests: Work around fp issues in various runtime libraries | Arseny Kapoulkine | |
Disable/change some tests for some compilers; use binary float comparison for early MSVC versions. | |||
2015-03-21 | tests: Fix test compilation | Arseny Kapoulkine | |
Rename PAGE_SIZE to page_size to avoid define conflict with Android SDK. Minor fixes in several tests. | |||
2015-03-20 | Update year to 2015 | Arseny Kapoulkine | |
2015-03-20 | Add release target to Makefile | Arseny Kapoulkine | |
2015-03-20 | Makefile refactoring | Arseny Kapoulkine | |
Simplify test source specification, disable built-in rules and suffixes | |||
2015-03-20 | Fix Jamfile (exclude fuzz_*.cpp) | Arseny Kapoulkine | |
2015-03-20 | docs: Regenerate documentation | Arseny Kapoulkine | |
2015-03-19 | docs: Fix quickstart download links | Arseny Kapoulkine | |