Skip to content
Snippets Groups Projects
  1. Oct 25, 2015
  2. Oct 17, 2015
  3. Oct 10, 2015
  4. Oct 06, 2015
  5. Sep 21, 2015
  6. Sep 20, 2015
  7. Sep 19, 2015
  8. Jul 25, 2015
    • Arseny Kapoulkine's avatar
      tests: Fix test allocator to provide fundamental alignment · e8fdd130
      Arseny Kapoulkine authored
      Previously test allocator only guaranteed alignment enough for a pointer.
      
      On some platforms (e.g. SPARC) double has to be aligned to 8 bytes but pointers
      can have a size of 4 bytes. This commit increases allocation header to fix that.
      
      In practical terms the allocation header is now always 8 bytes.
      e8fdd130
    • Arseny Kapoulkine's avatar
      tests: Only enable page heap on x86/x64 · a562bf6d
      Arseny Kapoulkine authored
      This fixes tests in PUGIXML_NO_XPATH mode on SPARC64 (#48).
      
      SPARC does not allow unaligned accesses - e.g. you can't read an unaligned int.
      Normally pugixml does not perform unaligned integer/pointer accesses, but page
      heap can allocate blocks that are not aligned so that we can detect a single-
      byte read/write overrun.
      
      Additionally, the hardcoded page size we're currently using is really system
      specific - on SPARC the page size can be 8 Kb instead of 4 Kb so mprotect can
      fail.
      a562bf6d
  9. May 23, 2015
  10. May 22, 2015
  11. May 20, 2015
  12. May 14, 2015
    • Arseny Kapoulkine's avatar
      Implement xml_node::attribute with a hint · f828eae3
      Arseny Kapoulkine authored
      Extra argument 'hint' is used to start the attribute lookup; if the attribute
      is not found the lookup is restarted from the beginning of the attriubte list.
      
      This allows to optimize attribute lookups if you need to get many attributes
      from the node and can make assumptions about the likely ordering. The code is
      correct regardless of the order, but it is faster than using vanilla lookups
      if the order matches the calling order.
      
      Fixes #30.
      f828eae3
  13. May 13, 2015
  14. May 04, 2015
  15. May 02, 2015
  16. Apr 29, 2015
  17. Apr 22, 2015
  18. Apr 16, 2015
  19. Apr 15, 2015
  20. Apr 14, 2015
  21. Apr 13, 2015
  22. Apr 12, 2015
Loading