1
  B   ˆl–Ãa¾”êh¥2 ¸&®6â˜´o�þ]+ë7) ä�n1ˆ þÂƒßÁ_‹I|¥�+ýÿ¹ä³ÁÀ é     //////////////////////////////////////////////////////////////////////////////
//
// (C) Copyright Ion Gaztanaga 2011-2012. Distributed under the Boost
// Software License, Version 1.0. (See accompanying file
// LICENSE_1_0.txt or copy at http://www.boost.org/LICENSE_1_0.txt)
//
// See http://www.boost.org/libs/interprocess for documentation.
//
//////////////////////////////////////////////////////////////////////////////
#ifndef BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP
#define BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP

#ifndef BOOST_CONFIG_HPP
#  include <boost/config.hpp>
#endif
#
#if defined(BOOST_HAS_PRAGMA_ONCE)
#  pragma once
#endif

#include <boost/interprocess/detail/config_begin.hpp>
#include <boost/interprocess/detail/workaround.hpp>
#include <boost/interprocess/sync/windows/named_mutex.hpp>

namespace boost {
namespace interprocess {
namespace ipcdetail {


class windows_named_recursive_mutex
   //Windows mutexes based on CreateMutex are already recursive...
   : public windows_named_mutex
{
   #if !defined(BOOST_INTERPROCESS_DOXYGEN_INVOKED)

   //Non-copyable
   windows_named_recursive_mutex();
   windows_named_recursive_mutex(const windows_named_mutex &);
   windows_named_recursive_mutex &operator=(const windows_named_mutex &);
   #endif   //#ifndef BOOST_INTERPROCESS_DOXYGEN_INVOKED

   public:
   windows_named_recursive_mutex(create_only_t, const char *name, const permissions &perm = permissions())
      : windows_named_mutex(create_only_t(), name, perm)
   {}

   windows_named_recursive_mutex(open_or_create_t, const char *name, const permissions &perm = permissions())
      : windows_named_mutex(open_or_create_t(), name, perm)
   {}

   windows_named_recursive_mutex(open_only_t, const char *name)
      : windows_named_mutex(open_only_t(), name)
   {}
};

}  //namespace ipcdetail {
}  //namespace interprocess {
}  //namespace boost {

#include <boost/interprocess/detail/config_end.hpp>

#endif   //BOOST_INTERPROCESS_WINDOWS_RECURSIVE_NAMED_MUTEX_HPP
  /   ˆ{‹„„-i[D<†ªoZƒ›Ù«Ä553_‘I|¥‰ÓMdœv ©ƒ†ü+=ÄÃ )    ‹      Õ–ÑnÚ0†ïûž/v§¡´“hâ©#HCkQ¦iš&db“X$vd;dìéç�LÐ¶õb“reûä÷¯ó;Éñ_…Óáâól„Þ/îÑìã»ûñáÀ§«!@¸ëýî¥0š`„kó@Y–Ýòª«t‹9$6Kû`¬‘í2Ë0¹ð«¹@~Â)s#ò­°)'cÉø7¤ÖTa�`ÜíÛ`|QB5ôýÈUÉµõç�‰¿RlWy{/òqò}tµ·«¦šø6A[šŠXØª_d12:
0ˆHI«”ÊM7kŒhjüe<œ~u:°Iµ›ø%š¯üvLn§AˆÉ„fÜzZóà4w˜ÜScQ¦˜XÎÎŠkñ£ø~Þ0¬5!7‘¹J¤à�Q#•šœ:ÖkG�ècU-aª�žcv7Máx^—„U‡ì~w*˜Ì¨æÒ¢PhY¥wMÚµÇk¹2ùíÏ%j’Ò"N,&uÐIåH
¹‘ª”Ç0®P'1¨ÙÉ“ýpœä³¬z—½›Žçuzòúƒë7�ºéÃÿL¿°Ê&ç’-Oén™Gs"ÚB8§·Z¥˜4“"èBZ‘ñ%�¬ØòåF0w<'‚íG«æ¿ Uó£qYýPØ«	´ÉXj‹£;X¯ÛTç8{vŸÆ[Xqí—ÿç/hZ.ö�›uSø«Wƒw
    C   ˆl–äY>”êhŠe@=q�ÜªbÑ¿�þ[uçVnW€Ù$m¶Û ?ŸÇ„š¿Æ_ŠI|¥�+Wé3ž¯ÆÅ ?÷     """Mimic doctest in Sphinx.

The extension automatically execute code snippets and checks their results.
"""

import doctest
import re
import sys
import time
from io import StringIO
from os import path
from typing import (TYPE_CHECKING, Any, Callable, Dict, Iterable, List, Optional, Sequence,
                    Set, Tuple, Type)

from docutils import nodes
from docutils.nodes import Element, Node, TextElement
from docutils.parsers.rst import directives
from packaging.specifiers import InvalidSpecifier, SpecifierSet
from packaging.version import Version

import sphinx
from sphinx.builders import Builder
from sphinx.locale import __
from sphinx.util import logging
from sphinx.util.console import bold  # type: ignore
from sphinx.util.docutils import SphinxDirective
from sphinx.util.osutil import relpath
from sphinx.util.typing import OptionSpec

if TYPE_CHECKING:
    from sphinx.application import Sphinx


logger = logging.getLogger(__name__)

blankline_re = re.compile(r'^\s*<BLANKLINE>', re.MULTILINE)
doctestopt_re = re.compile(r'#\s*doctest:.+$', re.MULTILINE)


def is_allowed_version(spec: str, version: str) -> bool:
    """Check `spec` satisfies `version` or not.

    This obeys PEP-440 specifiers:
    https://peps.python.org/pep-0440/#version-specifiers

    