summaryrefslogtreecommitdiff
path: root/src/pugixml.hpp
diff options
context:
space:
mode:
authorArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-03 05:18:03 +0000
committerArseny Kapoulkine <arseny.kapoulkine@gmail.com>2014-10-03 05:18:03 +0000
commitc4ecc406d261eb85ab541835933fa2f48d6f2afb (patch)
tree63e13383b8a7e43b4c0a820b81c3e94a9f33176d /src/pugixml.hpp
parentdaa48183f92b93dcbd2e35a153864335a4dc65eb (diff)
Reorganize xml_memory_page structure
The page no longer contains 'data' field to use sizeof everywhere instead of offsetof/sizeof inconsistency (that is required because some compilers don't recognize offsetof as compile-time constant). The page no longer contains 'memory' field that is now encoded as an offset byte before the page - this allows us to save one pointer from the static page in the document to keep the size the same as in v1.2 (binary compatibility). git-svn-id: https://pugixml.googlecode.com/svn/trunk@1046 99668b35-9821-0410-8761-19e4c4f06640
Diffstat (limited to 'src/pugixml.hpp')
-rw-r--r--src/pugixml.hpp3
1 files changed, 1 insertions, 2 deletions
diff --git a/src/pugixml.hpp b/src/pugixml.hpp
index 28b7aa3..69b2cb2 100644
--- a/src/pugixml.hpp
+++ b/src/pugixml.hpp
@@ -926,8 +926,7 @@ namespace pugi
private:
char_t* _buffer;
- // sizeof(xml_memory_page) + sizeof(xml_document_struct) + xml_memory_page_alignment
- char _memory[sizeof(void*) * 20 + 64];
+ char _memory[192];
// Non-copyable semantics
xml_document(const xml_document&);