head	1.1;
branch	1.1.1;
access;
symbols
	netbsd-11-0-RC6:1.1.1.1.2.2
	netbsd-11:1.1.1.1.0.2
	expat-2-8-2:1.1.1.1
	expat:1.1.1;
locks; strict;
comment	@ * @;


1.1
date	2026.06.26.08.32.42;	author jdc;	state Exp;
branches
	1.1.1.1;
next	;
commitid	7WndiZKtdregIhLG;

1.1.1.1
date	2026.06.26.08.32.42;	author jdc;	state Exp;
branches
	1.1.1.1.2.1;
next	;
commitid	7WndiZKtdregIhLG;

1.1.1.1.2.1
date	2026.06.26.08.32.42;	author martin;	state dead;
branches;
next	1.1.1.1.2.2;
commitid	fu6p5tMN9x7FksLG;

1.1.1.1.2.2
date	2026.06.27.16.32.24;	author martin;	state Exp;
branches;
next	;
commitid	fu6p5tMN9x7FksLG;


desc
@@


1.1
log
@Initial revision
@
text
@/*
                            __  __            _
                         ___\ \/ /_ __   __ _| |_
                        / _ \\  /| '_ \ / _` | __|
                       |  __//  \| |_) | (_| | |_
                        \___/_/\_\ .__/ \__,_|\__|
                                 |_| XML parser

   Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@@gmail.com>
   Licensed under the MIT license:

   Permission is  hereby granted,  free of charge,  to any  person obtaining
   a  copy  of  this  software   and  associated  documentation  files  (the
   "Software"),  to  deal in  the  Software  without restriction,  including
   without  limitation the  rights  to use,  copy,  modify, merge,  publish,
   distribute, sublicense, and/or sell copies of the Software, and to permit
   persons  to whom  the Software  is  furnished to  do so,  subject to  the
   following conditions:

   The above copyright  notice and this permission notice  shall be included
   in all copies or substantial portions of the Software.

   THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
   EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
   NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
   DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
   OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
   USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#if ! defined(MEMORY_SANITIZER_H)
#  define MEMORY_SANITIZER_H 1

#  if defined(__has_feature)
#    if __has_feature(memory_sanitizer)
#      include <sanitizer/msan_interface.h>

// inform Memory Sanitizer that [base, base + extent) is now initialized
#      define MSAN_UNPOISON(base, extent) __msan_unpoison((base), (extent))

#    endif
#  endif

#  if ! defined(MSAN_UNPOISON)
#    define MSAN_UNPOISON(base, extent)                                        \
      do {                                                                     \
      } while (0)
#  endif

#endif // ! defined(MEMORY_SANITIZER_H)
@


1.1.1.1
log
@Import expat 2.8.2 as expat-2-8-2
@
text
@@


1.1.1.1.2.1
log
@file memory_sanitizer.h was added on branch netbsd-11 on 2026-06-27 16:32:24 +0000
@
text
@d1 51
@


1.1.1.1.2.2
log
@Pull up the following, requested by jdc in ticket #338:

	external/mit/expat/dist/lib/xcsinc.c            up to 1.1.1.1
	external/mit/expat/dist/lib/fallthrough.h       up to 1.1.1.1
	external/mit/expat/dist/lib/memory_sanitizer.h  up to 1.1.1.1
	external/mit/expat/dist/memory-sanitizer-blacklist.txt delete
	external/mit/expat/dist/CMake.README            up to 1.1.1.10
	external/mit/expat/dist/CMakeLists.txt          up to 1.1.1.10
	external/mit/expat/dist/Changes                 up to 1.1.1.11
	external/mit/expat/dist/ConfigureChecks.cmake   up to 1.1.1.6
	external/mit/expat/dist/README.md               up to 1.1.1.6
	external/mit/expat/dist/configure.ac            up to 1.1.1.9
	external/mit/expat/dist/qa.sh                   up to 1.1.1.2
	external/mit/expat/dist/doc/reference.html      up to 1.1.1.10
	external/mit/expat/dist/doc/xmlwf.xml           up to 1.1.1.7
	external/mit/expat/dist/lib/Makefile.am         up to 1.1.1.5
	external/mit/expat/dist/lib/expat.h             up to 1.1.1.11
	external/mit/expat/dist/lib/libexpat.def.cmake  up to 1.1.1.3
	external/mit/expat/dist/lib/random_arc4random_buf.c up to 1.1.1.2
	external/mit/expat/dist/lib/random_dev_urandom.c up to 1.1.1.2
	external/mit/expat/dist/lib/random_getentropy.c up to 1.1.1.2
	external/mit/expat/dist/lib/random_getrandom.c  up to 1.1.1.2
	external/mit/expat/dist/lib/siphash.h           up to 1.1.1.5
	external/mit/expat/dist/lib/xmlparse.c          up to 1.13
	external/mit/expat/dist/lib/xmltok.c            up to 1.9
	external/mit/expat/dist/lib/xmltok_impl.c       up to 1.9
	external/mit/expat/dist/tests/acc_tests.c       up to 1.1.1.2
	external/mit/expat/dist/tests/alloc_tests.c     up to 1.1.1.3
	external/mit/expat/dist/tests/basic_tests.c     up to 1.1.1.3
	external/mit/expat/dist/tests/chardata.c        up to 1.1.1.7
	external/mit/expat/dist/tests/common.c          up to 1.1.1.4
	external/mit/expat/dist/tests/handlers.c        up to 1.1.1.3
	external/mit/expat/dist/tests/handlers.h        up to 1.1.1.3
	external/mit/expat/dist/tests/misc_tests.c      up to 1.1.1.4
	external/mit/expat/dist/win32/expat.iss         up to 1.1.1.11
	external/mit/expat/dist/xmlwf/filemap.h         up to 1.1.1.5
	external/mit/expat/dist/xmlwf/win32filemap.c    up to 1.1.1.6
	external/mit/expat/dist/xmlwf/xmlfile.c         up to 1.1.1.8
	external/mit/expat/dist/xmlwf/xmlwf.c           up to 1.1.1.10
	external/mit/expat/dist/xmlwf/xmlwf_helpgen.py  up to 1.1.1.5

Update expat to 2.8.2.
@
text
@a0 51
/*
                            __  __            _
                         ___\ \/ /_ __   __ _| |_
                        / _ \\  /| '_ \ / _` | __|
                       |  __//  \| |_) | (_| | |_
                        \___/_/\_\ .__/ \__,_|\__|
                                 |_| XML parser

   Copyright (c) 2026 Matthew Fernandez <matthew.fernandez@@gmail.com>
   Licensed under the MIT license:

   Permission is  hereby granted,  free of charge,  to any  person obtaining
   a  copy  of  this  software   and  associated  documentation  files  (the
   "Software"),  to  deal in  the  Software  without restriction,  including
   without  limitation the  rights  to use,  copy,  modify, merge,  publish,
   distribute, sublicense, and/or sell copies of the Software, and to permit
   persons  to whom  the Software  is  furnished to  do so,  subject to  the
   following conditions:

   The above copyright  notice and this permission notice  shall be included
   in all copies or substantial portions of the Software.

   THE  SOFTWARE  IS  PROVIDED  "AS  IS",  WITHOUT  WARRANTY  OF  ANY  KIND,
   EXPRESS  OR IMPLIED,  INCLUDING  BUT  NOT LIMITED  TO  THE WARRANTIES  OF
   MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN
   NO EVENT SHALL THE AUTHORS OR  COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM,
   DAMAGES OR  OTHER LIABILITY, WHETHER  IN AN  ACTION OF CONTRACT,  TORT OR
   OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE
   USE OR OTHER DEALINGS IN THE SOFTWARE.
*/

#if ! defined(MEMORY_SANITIZER_H)
#  define MEMORY_SANITIZER_H 1

#  if defined(__has_feature)
#    if __has_feature(memory_sanitizer)
#      include <sanitizer/msan_interface.h>

// inform Memory Sanitizer that [base, base + extent) is now initialized
#      define MSAN_UNPOISON(base, extent) __msan_unpoison((base), (extent))

#    endif
#  endif

#  if ! defined(MSAN_UNPOISON)
#    define MSAN_UNPOISON(base, extent)                                        \
      do {                                                                     \
      } while (0)
#  endif

#endif // ! defined(MEMORY_SANITIZER_H)
@


