pugiconfig.hpp 2.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  1. /**
  2. * pugixml parser - version 1.2
  3. * --------------------------------------------------------
  4. * Copyright (C) 2006-2012, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
  5. * Report bugs and download new versions at http://pugixml.org/
  6. *
  7. * This library is distributed under the MIT License. See notice at the end
  8. * of this file.
  9. *
  10. * This work is based on the pugxml parser, which is:
  11. * Copyright (C) 2003, by Kristen Wegner (kristen@tima.net)
  12. */
  13. #ifndef HEADER_PUGICONFIG_HPP
  14. #define HEADER_PUGICONFIG_HPP
  15. // Uncomment this to enable wchar_t mode
  16. // #define PUGIXML_WCHAR_MODE
  17. // Uncomment this to disable XPath
  18. // #define PUGIXML_NO_XPATH
  19. // Uncomment this to disable STL
  20. // #define PUGIXML_NO_STL
  21. // Uncomment this to disable exceptions
  22. // #define PUGIXML_NO_EXCEPTIONS
  23. // Set this to control attributes for public classes/functions, i.e.:
  24. // #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
  25. // #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
  26. // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
  27. // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
  28. // Uncomment this to switch to header-only version
  29. // #define PUGIXML_HEADER_ONLY
  30. // #include "pugixml.cpp"
  31. // Tune these constants to adjust memory-related behavior
  32. // #define PUGIXML_MEMORY_PAGE_SIZE 32768
  33. // #define PUGIXML_MEMORY_OUTPUT_STACK 10240
  34. // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
  35. #endif
  36. /**
  37. * Copyright (c) 2006-2012 Arseny Kapoulkine
  38. *
  39. * Permission is hereby granted, free of charge, to any person
  40. * obtaining a copy of this software and associated documentation
  41. * files (the "Software"), to deal in the Software without
  42. * restriction, including without limitation the rights to use,
  43. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  44. * copies of the Software, and to permit persons to whom the
  45. * Software is furnished to do so, subject to the following
  46. * conditions:
  47. *
  48. * The above copyright notice and this permission notice shall be
  49. * included in all copies or substantial portions of the Software.
  50. *
  51. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  52. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  53. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  54. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  55. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  56. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  57. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  58. * OTHER DEALINGS IN THE SOFTWARE.
  59. */