- Apr 13, 2015
-
-
halex2005 authored
-
Arseny Kapoulkine authored
Also fix test in wchar_t mode.
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
Also add tests that verify save_file for absence of FILE leaks.
-
- Apr 12, 2015
-
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Instead of reallocating the string for every tree level just do two passes over the ancestor chain.
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
We currently don't allocate/modify any state so there are no issues with this.
-
Arseny Kapoulkine authored
This makes sure that no exception handling mechanisms are used if PUGXML_NO_EXCEPTIONS is defined.
-
Arseny Kapoulkine authored
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'.
-
- Apr 11, 2015
-
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
This provides more coverage for #17.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Base directory is now using target basename.
-
- Mar 25, 2015
-
-
Arseny Kapoulkine authored
This eliminates one more hardcoded version from the repo, yay!
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
- Mar 24, 2015
-
-
Arseny Kapoulkine authored
It's almost done; the only remaining issue is that some section titles are too long.
-
- Mar 22, 2015
-
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Also minor wording fixes.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Users no longer need to #include "pugixml.cpp"
-
Arseny Kapoulkine authored
Mostly added correct quotation to changelog.
-
Arseny Kapoulkine authored
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.
-
Arseny Kapoulkine authored
Still need to replace [link ] with actual links. Also a bunch of small fixes here and there.
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
Also remove redundant [lbr]
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-
Arseny Kapoulkine authored
-