pugiconfig.hpp 2.8 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677
  1. /**
  2. * pugixml parser - version 1.14
  3. * --------------------------------------------------------
  4. * Copyright (C) 2006-2023, by Arseny Kapoulkine (arseny.kapoulkine@gmail.com)
  5. * Report bugs and download new versions at https://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 enable compact mode
  18. // #define PUGIXML_COMPACT
  19. // Uncomment this to disable XPath
  20. // #define PUGIXML_NO_XPATH
  21. // Uncomment this to disable STL
  22. // #define PUGIXML_NO_STL
  23. // Uncomment this to disable exceptions
  24. // #define PUGIXML_NO_EXCEPTIONS
  25. // Set this to control attributes for public classes/functions, i.e.:
  26. // #define PUGIXML_API __declspec(dllexport) // to export all public symbols from DLL
  27. // #define PUGIXML_CLASS __declspec(dllimport) // to import all classes from DLL
  28. // #define PUGIXML_FUNCTION __fastcall // to set calling conventions to all public functions to fastcall
  29. // In absence of PUGIXML_CLASS/PUGIXML_FUNCTION definitions PUGIXML_API is used instead
  30. // Tune these constants to adjust memory-related behavior
  31. // #define PUGIXML_MEMORY_PAGE_SIZE 32768
  32. // #define PUGIXML_MEMORY_OUTPUT_STACK 10240
  33. // #define PUGIXML_MEMORY_XPATH_PAGE_SIZE 4096
  34. // Tune this constant to adjust max nesting for XPath queries
  35. // #define PUGIXML_XPATH_DEPTH_LIMIT 1024
  36. // Uncomment this to switch to header-only version
  37. // #define PUGIXML_HEADER_ONLY
  38. // Uncomment this to enable long long support
  39. // #define PUGIXML_HAS_LONG_LONG
  40. #endif
  41. /**
  42. * Copyright (c) 2006-2023 Arseny Kapoulkine
  43. *
  44. * Permission is hereby granted, free of charge, to any person
  45. * obtaining a copy of this software and associated documentation
  46. * files (the "Software"), to deal in the Software without
  47. * restriction, including without limitation the rights to use,
  48. * copy, modify, merge, publish, distribute, sublicense, and/or sell
  49. * copies of the Software, and to permit persons to whom the
  50. * Software is furnished to do so, subject to the following
  51. * conditions:
  52. *
  53. * The above copyright notice and this permission notice shall be
  54. * included in all copies or substantial portions of the Software.
  55. *
  56. * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  57. * EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES
  58. * OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  59. * NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT
  60. * HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
  61. * WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
  62. * FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
  63. * OTHER DEALINGS IN THE SOFTWARE.
  64. */