diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/backports.zstd-1.5.0-py314h680f03e_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/backports.zstd-1.5.0-py314h680f03e_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..a760f4dad8a5d2dd825a4c3c3d70bc4c51275f9d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/backports.zstd-1.5.0-py314h680f03e_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.7-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.7-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..dead110b10d1ab8bb2d643036261ca9db0c191d4 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.7-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/click-8.2.1-pyh7428d3b_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/click-8.2.1-pyh7428d3b_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..1c200c7b11b4534fc008bf9f7e5ddbfe43f1c50b Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/click-8.2.1-pyh7428d3b_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..918646281ce667fd268092cc34a3498655c71dfa Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..a3c779086c6eb17df4c8c8920410b49b17196e8f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/ghp-import-2.1.0-pyhd8ed1ab_2.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/ghp-import-2.1.0-pyhd8ed1ab_2.conda new file mode 100644 index 0000000000000000000000000000000000000000..2babeb7ccb6f23d57aa4e1b41f74e60b15a1405a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/ghp-import-2.1.0-pyhd8ed1ab_2.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/h2-4.3.0-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/h2-4.3.0-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..986844c252b003abf49ac36c49edacc968573990 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/h2-4.3.0-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hpack-4.1.0-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hpack-4.1.0-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..c2e0fef9d32c36ddcac8d1b503b47c9b0e9fc460 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hpack-4.1.0-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..ebf5ea2cafdee11fcdd6bd1636aaf71ecb7cdfb4 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/idna-3.13-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/idna-3.13-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..90d9d9e17779e76309d13cd58b298421fa3c69c8 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/idna-3.13-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/importlib-metadata-8.8.0-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/importlib-metadata-8.8.0-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..ba7c28ca22a1c8cdebc4dd9407d77d2e38350f8a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/importlib-metadata-8.8.0-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..34d0922c8d5932c0b3ad329ef07a8c4cc21f711c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/m2-libintl-0.22.5.1-hc364b38_6.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/m2-libintl-0.22.5.1-hc364b38_6.conda new file mode 100644 index 0000000000000000000000000000000000000000..6922592694eb142785d930eb5b6f165449f8c966 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/m2-libintl-0.22.5.1-hc364b38_6.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markdown-3.10.2-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markdown-3.10.2-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..63dceffa77ef55df9a4e888753f2ef09027c730d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markdown-3.10.2-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markupsafe-3.0.3-pyh7db6752_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markupsafe-3.0.3-pyh7db6752_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..685867bb85ba897d91ee3cb87750593050aa4c5d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/markupsafe-3.0.3-pyh7db6752_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..37a3ccd20d676fed38dbbda80cb6913472e7ef49 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-get-deps-0.2.2-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-get-deps-0.2.2-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..1a19ebb425ea952078d8b9990c77f09af3e0b086 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-get-deps-0.2.2-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..81ce7127e1378817d5f1d96b425c235541cd9722 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..7c271cd409626cdf328abc27825a1a683e31a671 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/packaging-26.2-pyhc364b38_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/packaging-26.2-pyhc364b38_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..b7d299cdacf9307c3ffa4a584ef8a062eae60879 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/packaging-26.2-pyhc364b38_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/paginate-0.5.7-pyhd8ed1ab_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/paginate-0.5.7-pyhd8ed1ab_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..d0246315e0906e8c955f4100b25cd6fd720c01cd Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/paginate-0.5.7-pyhd8ed1ab_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pathspec-1.1.1-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pathspec-1.1.1-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..cf2fcf4a281d73322cd81c49a9adfb55fd6950ab Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pathspec-1.1.1-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/platformdirs-4.9.6-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/platformdirs-4.9.6-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..272d5d343f8d12f819261a87c49b6c7fe7640196 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/platformdirs-4.9.6-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..81bf78ef680f6bfc7fee78684c4b4ccbc3ee8cbc Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda new file mode 100644 index 0000000000000000000000000000000000000000..51fe44d1d6f5f8c8ecd5e9b7f39135171a275a94 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda new file mode 100644 index 0000000000000000000000000000000000000000..af72c706dd8a652085411c3791ec9b630815216f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314t.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314t.conda new file mode 100644 index 0000000000000000000000000000000000000000..80db5fe7ff9e1ace3dfec404a5bfc418aa4ae39e Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314t.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pytokens-0.3.0-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pytokens-0.3.0-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..e1d1bfc3a66e4eef87a1f6f23251120fefb7ea2a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pytokens-0.3.0-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-6.0.3-pyh7db6752_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-6.0.3-pyh7db6752_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..3a9367846851d2cf9d70616a40b5ccea475a41fc Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-6.0.3-pyh7db6752_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-env-tag-1.1-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-env-tag-1.1-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..331376969b7dd4fb040721a13fe1f1e445982d16 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/pyyaml-env-tag-1.1-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/requests-2.34.0-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/requests-2.34.0-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..af949d9d339cc94ac4cddacaefc12317419d5e00 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/requests-2.34.0-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..6b814a1f21e584762e294867bfbaf2e3d454cc6c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..70d3ce3bc8557d96d1eca488946227169d11f1e1 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/typing_extensions-4.15.0-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/typing_extensions-4.15.0-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..38b33670b0c40721662974df2afd69b458d8ba8c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/typing_extensions-4.15.0-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/urls.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/urls.txt new file mode 100644 index 0000000000000000000000000000000000000000..f04312a428f496fece83db854528a5de8a01aee8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/urls.txt @@ -0,0 +1,60 @@ +https://conda.anaconda.org/conda-forge/noarch/pip-26.1.1-pyh8b19718_0.conda +https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.4.22-h4c7d964_0.conda +https://conda.anaconda.org/conda-forge/noarch/tzdata-2025c-hc9c84f9_1.conda +https://conda.anaconda.org/conda-forge/noarch/packaging-26.2-pyhc364b38_0.conda +https://conda.anaconda.org/conda-forge/noarch/setuptools-82.0.1-pyh332efcf_0.conda +https://conda.anaconda.org/conda-forge/noarch/wheel-0.47.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/babel-2.18.0-pyhcf101f3_1.conda +https://conda.anaconda.org/conda-forge/noarch/pygments-2.20.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-9.7.6-pyhcf101f3_1.conda +https://conda.anaconda.org/conda-forge/noarch/pytest-9.0.3-pyhc364b38_1.conda +https://conda.anaconda.org/conda-forge/noarch/python-dateutil-2.9.0.post0-pyhe01879c_2.conda +https://conda.anaconda.org/conda-forge/noarch/pymdown-extensions-10.21.2-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/backrefs-7.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/black-26.3.1-pyh866005b_0.conda +https://conda.anaconda.org/conda-forge/noarch/certifi-2026.4.22-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/mkdocs-1.6.1-pyhd8ed1ab_1.conda +https://conda.anaconda.org/conda-forge/noarch/jinja2-3.1.6-pyhcf101f3_1.conda +https://conda.anaconda.org/conda-forge/noarch/urllib3-2.7.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/h2-4.3.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/click-8.2.1-pyh7428d3b_0.conda +https://conda.anaconda.org/conda-forge/noarch/markdown-3.10.2-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/requests-2.34.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/idna-3.13-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/charset-normalizer-3.4.7-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/typing_extensions-4.15.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/importlib-metadata-8.8.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/hpack-4.1.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/pathspec-1.1.1-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/colorama-0.4.6-pyhd8ed1ab_1.conda +https://conda.anaconda.org/conda-forge/noarch/pyyaml-6.0.3-pyh7db6752_1.conda +https://conda.anaconda.org/conda-forge/noarch/pluggy-1.6.0-pyhf9edf01_1.conda +https://conda.anaconda.org/conda-forge/noarch/zipp-3.23.1-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/platformdirs-4.9.6-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/pysocks-1.7.1-pyh09c184e_7.conda +https://conda.anaconda.org/conda-forge/noarch/tomli-2.4.1-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/exceptiongroup-1.3.1-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/paginate-0.5.7-pyhd8ed1ab_1.conda +https://conda.anaconda.org/conda-forge/noarch/six-1.17.0-pyhe01879c_1.conda +https://conda.anaconda.org/conda-forge/noarch/hyperframe-6.1.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/ghp-import-2.1.0-pyhd8ed1ab_2.conda +https://conda.anaconda.org/conda-forge/noarch/mkdocs-get-deps-0.2.2-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/mkdocs-material-extensions-1.3.1-pyhd8ed1ab_1.conda +https://conda.anaconda.org/conda-forge/noarch/markupsafe-3.0.3-pyh7db6752_1.conda +https://conda.anaconda.org/conda-forge/noarch/mergedeep-1.3.4-pyhd8ed1ab_1.conda +https://conda.anaconda.org/conda-forge/noarch/mypy_extensions-1.1.0-pyha770c72_0.conda +https://conda.anaconda.org/conda-forge/noarch/iniconfig-2.3.0-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda +https://conda.anaconda.org/conda-forge/noarch/backports.zstd-1.5.0-py314h680f03e_0.conda +https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314t.conda +https://conda.anaconda.org/conda-forge/noarch/pyyaml-env-tag-1.1-pyhd8ed1ab_0.conda +https://conda.anaconda.org/conda-forge/noarch/black-26.1.0-pyh866005b_0.conda +https://conda.anaconda.org/conda-forge/noarch/pytokens-0.3.0-pyhcf101f3_0.conda +https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314.conda +https://conda.anaconda.org/conda-forge/noarch/m2-gcc-libs-13.3.0.1-hc364b38_6.conda +https://conda.anaconda.org/conda-forge/noarch/m2-libiconv-1.18.1-hc364b38_6.conda +https://conda.anaconda.org/conda-forge/noarch/m2-libintl-0.22.5.1-hc364b38_6.conda +https://conda.anaconda.org/conda-forge/noarch/m2-filesystem-2025.02.23.1-hc364b38_10.conda +https://conda.anaconda.org/conda-forge/noarch/m2-make-4.4.1.2-hc364b38_6.conda +https://conda.anaconda.org/conda-forge/noarch/m2-bash-5.2.037.2-hc364b38_6.conda +https://conda.anaconda.org/conda-forge/noarch/m2-msys2-runtime-3.6.1.4-hc364b38_6.conda diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/wheel-0.47.0-pyhd8ed1ab_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/wheel-0.47.0-pyhd8ed1ab_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..88a1f5ae7b6c5bedbaeac887ad767d13dbd2105d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/wheel-0.47.0-pyhd8ed1ab_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda new file mode 100644 index 0000000000000000000000000000000000000000..76e6ffd8f86572cc219b503061e4c11068415e39 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/win_inet_pton-1.1.0-pyh7428d3b_8.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/zipp-3.23.1-pyhcf101f3_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/zipp-3.23.1-pyhcf101f3_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..85a4d6582d4d0c3cf1533f38ef2d0f73c112cf97 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/noarch/zipp-3.23.1-pyhcf101f3_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_9.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_9.conda new file mode 100644 index 0000000000000000000000000000000000000000..c83da1e6aea520b934ae1496dfa5c6e6f1aeafc6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_9.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libexpat-2.8.0-hac47afa_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libexpat-2.8.0-hac47afa_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..2338f445a201fda80b2acee2d5e386c24cd3d594 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libexpat-2.8.0-hac47afa_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libffi-3.5.2-h3d046cb_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libffi-3.5.2-h3d046cb_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..4325e85d349e935b796e3a55c3238515bd600d58 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libffi-3.5.2-h3d046cb_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_1.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_1.conda new file mode 100644 index 0000000000000000000000000000000000000000..c063cd602b46d4994bbe3328c2568b44f18e3dff Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_1.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2.conda new file mode 100644 index 0000000000000000000000000000000000000000..31a21061ec735bd1fc353398ab6d3ed48db627d6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2/zlib.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2/zlib.dll new file mode 100644 index 0000000000000000000000000000000000000000..701b927f0fe55b9b7158eecdb87a05f7ec81a7a1 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2/zlib.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda new file mode 100644 index 0000000000000000000000000000000000000000..3f39f1da885872136f3a4b6abe58b264ee0b2468 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/LICENSE_PYTHON.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/LICENSE_PYTHON.txt new file mode 100644 index 0000000000000000000000000000000000000000..f26bcf4d2de6eb136e31006ca3ab447d5e488adf --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/LICENSE_PYTHON.txt @@ -0,0 +1,279 @@ +A. HISTORY OF THE SOFTWARE +========================== + +Python was created in the early 1990s by Guido van Rossum at Stichting +Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands +as a successor of a language called ABC. Guido remains Python's +principal author, although it includes many contributions from others. + +In 1995, Guido continued his work on Python at the Corporation for +National Research Initiatives (CNRI, see https://www.cnri.reston.va.us) +in Reston, Virginia where he released several versions of the +software. + +In May 2000, Guido and the Python core development team moved to +BeOpen.com to form the BeOpen PythonLabs team. In October of the same +year, the PythonLabs team moved to Digital Creations, which became +Zope Corporation. In 2001, the Python Software Foundation (PSF, see +https://www.python.org/psf/) was formed, a non-profit organization +created specifically to own Python-related Intellectual Property. +Zope Corporation was a sponsoring member of the PSF. + +All Python releases are Open Source (see https://opensource.org for +the Open Source Definition). Historically, most, but not all, Python +releases have also been GPL-compatible; the table below summarizes +the various releases. + + Release Derived Year Owner GPL- + from compatible? (1) + + 0.9.0 thru 1.2 1991-1995 CWI yes + 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes + 1.6 1.5.2 2000 CNRI no + 2.0 1.6 2000 BeOpen.com no + 1.6.1 1.6 2001 CNRI yes (2) + 2.1 2.0+1.6.1 2001 PSF no + 2.0.1 2.0+1.6.1 2001 PSF yes + 2.1.1 2.1+2.0.1 2001 PSF yes + 2.1.2 2.1.1 2002 PSF yes + 2.1.3 2.1.2 2002 PSF yes + 2.2 and above 2.1.1 2001-now PSF yes + +Footnotes: + +(1) GPL-compatible doesn't mean that we're distributing Python under + the GPL. All Python licenses, unlike the GPL, let you distribute + a modified version without making your changes open source. The + GPL-compatible licenses make it possible to combine Python with + other software that is released under the GPL; the others don't. + +(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, + because its license has a choice of law clause. According to + CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 + is "not incompatible" with the GPL. + +Thanks to the many outside volunteers who have worked under Guido's +direction to make these releases possible. + + +B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON +=============================================================== + +Python software and documentation are licensed under the +Python Software Foundation License Version 2. + +Starting with Python 3.8.6, examples, recipes, and other code in +the documentation are dual licensed under the PSF License Version 2 +and the Zero-Clause BSD license. + +Some software incorporated into Python is under different licenses. +The licenses are listed with code falling under that license. + + +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +-------------------------------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using this software ("Python") in source or binary form and +its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF hereby +grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, +analyze, test, perform and/or display publicly, prepare derivative works, +distribute, and otherwise use Python alone or in any derivative version, +provided, however, that PSF's License Agreement and PSF's notice of copyright, +i.e., "Copyright (c) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010, +2011, 2012, 2013, 2014, 2015, 2016, 2017, 2018, 2019, 2020, 2021, 2022, 2023 Python Software Foundation; +All Rights Reserved" are retained in Python alone or in any derivative version +prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python. + +4. PSF is making Python available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 +------------------------------------------- + +BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 + +1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an +office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the +Individual or Organization ("Licensee") accessing and otherwise using +this software in source or binary form and its associated +documentation ("the Software"). + +2. Subject to the terms and conditions of this BeOpen Python License +Agreement, BeOpen hereby grants Licensee a non-exclusive, +royalty-free, world-wide license to reproduce, analyze, test, perform +and/or display publicly, prepare derivative works, distribute, and +otherwise use the Software alone or in any derivative version, +provided, however, that the BeOpen Python License is retained in the +Software, alone or in any derivative version prepared by Licensee. + +3. BeOpen is making the Software available to Licensee on an "AS IS" +basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE +SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS +AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY +DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +5. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +6. This License Agreement shall be governed by and interpreted in all +respects by the law of the State of California, excluding conflict of +law provisions. Nothing in this License Agreement shall be deemed to +create any relationship of agency, partnership, or joint venture +between BeOpen and Licensee. This License Agreement does not grant +permission to use BeOpen trademarks or trade names in a trademark +sense to endorse or promote products or services of Licensee, or any +third party. As an exception, the "BeOpen Python" logos available at +http://www.pythonlabs.com/logos.html may be used according to the +permissions granted on that web page. + +7. By copying, installing or otherwise using the software, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 +--------------------------------------- + +1. This LICENSE AGREEMENT is between the Corporation for National +Research Initiatives, having an office at 1895 Preston White Drive, +Reston, VA 20191 ("CNRI"), and the Individual or Organization +("Licensee") accessing and otherwise using Python 1.6.1 software in +source or binary form and its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, CNRI +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python 1.6.1 +alone or in any derivative version, provided, however, that CNRI's +License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) +1995-2001 Corporation for National Research Initiatives; All Rights +Reserved" are retained in Python 1.6.1 alone or in any derivative +version prepared by Licensee. Alternately, in lieu of CNRI's License +Agreement, Licensee may substitute the following text (omitting the +quotes): "Python 1.6.1 is made available subject to the terms and +conditions in CNRI's License Agreement. This Agreement together with +Python 1.6.1 may be located on the internet using the following +unique, persistent identifier (known as a handle): 1895.22/1013. This +Agreement may also be obtained from a proxy server on the internet +using the following URL: http://hdl.handle.net/1895.22/1013". + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python 1.6.1 or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python 1.6.1. + +4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" +basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. This License Agreement shall be governed by the federal +intellectual property law of the United States, including without +limitation the federal copyright law, and, to the extent such +U.S. federal law does not apply, by the law of the Commonwealth of +Virginia, excluding Virginia's conflict of law provisions. +Notwithstanding the foregoing, with regard to derivative works based +on Python 1.6.1 that incorporate non-separable material that was +previously distributed under the GNU General Public License (GPL), the +law of the Commonwealth of Virginia shall govern this License +Agreement only as to issues arising under or with respect to +Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this +License Agreement shall be deemed to create any relationship of +agency, partnership, or joint venture between CNRI and Licensee. This +License Agreement does not grant permission to use CNRI trademarks or +trade name in a trademark sense to endorse or promote products or +services of Licensee, or any third party. + +8. By clicking on the "ACCEPT" button where indicated, or by copying, +installing or otherwise using Python 1.6.1, Licensee agrees to be +bound by the terms and conditions of this License Agreement. + + ACCEPT + + +CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 +-------------------------------------------------- + +Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, +The Netherlands. All rights reserved. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of Stichting Mathematisch +Centrum or CWI not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO +THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE +FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION +---------------------------------------------------------------------- + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python.exe new file mode 100644 index 0000000000000000000000000000000000000000..309e7556e26cd42145f7faab4f38578ce0be4678 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python3.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python3.dll new file mode 100644 index 0000000000000000000000000000000000000000..0aece7df14b52161e6347b781598074cd775976f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/python3.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/pythonw.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/pythonw.exe new file mode 100644 index 0000000000000000000000000000000000000000..d4ea1560512721d5a1513f14d6aa1987f5684233 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython/pythonw.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/LICENSE_PYTHON.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/LICENSE_PYTHON.txt new file mode 100644 index 0000000000000000000000000000000000000000..20cf39097c68baa17cc566b64e76d34ebf034044 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/LICENSE_PYTHON.txt @@ -0,0 +1,277 @@ +A. HISTORY OF THE SOFTWARE +========================== + +Python was created in the early 1990s by Guido van Rossum at Stichting +Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands +as a successor of a language called ABC. Guido remains Python's +principal author, although it includes many contributions from others. + +In 1995, Guido continued his work on Python at the Corporation for +National Research Initiatives (CNRI, see https://www.cnri.reston.va.us) +in Reston, Virginia where he released several versions of the +software. + +In May 2000, Guido and the Python core development team moved to +BeOpen.com to form the BeOpen PythonLabs team. In October of the same +year, the PythonLabs team moved to Digital Creations, which became +Zope Corporation. In 2001, the Python Software Foundation (PSF, see +https://www.python.org/psf/) was formed, a non-profit organization +created specifically to own Python-related Intellectual Property. +Zope Corporation was a sponsoring member of the PSF. + +All Python releases are Open Source (see https://opensource.org for +the Open Source Definition). Historically, most, but not all, Python +releases have also been GPL-compatible; the table below summarizes +the various releases. + + Release Derived Year Owner GPL- + from compatible? (1) + + 0.9.0 thru 1.2 1991-1995 CWI yes + 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes + 1.6 1.5.2 2000 CNRI no + 2.0 1.6 2000 BeOpen.com no + 1.6.1 1.6 2001 CNRI yes (2) + 2.1 2.0+1.6.1 2001 PSF no + 2.0.1 2.0+1.6.1 2001 PSF yes + 2.1.1 2.1+2.0.1 2001 PSF yes + 2.1.2 2.1.1 2002 PSF yes + 2.1.3 2.1.2 2002 PSF yes + 2.2 and above 2.1.1 2001-now PSF yes + +Footnotes: + +(1) GPL-compatible doesn't mean that we're distributing Python under + the GPL. All Python licenses, unlike the GPL, let you distribute + a modified version without making your changes open source. The + GPL-compatible licenses make it possible to combine Python with + other software that is released under the GPL; the others don't. + +(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, + because its license has a choice of law clause. According to + CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 + is "not incompatible" with the GPL. + +Thanks to the many outside volunteers who have worked under Guido's +direction to make these releases possible. + + +B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON +=============================================================== + +Python software and documentation are licensed under the +Python Software Foundation License Version 2. + +Starting with Python 3.8.6, examples, recipes, and other code in +the documentation are dual licensed under the PSF License Version 2 +and the Zero-Clause BSD license. + +Some software incorporated into Python is under different licenses. +The licenses are listed with code falling under that license. + + +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +-------------------------------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using this software ("Python") in source or binary form and +its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF hereby +grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, +analyze, test, perform and/or display publicly, prepare derivative works, +distribute, and otherwise use Python alone or in any derivative version, +provided, however, that PSF's License Agreement and PSF's notice of copyright, +i.e., "Copyright (c) 2001 Python Software Foundation; All Rights Reserved" +are retained in Python alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python. + +4. PSF is making Python available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 +------------------------------------------- + +BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 + +1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an +office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the +Individual or Organization ("Licensee") accessing and otherwise using +this software in source or binary form and its associated +documentation ("the Software"). + +2. Subject to the terms and conditions of this BeOpen Python License +Agreement, BeOpen hereby grants Licensee a non-exclusive, +royalty-free, world-wide license to reproduce, analyze, test, perform +and/or display publicly, prepare derivative works, distribute, and +otherwise use the Software alone or in any derivative version, +provided, however, that the BeOpen Python License is retained in the +Software, alone or in any derivative version prepared by Licensee. + +3. BeOpen is making the Software available to Licensee on an "AS IS" +basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE +SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS +AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY +DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +5. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +6. This License Agreement shall be governed by and interpreted in all +respects by the law of the State of California, excluding conflict of +law provisions. Nothing in this License Agreement shall be deemed to +create any relationship of agency, partnership, or joint venture +between BeOpen and Licensee. This License Agreement does not grant +permission to use BeOpen trademarks or trade names in a trademark +sense to endorse or promote products or services of Licensee, or any +third party. As an exception, the "BeOpen Python" logos available at +http://www.pythonlabs.com/logos.html may be used according to the +permissions granted on that web page. + +7. By copying, installing or otherwise using the software, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 +--------------------------------------- + +1. This LICENSE AGREEMENT is between the Corporation for National +Research Initiatives, having an office at 1895 Preston White Drive, +Reston, VA 20191 ("CNRI"), and the Individual or Organization +("Licensee") accessing and otherwise using Python 1.6.1 software in +source or binary form and its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, CNRI +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python 1.6.1 +alone or in any derivative version, provided, however, that CNRI's +License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) +1995-2001 Corporation for National Research Initiatives; All Rights +Reserved" are retained in Python 1.6.1 alone or in any derivative +version prepared by Licensee. Alternately, in lieu of CNRI's License +Agreement, Licensee may substitute the following text (omitting the +quotes): "Python 1.6.1 is made available subject to the terms and +conditions in CNRI's License Agreement. This Agreement together with +Python 1.6.1 may be located on the internet using the following +unique, persistent identifier (known as a handle): 1895.22/1013. This +Agreement may also be obtained from a proxy server on the internet +using the following URL: http://hdl.handle.net/1895.22/1013". + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python 1.6.1 or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python 1.6.1. + +4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" +basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. This License Agreement shall be governed by the federal +intellectual property law of the United States, including without +limitation the federal copyright law, and, to the extent such +U.S. federal law does not apply, by the law of the Commonwealth of +Virginia, excluding Virginia's conflict of law provisions. +Notwithstanding the foregoing, with regard to derivative works based +on Python 1.6.1 that incorporate non-separable material that was +previously distributed under the GNU General Public License (GPL), the +law of the Commonwealth of Virginia shall govern this License +Agreement only as to issues arising under or with respect to +Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this +License Agreement shall be deemed to create any relationship of +agency, partnership, or joint venture between CNRI and Licensee. This +License Agreement does not grant permission to use CNRI trademarks or +trade name in a trademark sense to endorse or promote products or +services of Licensee, or any third party. + +8. By clicking on the "ACCEPT" button where indicated, or by copying, +installing or otherwise using Python 1.6.1, Licensee agrees to be +bound by the terms and conditions of this License Agreement. + + ACCEPT + + +CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 +-------------------------------------------------- + +Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, +The Netherlands. All rights reserved. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of Stichting Mathematisch +Centrum or CWI not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO +THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE +FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION +---------------------------------------------------------------------- + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python.exe new file mode 100644 index 0000000000000000000000000000000000000000..f2fae4e2ac75ffc7b284d32e2e8a4edc38b70c1e Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python3.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python3.dll new file mode 100644 index 0000000000000000000000000000000000000000..f814171095b19aef6fef74c9d2cd8fb1aa413add Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/python3.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/pythonw.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/pythonw.exe new file mode 100644 index 0000000000000000000000000000000000000000..95afc288326cb050066b10febfcf9b890b3487cf Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314/pythonw.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/LICENSE_PYTHON.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/LICENSE_PYTHON.txt new file mode 100644 index 0000000000000000000000000000000000000000..20cf39097c68baa17cc566b64e76d34ebf034044 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/LICENSE_PYTHON.txt @@ -0,0 +1,277 @@ +A. HISTORY OF THE SOFTWARE +========================== + +Python was created in the early 1990s by Guido van Rossum at Stichting +Mathematisch Centrum (CWI, see https://www.cwi.nl) in the Netherlands +as a successor of a language called ABC. Guido remains Python's +principal author, although it includes many contributions from others. + +In 1995, Guido continued his work on Python at the Corporation for +National Research Initiatives (CNRI, see https://www.cnri.reston.va.us) +in Reston, Virginia where he released several versions of the +software. + +In May 2000, Guido and the Python core development team moved to +BeOpen.com to form the BeOpen PythonLabs team. In October of the same +year, the PythonLabs team moved to Digital Creations, which became +Zope Corporation. In 2001, the Python Software Foundation (PSF, see +https://www.python.org/psf/) was formed, a non-profit organization +created specifically to own Python-related Intellectual Property. +Zope Corporation was a sponsoring member of the PSF. + +All Python releases are Open Source (see https://opensource.org for +the Open Source Definition). Historically, most, but not all, Python +releases have also been GPL-compatible; the table below summarizes +the various releases. + + Release Derived Year Owner GPL- + from compatible? (1) + + 0.9.0 thru 1.2 1991-1995 CWI yes + 1.3 thru 1.5.2 1.2 1995-1999 CNRI yes + 1.6 1.5.2 2000 CNRI no + 2.0 1.6 2000 BeOpen.com no + 1.6.1 1.6 2001 CNRI yes (2) + 2.1 2.0+1.6.1 2001 PSF no + 2.0.1 2.0+1.6.1 2001 PSF yes + 2.1.1 2.1+2.0.1 2001 PSF yes + 2.1.2 2.1.1 2002 PSF yes + 2.1.3 2.1.2 2002 PSF yes + 2.2 and above 2.1.1 2001-now PSF yes + +Footnotes: + +(1) GPL-compatible doesn't mean that we're distributing Python under + the GPL. All Python licenses, unlike the GPL, let you distribute + a modified version without making your changes open source. The + GPL-compatible licenses make it possible to combine Python with + other software that is released under the GPL; the others don't. + +(2) According to Richard Stallman, 1.6.1 is not GPL-compatible, + because its license has a choice of law clause. According to + CNRI, however, Stallman's lawyer has told CNRI's lawyer that 1.6.1 + is "not incompatible" with the GPL. + +Thanks to the many outside volunteers who have worked under Guido's +direction to make these releases possible. + + +B. TERMS AND CONDITIONS FOR ACCESSING OR OTHERWISE USING PYTHON +=============================================================== + +Python software and documentation are licensed under the +Python Software Foundation License Version 2. + +Starting with Python 3.8.6, examples, recipes, and other code in +the documentation are dual licensed under the PSF License Version 2 +and the Zero-Clause BSD license. + +Some software incorporated into Python is under different licenses. +The licenses are listed with code falling under that license. + + +PYTHON SOFTWARE FOUNDATION LICENSE VERSION 2 +-------------------------------------------- + +1. This LICENSE AGREEMENT is between the Python Software Foundation +("PSF"), and the Individual or Organization ("Licensee") accessing and +otherwise using this software ("Python") in source or binary form and +its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, PSF hereby +grants Licensee a nonexclusive, royalty-free, world-wide license to reproduce, +analyze, test, perform and/or display publicly, prepare derivative works, +distribute, and otherwise use Python alone or in any derivative version, +provided, however, that PSF's License Agreement and PSF's notice of copyright, +i.e., "Copyright (c) 2001 Python Software Foundation; All Rights Reserved" +are retained in Python alone or in any derivative version prepared by Licensee. + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python. + +4. PSF is making Python available to Licensee on an "AS IS" +basis. PSF MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, PSF MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. PSF SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. Nothing in this License Agreement shall be deemed to create any +relationship of agency, partnership, or joint venture between PSF and +Licensee. This License Agreement does not grant permission to use PSF +trademarks or trade name in a trademark sense to endorse or promote +products or services of Licensee, or any third party. + +8. By copying, installing or otherwise using Python, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +BEOPEN.COM LICENSE AGREEMENT FOR PYTHON 2.0 +------------------------------------------- + +BEOPEN PYTHON OPEN SOURCE LICENSE AGREEMENT VERSION 1 + +1. This LICENSE AGREEMENT is between BeOpen.com ("BeOpen"), having an +office at 160 Saratoga Avenue, Santa Clara, CA 95051, and the +Individual or Organization ("Licensee") accessing and otherwise using +this software in source or binary form and its associated +documentation ("the Software"). + +2. Subject to the terms and conditions of this BeOpen Python License +Agreement, BeOpen hereby grants Licensee a non-exclusive, +royalty-free, world-wide license to reproduce, analyze, test, perform +and/or display publicly, prepare derivative works, distribute, and +otherwise use the Software alone or in any derivative version, +provided, however, that the BeOpen Python License is retained in the +Software, alone or in any derivative version prepared by Licensee. + +3. BeOpen is making the Software available to Licensee on an "AS IS" +basis. BEOPEN MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, BEOPEN MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF THE SOFTWARE WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +4. BEOPEN SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF THE +SOFTWARE FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS +AS A RESULT OF USING, MODIFYING OR DISTRIBUTING THE SOFTWARE, OR ANY +DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +5. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +6. This License Agreement shall be governed by and interpreted in all +respects by the law of the State of California, excluding conflict of +law provisions. Nothing in this License Agreement shall be deemed to +create any relationship of agency, partnership, or joint venture +between BeOpen and Licensee. This License Agreement does not grant +permission to use BeOpen trademarks or trade names in a trademark +sense to endorse or promote products or services of Licensee, or any +third party. As an exception, the "BeOpen Python" logos available at +http://www.pythonlabs.com/logos.html may be used according to the +permissions granted on that web page. + +7. By copying, installing or otherwise using the software, Licensee +agrees to be bound by the terms and conditions of this License +Agreement. + + +CNRI LICENSE AGREEMENT FOR PYTHON 1.6.1 +--------------------------------------- + +1. This LICENSE AGREEMENT is between the Corporation for National +Research Initiatives, having an office at 1895 Preston White Drive, +Reston, VA 20191 ("CNRI"), and the Individual or Organization +("Licensee") accessing and otherwise using Python 1.6.1 software in +source or binary form and its associated documentation. + +2. Subject to the terms and conditions of this License Agreement, CNRI +hereby grants Licensee a nonexclusive, royalty-free, world-wide +license to reproduce, analyze, test, perform and/or display publicly, +prepare derivative works, distribute, and otherwise use Python 1.6.1 +alone or in any derivative version, provided, however, that CNRI's +License Agreement and CNRI's notice of copyright, i.e., "Copyright (c) +1995-2001 Corporation for National Research Initiatives; All Rights +Reserved" are retained in Python 1.6.1 alone or in any derivative +version prepared by Licensee. Alternately, in lieu of CNRI's License +Agreement, Licensee may substitute the following text (omitting the +quotes): "Python 1.6.1 is made available subject to the terms and +conditions in CNRI's License Agreement. This Agreement together with +Python 1.6.1 may be located on the internet using the following +unique, persistent identifier (known as a handle): 1895.22/1013. This +Agreement may also be obtained from a proxy server on the internet +using the following URL: http://hdl.handle.net/1895.22/1013". + +3. In the event Licensee prepares a derivative work that is based on +or incorporates Python 1.6.1 or any part thereof, and wants to make +the derivative work available to others as provided herein, then +Licensee hereby agrees to include in any such work a brief summary of +the changes made to Python 1.6.1. + +4. CNRI is making Python 1.6.1 available to Licensee on an "AS IS" +basis. CNRI MAKES NO REPRESENTATIONS OR WARRANTIES, EXPRESS OR +IMPLIED. BY WAY OF EXAMPLE, BUT NOT LIMITATION, CNRI MAKES NO AND +DISCLAIMS ANY REPRESENTATION OR WARRANTY OF MERCHANTABILITY OR FITNESS +FOR ANY PARTICULAR PURPOSE OR THAT THE USE OF PYTHON 1.6.1 WILL NOT +INFRINGE ANY THIRD PARTY RIGHTS. + +5. CNRI SHALL NOT BE LIABLE TO LICENSEE OR ANY OTHER USERS OF PYTHON +1.6.1 FOR ANY INCIDENTAL, SPECIAL, OR CONSEQUENTIAL DAMAGES OR LOSS AS +A RESULT OF MODIFYING, DISTRIBUTING, OR OTHERWISE USING PYTHON 1.6.1, +OR ANY DERIVATIVE THEREOF, EVEN IF ADVISED OF THE POSSIBILITY THEREOF. + +6. This License Agreement will automatically terminate upon a material +breach of its terms and conditions. + +7. This License Agreement shall be governed by the federal +intellectual property law of the United States, including without +limitation the federal copyright law, and, to the extent such +U.S. federal law does not apply, by the law of the Commonwealth of +Virginia, excluding Virginia's conflict of law provisions. +Notwithstanding the foregoing, with regard to derivative works based +on Python 1.6.1 that incorporate non-separable material that was +previously distributed under the GNU General Public License (GPL), the +law of the Commonwealth of Virginia shall govern this License +Agreement only as to issues arising under or with respect to +Paragraphs 4, 5, and 7 of this License Agreement. Nothing in this +License Agreement shall be deemed to create any relationship of +agency, partnership, or joint venture between CNRI and Licensee. This +License Agreement does not grant permission to use CNRI trademarks or +trade name in a trademark sense to endorse or promote products or +services of Licensee, or any third party. + +8. By clicking on the "ACCEPT" button where indicated, or by copying, +installing or otherwise using Python 1.6.1, Licensee agrees to be +bound by the terms and conditions of this License Agreement. + + ACCEPT + + +CWI LICENSE AGREEMENT FOR PYTHON 0.9.0 THROUGH 1.2 +-------------------------------------------------- + +Copyright (c) 1991 - 1995, Stichting Mathematisch Centrum Amsterdam, +The Netherlands. All rights reserved. + +Permission to use, copy, modify, and distribute this software and its +documentation for any purpose and without fee is hereby granted, +provided that the above copyright notice appear in all copies and that +both that copyright notice and this permission notice appear in +supporting documentation, and that the name of Stichting Mathematisch +Centrum or CWI not be used in advertising or publicity pertaining to +distribution of the software without specific, written prior +permission. + +STICHTING MATHEMATISCH CENTRUM DISCLAIMS ALL WARRANTIES WITH REGARD TO +THIS SOFTWARE, INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND +FITNESS, IN NO EVENT SHALL STICHTING MATHEMATISCH CENTRUM BE LIABLE +FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES +WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN +ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT +OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE. + +ZERO-CLAUSE BSD LICENSE FOR CODE IN THE PYTHON DOCUMENTATION +---------------------------------------------------------------------- + +Permission to use, copy, modify, and/or distribute this software for any +purpose with or without fee is hereby granted. + +THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH +REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY +AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, +INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM +LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR +OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR +PERFORMANCE OF THIS SOFTWARE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python.exe new file mode 100644 index 0000000000000000000000000000000000000000..12dc0e6cb4911ffee9eb89ddcdd7404f7159991c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3.14t.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3.14t.exe new file mode 100644 index 0000000000000000000000000000000000000000..12dc0e6cb4911ffee9eb89ddcdd7404f7159991c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3.14t.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3t.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3t.dll new file mode 100644 index 0000000000000000000000000000000000000000..ac6a3f02783ce5fec753efa3e8c5f2a55ed0819a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/python3t.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/pythonw3.14t.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/pythonw3.14t.exe new file mode 100644 index 0000000000000000000000000000000000000000..d84e1c2239084eefaebe93c9cfafac9e6c9f1776 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t/pythonw3.14t.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/tinyxml2-11.0.0-he0c23c2_0.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/tinyxml2-11.0.0-he0c23c2_0.conda new file mode 100644 index 0000000000000000000000000000000000000000..ff0159c8450af46c5356fb8eb4b22641fed222e9 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/tinyxml2-11.0.0-he0c23c2_0.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..ba76ef0245f304198e22d18225e172512730e6cf Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-2-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-2-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..54dd2216fc27be73bb6b87949e5684705d0f2a83 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-console-l1-2-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-datetime-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-datetime-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..2ee8e37ff531a11a8d9c3e4e67015f3e22922093 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-datetime-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-debug-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-debug-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..d0ba39be7590b0e358600ba701d588c74ce1e6fe Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-debug-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-errorhandling-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-errorhandling-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..3789f70db82cf79f49adb7c4db0418ade579cd87 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-errorhandling-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..45a14d08acc38a7d982a3ced651d4df8946788d0 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-1.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-1.dll new file mode 100644 index 0000000000000000000000000000000000000000..5adc273e39ecbdea1573e90b7becedc618fe9681 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-fibers-l1-1-1.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..842cc0cf65f3b28ca29cc0b3b21e485d95a085b7 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-2-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-2-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..99bdde30130a7be65e719b6610b91e56f0616fd5 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l1-2-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l2-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l2-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..da66d9962d6b94860fcbb2cc2b1d0617fb12d71f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-file-l2-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-handle-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-handle-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..e17c1686ca96544aad466b4c139847e6dea60286 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-handle-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-heap-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-heap-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..7175383360095fa1215cfad312e132e017001cb0 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-heap-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-interlocked-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-interlocked-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..a9edfae7595517e13cbc3b6b48548b97f84f747e Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-interlocked-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-kernel32-legacy-l1-1-1.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-kernel32-legacy-l1-1-1.dll new file mode 100644 index 0000000000000000000000000000000000000000..3d5e919bafee4f06e8dbc37ae4232c6addbdd496 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-kernel32-legacy-l1-1-1.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-libraryloader-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-libraryloader-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..c27341d8b8f2f11abe3555362ab2e725460536d9 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-libraryloader-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-localization-l1-2-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-localization-l1-2-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..0b2f1bb3331d454add27f1cfa5962e85d9fc8500 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-localization-l1-2-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-memory-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-memory-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..1a58e6f74f7cf14cbaf2174988a97bc5f990a201 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-memory-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-namedpipe-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-namedpipe-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..00458a73aaf6186d4b295af8bc12903d7347face Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-namedpipe-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processenvironment-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processenvironment-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..e4afdf9110167cd5ed48b3aa816ba0e0ffa0f2a6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processenvironment-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..8068ebcba26b6cf29c0388b6b5188b9a3819456f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-1.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-1.dll new file mode 100644 index 0000000000000000000000000000000000000000..6e6a071298bf7014698970e03afb4cd20c143fcd Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-processthreads-l1-1-1.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-profile-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-profile-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..311bb44081a317dafad2b3d2f056b1baa1c06372 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-profile-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-rtlsupport-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-rtlsupport-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..dafb34131ecf4c52feac6f009c7e2acfdf725cf9 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-rtlsupport-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-string-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-string-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..fea3b20ddfcdc911668630e85639e3667fc0ba5f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-string-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..841f688c873329e1280176b304b1604d2975fa4c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-2-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-2-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..2bf8f2005f2a70024b05430f69265a7b148c3f28 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-synch-l1-2-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..c86c73ac21556804aac47fc1dc03e2daba6eea70 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-2-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-2-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..0b69ba1f76659e3575df30d48b789b2945d5e1ea Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-sysinfo-l1-2-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-timezone-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-timezone-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..44eb323f357c4b832c51e573b5227d7b1cff30bc Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-timezone-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-util-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-util-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..c3a9457ea9b3532c6dff5cf90ab727103cabc9ed Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-core-util-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-conio-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-conio-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..959760ecce79a1488e2917cb3429b6a4b9b259c2 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-conio-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-convert-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-convert-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..7fed11c66b1d7ad7f9277e3b6e86ab778a794f2f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-convert-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-environment-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-environment-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..14ba50d69c78303d6beae8da2042732006b4be6e Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-environment-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-filesystem-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-filesystem-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..b43469b5ffa3f030e95c198b5ca60d7876bd4b95 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-filesystem-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-heap-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-heap-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..9647fa81b0e68ea7b38861667180b5fa8060a28f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-heap-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-locale-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-locale-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..4bb3cfd7cbace4637b84368e431d4557008f2e4d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-locale-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-math-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-math-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..8a0b8ec5b45198404ebfcac19699d72be391a0ad Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-math-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-multibyte-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-multibyte-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..4cfca49d94c9f4ae63e376db30dc4f6fad81d605 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-multibyte-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-private-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-private-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..55d72d215858ef19d1d96481ce1687b83b3f5e89 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-private-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-process-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-process-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..4d07a52437cb573e4c93c51602960bac0c262ea3 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-process-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-runtime-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-runtime-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..2be5f2794e12ac6dfd4cf0a3b0f56a29ddafe34a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-runtime-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-stdio-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-stdio-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..7a5ea7ce0eb2511bfdb80b92189c0f56b6b82682 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-stdio-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-string-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-string-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..0e66ad223d27575371092c071d7f00d8e66e23f3 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-string-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-time-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-time-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..acca0e6b95229400d07ecb671184cb4ba02328f2 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-time-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-utility-l1-1-0.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-utility-l1-1-0.dll new file mode 100644 index 0000000000000000000000000000000000000000..ea973bc757a3625042fa59a7e5f9bbb628334727 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0/api-ms-win-crt-utility-l1-1-0.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/urls.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/urls.txt new file mode 100644 index 0000000000000000000000000000000000000000..da683c7089196da77c49c8a51aab7df575292d7d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/urls.txt @@ -0,0 +1,37 @@ +https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda +https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.53.1-hf5d6505_0.conda +https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35.conda +https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.44.35208-h818238b_35.conda +https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.3-hfd05255_0.conda +https://conda.anaconda.org/conda-forge/win-64/libexpat-2.8.0-hac47afa_0.conda +https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.2-hfd05255_2.conda +https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_9.conda +https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h41ae7f8_35.conda +https://conda.anaconda.org/conda-forge/win-64/libffi-3.5.2-h3d046cb_0.conda +https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h6ed50ae_3.conda +https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.2-hf411b9b_0.conda +https://conda.anaconda.org/conda-forge/win-64/python-3.11.15-h0159041_0_cpython.conda +https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6.conda +https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py314h58356db_1.conda +https://conda.anaconda.org/conda-forge/win-64/psutil-7.2.2-py314h8f04a7f_0.conda +https://conda.anaconda.org/conda-forge/win-64/mypy-1.20.2-py314hac7e1cd_0.conda +https://conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3.conda +https://conda.anaconda.org/conda-forge/win-64/pytokens-0.4.1-py314h8f04a7f_1.conda +https://conda.anaconda.org/conda-forge/win-64/python-librt-0.11.0-py314h8f04a7f_0.conda +https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_1.conda +https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda +https://conda.anaconda.org/conda-forge/win-64/ruff-0.15.12-hd7ccaa8_0.conda +https://conda.anaconda.org/conda-forge/win-64/python-3.14.4-h7c1dbca_0_cp314t.conda +https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-hc1393d2_2.conda +https://conda.anaconda.org/conda-forge/win-64/pcre-8.45-h0e60522_0.tar.bz2 +https://conda.anaconda.org/conda-forge/win-64/brotli-python-1.2.0-py314he701e3d_1.conda +https://conda.anaconda.org/conda-forge/win-64/psutil-7.2.2-py314hc5dbbe4_0.conda +https://conda.anaconda.org/conda-forge/win-64/cppcheck-2.20.1-py314h7ae7f31_0.conda +https://conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3.conda +https://conda.anaconda.org/conda-forge/win-64/python-librt-0.11.0-py314hc5dbbe4_0.conda +https://conda.anaconda.org/conda-forge/win-64/tinyxml2-11.0.0-he0c23c2_0.conda +https://conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.44.35208-h38c0c73_35.conda +https://conda.anaconda.org/conda-forge/win-64/doxygen-1.13.2-hbf3f430_0.conda +https://conda.anaconda.org/conda-forge/win-64/python-3.14.4-h4b44e0e_100_cp314.conda +https://conda.anaconda.org/conda-forge/win-64/mypy-1.20.2-py314h5a2d7ad_0.conda +https://conda.anaconda.org/conda-forge/win-64/m2-conda-epoch-20250515-0_x86_64.conda diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc-14.3-h41ae7f8_35.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc-14.3-h41ae7f8_35.conda new file mode 100644 index 0000000000000000000000000000000000000000..ca4d01d0996f558cb0d7e50605883d03a481a41f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc-14.3-h41ae7f8_35.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_1.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_1.dll new file mode 100644 index 0000000000000000000000000000000000000000..9ed52a26b384c771ef7bc5fab79294cda3b70c7b Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_1.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_atomic_wait.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_atomic_wait.dll new file mode 100644 index 0000000000000000000000000000000000000000..b2f024e17e0bdf9e7abd5f69b3409a8f66362366 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_atomic_wait.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_codecvt_ids.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_codecvt_ids.dll new file mode 100644 index 0000000000000000000000000000000000000000..eb1cc26f17151a8c94c3136b43d7f49d17080a7d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/msvcp140_codecvt_ids.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_1.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_1.dll new file mode 100644 index 0000000000000000000000000000000000000000..dd0c100282af19ef6f54966aacdd86214da80562 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_1.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_threads.dll b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_threads.dll new file mode 100644 index 0000000000000000000000000000000000000000..2ffe730da75336c92d9051e82f0cbe8dd47d3307 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_35/vcruntime140_threads.dll differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.44.35208-h38c0c73_35.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.44.35208-h38c0c73_35.conda new file mode 100644 index 0000000000000000000000000000000000000000..b3ba567dfc71ae7a137783fa02cdd54f66969718 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/vs2015_runtime-14.44.35208-h38c0c73_35.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a34a7e56db35cc4c85bfa166244b3d63a6a240d4 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER @@ -0,0 +1 @@ +conda diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..b7306a2c174d6160f5b2a0dde6d78bfb57fe2b6a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA @@ -0,0 +1,890 @@ +Metadata-Version: 2.4 +Name: watchdog +Version: 6.0.0 +Summary: Filesystem events monitoring +Home-page: https://github.com/gorakhargosh/watchdog +Author: Mickaël Schoentgen +Author-email: contact@tiger-222.fr +License: Apache-2.0 +Project-URL: Documentation, https://python-watchdog.readthedocs.io/en/stable/ +Project-URL: Source, https://github.com/gorakhargosh/watchdog/ +Project-URL: Issues, https://github.com/gorakhargosh/watchdog/issues +Project-URL: Changelog, https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst +Keywords: python filesystem monitoring monitor FSEvents kqueue inotify ReadDirectoryChangesW polling DirectorySnapshot +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: System Administrators +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Natural Language :: English +Classifier: Operating System :: POSIX :: Linux +Classifier: Operating System :: MacOS :: MacOS X +Classifier: Operating System :: POSIX :: BSD +Classifier: Operating System :: Microsoft :: Windows :: Windows Vista +Classifier: Operating System :: Microsoft :: Windows :: Windows 7 +Classifier: Operating System :: Microsoft :: Windows :: Windows 8 +Classifier: Operating System :: Microsoft :: Windows :: Windows 8.1 +Classifier: Operating System :: Microsoft :: Windows :: Windows 10 +Classifier: Operating System :: Microsoft :: Windows :: Windows 11 +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Programming Language :: C +Classifier: Topic :: Software Development :: Libraries +Classifier: Topic :: System :: Monitoring +Classifier: Topic :: System :: Filesystems +Classifier: Topic :: Utilities +Requires-Python: >=3.9 +Description-Content-Type: text/x-rst +License-File: LICENSE +License-File: COPYING +License-File: AUTHORS +Provides-Extra: watchmedo +Requires-Dist: PyYAML>=3.10; extra == "watchmedo" +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: description +Dynamic: description-content-type +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: license-file +Dynamic: provides-extra +Dynamic: requires-python +Dynamic: summary + +Watchdog +======== + +|PyPI Version| +|PyPI Status| +|PyPI Python Versions| +|GitHub Build Status| +|GitHub License| + +Python API and shell utilities to monitor file system events. + +Works on 3.9+. + +Example API Usage +----------------- + +A simple program that uses watchdog to monitor directories specified +as command-line arguments and logs events generated: + +.. code-block:: python + + import time + + from watchdog.events import FileSystemEvent, FileSystemEventHandler + from watchdog.observers import Observer + + + class MyEventHandler(FileSystemEventHandler): + def on_any_event(self, event: FileSystemEvent) -> None: + print(event) + + + event_handler = MyEventHandler() + observer = Observer() + observer.schedule(event_handler, ".", recursive=True) + observer.start() + try: + while True: + time.sleep(1) + finally: + observer.stop() + observer.join() + + +Shell Utilities +--------------- + +Watchdog comes with an *optional* utility script called ``watchmedo``. +Please type ``watchmedo --help`` at the shell prompt to +know more about this tool. + +Here is how you can log the current directory recursively +for events related only to ``*.py`` and ``*.txt`` files while +ignoring all directory events: + +.. code-block:: bash + + watchmedo log \ + --patterns='*.py;*.txt' \ + --ignore-directories \ + --recursive \ + --verbose \ + . + +You can use the ``shell-command`` subcommand to execute shell commands in +response to events: + +.. code-block:: bash + + watchmedo shell-command \ + --patterns='*.py;*.txt' \ + --recursive \ + --command='echo "${watch_src_path}"' \ + . + +Please see the help information for these commands by typing: + +.. code-block:: bash + + watchmedo [command] --help + + +About ``watchmedo`` Tricks +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +``watchmedo`` can read ``tricks.yaml`` files and execute tricks within them in +response to file system events. Tricks are actually event handlers that +subclass ``watchdog.tricks.Trick`` and are written by plugin authors. Trick +classes are augmented with a few additional features that regular event handlers +don't need. + +An example ``tricks.yaml`` file: + +.. code-block:: yaml + + tricks: + - watchdog.tricks.LoggerTrick: + patterns: ["*.py", "*.js"] + - watchmedo_webtricks.GoogleClosureTrick: + patterns: ['*.js'] + hash_names: true + mappings_format: json # json|yaml|python + mappings_module: app/javascript_mappings + suffix: .min.js + compilation_level: advanced # simple|advanced + source_directory: app/static/js/ + destination_directory: app/public/js/ + files: + index-page: + - app/static/js/vendor/jquery*.js + - app/static/js/base.js + - app/static/js/index-page.js + about-page: + - app/static/js/vendor/jquery*.js + - app/static/js/base.js + - app/static/js/about-page/**/*.js + +The directory containing the ``tricks.yaml`` file will be monitored. Each trick +class is initialized with its corresponding keys in the ``tricks.yaml`` file as +arguments and events are fed to an instance of this class as they arrive. + +Installation +------------ +Install from PyPI using ``pip``: + +.. code-block:: bash + + $ python -m pip install -U watchdog + + # or to install the watchmedo utility: + $ python -m pip install -U 'watchdog[watchmedo]' + +Install from source: + +.. code-block:: bash + + $ python -m pip install -e . + + # or to install the watchmedo utility: + $ python -m pip install -e '.[watchmedo]' + + +Documentation +------------- + +You can browse the latest release documentation_ online. + +Contribute +---------- + +Fork the `repository`_ on GitHub and send a pull request, or file an issue +ticket at the `issue tracker`_. For general help and questions use +`stackoverflow`_ with tag `python-watchdog`. + +Create and activate your virtual environment, then:: + + python -m pip install tox + python -m tox [-q] [-e ENV] + +If you are making a substantial change, add an entry to the "Unreleased" section +of the `changelog`_. + +Supported Platforms +------------------- + +* Linux 2.6 (inotify) +* macOS (FSEvents, kqueue) +* FreeBSD/BSD (kqueue) +* Windows (ReadDirectoryChangesW with I/O completion ports; + ReadDirectoryChangesW worker threads) +* OS-independent (polling the disk for directory snapshots and comparing them + periodically; slow and not recommended) + +Note that when using watchdog with kqueue, you need the +number of file descriptors allowed to be opened by programs +running on your system to be increased to more than the +number of files that you will be monitoring. The easiest way +to do that is to edit your ``~/.profile`` file and add +a line similar to:: + + ulimit -n 1024 + +This is an inherent problem with kqueue because it uses +file descriptors to monitor files. That plus the enormous +amount of bookkeeping that watchdog needs to do in order +to monitor file descriptors just makes this a painful way +to monitor files and directories. In essence, kqueue is +not a very scalable way to monitor a deeply nested +directory of files and directories with a large number of +files. + +About using watchdog with editors like Vim +------------------------------------------ + +Vim does not modify files unless directed to do so. +It creates backup files and then swaps them in to replace +the files you are editing on the disk. This means that +if you use Vim to edit your files, the on-modified events +for those files will not be triggered by watchdog. +You may need to configure Vim appropriately to disable +this feature. + + +About using watchdog with CIFS +------------------------------ + +When you want to watch changes in CIFS, you need to explicitly tell watchdog to +use ``PollingObserver``, that is, instead of letting watchdog decide an +appropriate observer like in the example above, do:: + + from watchdog.observers.polling import PollingObserver as Observer + + +Dependencies +------------ + +1. Python 3.9 or above. +2. XCode_ (only on macOS when installing from sources) +3. PyYAML_ (only for ``watchmedo``) + +Licensing +--------- + +Watchdog is licensed under the terms of the `Apache License, version 2.0`_. + +- Copyright 2018-2024 Mickaël Schoentgen & contributors +- Copyright 2014-2018 Thomas Amland & contributors +- Copyright 2012-2014 Google, Inc. +- Copyright 2011-2012 Yesudeep Mangalapilly + +Project `source code`_ is available at Github. Please report bugs and file +enhancement requests at the `issue tracker`_. + +Why Watchdog? +------------- + +Too many people tried to do the same thing and none did what I needed Python +to do: + +* pnotify_ +* `unison fsmonitor`_ +* fsmonitor_ +* guard_ +* pyinotify_ +* `inotify-tools`_ +* jnotify_ +* treewatcher_ +* `file.monitor`_ +* pyfilesystem_ + +.. links: +.. _Yesudeep Mangalapilly: yesudeep@gmail.com +.. _source code: https://github.com/gorakhargosh/watchdog +.. _issue tracker: https://github.com/gorakhargosh/watchdog/issues +.. _Apache License, version 2.0: https://www.apache.org/licenses/LICENSE-2.0 +.. _documentation: https://python-watchdog.readthedocs.io/ +.. _stackoverflow: https://stackoverflow.com/questions/tagged/python-watchdog +.. _repository: https://github.com/gorakhargosh/watchdog +.. _issue tracker: https://github.com/gorakhargosh/watchdog/issues +.. _changelog: https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst + +.. _PyYAML: https://www.pyyaml.org/ +.. _XCode: https://developer.apple.com/technologies/tools/xcode.html + +.. _pnotify: http://mark.heily.com/pnotify +.. _unison fsmonitor: https://webdav.seas.upenn.edu/viewvc/unison/trunk/src/fsmonitor.py?view=markup&pathrev=471 +.. _fsmonitor: https://github.com/shaurz/fsmonitor +.. _guard: https://github.com/guard/guard +.. _pyinotify: https://github.com/seb-m/pyinotify +.. _inotify-tools: https://github.com/rvoicilas/inotify-tools +.. _jnotify: http://jnotify.sourceforge.net/ +.. _treewatcher: https://github.com/jbd/treewatcher +.. _file.monitor: https://github.com/pke/file.monitor +.. _pyfilesystem: https://github.com/PyFilesystem/pyfilesystem + +.. |PyPI Version| image:: https://img.shields.io/pypi/v/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |PyPI Status| image:: https://img.shields.io/pypi/status/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |PyPI Python Versions| image:: https://img.shields.io/pypi/pyversions/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |Github Build Status| image:: https://github.com/gorakhargosh/watchdog/workflows/Tests/badge.svg + :target: https://github.com/gorakhargosh/watchdog/actions?query=workflow%3ATests +.. |GitHub License| image:: https://img.shields.io/github/license/gorakhargosh/watchdog.svg + :target: https://github.com/gorakhargosh/watchdog/blob/master/LICENSE + + +.. :changelog: + +Changelog +--------- + +6.0.0 +~~~~~ + +2024-11-01 • `full history `__ + +- Pin test dependecies. +- [docs] Add typing info to quick start. (`#1082 `__) +- [inotify] Use of ``select.poll()`` instead of deprecated ``select.select()``, if available. (`#1078 `__) +- [inotify] Fix reading inotify file descriptor after closing it. (`#1081 `__) +- [utils] The ``stop_signal`` keyword-argument type of the ``AutoRestartTrick`` class can now be either a ``signal.Signals`` or an ``int``. +- [utils] Added the ``__repr__()`` method to the ``Trick`` class. +- [utils] Removed the unused ``echo_class()`` function from the ``echo`` module. +- [utils] Removed the unused ``echo_instancemethod()`` function from the ``echo`` module. +- [utils] Removed the unused ``echo_module()`` function from the ``echo`` module. +- [utils] Removed the unused ``is_class_private_name()`` function from the ``echo`` module. +- [utils] Removed the unused ``is_classmethod()`` function from the ``echo`` module. +- [utils] Removed the unused ``ic_method(met()`` function from the ``echo`` module. +- [utils] Removed the unused ``method_name()`` function from the ``echo`` module. +- [utils] Removed the unused ``name()`` function from the ``echo`` module. +- [watchmedo] Fixed Mypy issues. +- [watchmedo] Added the ``__repr__()`` method to the ``HelpFormatter`` class. +- [watchmedo] Removed the ``--trace`` CLI argument from the ``watchmedo log`` command, useless since events are logged by default at the ``LoggerTrick`` class level. +- [windows] Fixed Mypy issues. +- Thanks to our beloved contributors: @BoboTiG, @g-pichlern, @ethan-vanderheijden, @nhairs + +5.0.3 +~~~~~ + +2024-09-27 • `full history `__ + +- [inotify] Improve cleaning up ``Inotify`` threads, and add ``eventlet`` test cases (`#1070 `__) +- Thanks to our beloved contributors: @BoboTiG, @ethan-vanderheijden + +5.0.2 +~~~~~ + +2024-09-03 • `full history `__ + +- Enable OS specific Mypy checks (`#1064 `__) +- [watchmedo] Fix ``tricks`` argument type of ``schedule_tricks()`` (`#1063 `__) +- Thanks to our beloved contributors: @gnought, @BoboTiG + +5.0.1 +~~~~~ + +2024-09-02 • `full history `__ + +- [kqueue] Fix ``TypeError: kqueue.control() only accepts positional parameters`` (`#1062 `__) +- Thanks to our beloved contributors: @apoirier, @BoboTiG + +5.0.0 +~~~~~ + +2024-08-26 • `full history `__ + +**Breaking Changes** + +- Drop support for Python 3.8 (`#1055 `__) +- [core] Enforced usage of proper keyword-arguments (`#1057 `__) +- [core] Renamed the ``BaseObserverSubclassCallable`` class to ``ObserverType`` (`#1055 `__) +- [inotify] Renamed the ``inotify_event_struct`` class to ``InotifyEventStruct`` (`#1055 `__) +- [inotify] Renamed the ``UnsupportedLibc`` exception to ``UnsupportedLibcError`` (`#1057 `__) +- [inotify] Removed the ``InotifyConstants.IN_CLOSE`` constant (`#1046 `__) +- [watchmedo] Renamed the ``LogLevelException`` exception to ``LogLevelError`` (`#1057 `__) +- [watchmedo] Renamed the ``WatchdogShutdown`` exception to ``WatchdogShutdownError`` (`#1057 `__) +- [windows] Renamed the ``FILE_NOTIFY_INFORMATION`` class to ``FileNotifyInformation`` (`#1055 `__) +- [windows] Removed the unused ``WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` constant (`#1057 `__) + +**Other Changes** + +- [core] Enable ``disallow_untyped_calls`` Mypy rule (`#1055 `__) +- [core] Enable ``disallow_untyped_defs`` Mypy rule (`#1060 `__) +- [core] Improve typing references for events (`#1040 `__) +- [inotify] Add support for ``IN_CLOSE_NOWRITE`` events. A ``FileClosedNoWriteEvent`` event will be fired, and its ``on_closed_no_write()`` dispatcher has been introduced (`#1046 `__) +- Thanks to our beloved contributors: @BoboTiG + +4.0.2 +~~~~~ + +2024-08-11 • `full history `__ + +- Add support for Python 3.13 (`#1052 `__) +- [core] Run ``ruff``, apply several fixes (`#1033 `__) +- [core] Remove execution rights from ``events.py`` +- [documentation] Update ``PatternMatchingEventHandler`` docstrings (`#1048 `__) +- [documentation] Simplify the quickstart example (`#1047 `__) +- [fsevents] Add missing ``event_filter`` keyword-argument to ``FSEventsObserver.schedule()`` (`#1049 `__) +- [utils] Fix a possible race condition in ``AutoRestartTrick`` (`#1002 `__) +- [watchmedo] Remove execution rights from ``watchmedo.py`` +- Thanks to our beloved contributors: @BoboTiG, @nbelakovski, @ivg + +4.0.1 +~~~~~ + +2024-05-23 • `full history `__ + +- [inotify] Fix missing ``event_filter`` for the full emitter (`#1032 `__) +- Thanks to our beloved contributors: @mraspaud, @BoboTiG + +4.0.0 +~~~~~ + +2024-02-06 • `full history `__ + +- Drop support for Python 3.7. +- Add support for Python 3.12. +- [snapshot] Add typing to ``dirsnapshot`` (`#1012 `__) +- [snapshot] Added ``DirectorySnapshotDiff.ContextManager`` (`#1011 `__) +- [events] ``FileSystemEvent``, and subclasses, are now ``dataclass``es, and their ``repr()`` has changed +- [windows] ``WinAPINativeEvent`` is now a ``dataclass``, and its ``repr()`` has changed +- [events] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggingEventHandler`` +- [tests] Improve ``FileSystemEvent`` coverage +- [watchmedo] Log all events in ``LoggerTrick`` +- [windows] The ``observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` hack was removed. The constant will be kept to prevent breaking other softwares. +- Thanks to our beloved contributors: @BoboTiG, @msabramo + +3.0.0 +~~~~~ + +2023-03-20 • `full history `__ + +- Drop support for Python 3.6. +- ``watchdog`` is now PEP 561 compatible, and tested with ``mypy`` +- Fix missing ``>`` in ``FileSystemEvent.__repr__()`` (`#980 `__) +- [ci] Lots of improvements +- [inotify] Return from ``InotifyEmitter.queue_events()`` if not launched when thread is inactive (`#963 `__) +- [tests] Stability improvements +- [utils] Remove handling of ``threading.Event.isSet`` spelling (`#962 `__) +- [watchmedo] Fixed tricks YAML generation (`#965 `__) +- Thanks to our beloved contributors: @kurtmckee, @altendky, @agroszer, @BoboTiG + +2.3.1 +~~~~~ + +2023-02-28 • `full history `__ + +- Run ``black`` on the entire source code +- Bundle the ``requirements-tests.txt`` file in the source distribution (`#939 `__) +- [watchmedo] Exclude ``FileOpenedEvent`` events from ``AutoRestartTrick``, and ``ShellCommandTrick``, to restore watchdog < 2.3.0 behavior. A better solution should be found in the future. (`#949 `__) +- [watchmedo] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggerTrick`` +- Thanks to our beloved contributors: @BoboTiG + +2.3.0 +~~~~~ + +2023-02-23 • `full history `__ + +- [inotify] Add support for ``IN_OPEN`` events: a ``FileOpenedEvent`` event will be fired (`#941 `__) +- [watchmedo] Add optional event debouncing for ``auto-restart``, only restarting once if many events happen in quick succession (``--debounce-interval``) (`#940 `__) +- [watchmedo] Exit gracefully on ``KeyboardInterrupt`` exception (Ctrl+C) (`#945 `__) +- [watchmedo] Add option to not auto-restart the command after it exits (``--no-restart-on-command-exit``) (`#946 `__) +- Thanks to our beloved contributors: @BoboTiG, @dstaple, @taleinat, @cernekj + +2.2.1 +~~~~~ + +2023-01-01 • `full history `__ + +- Enable ``mypy`` to discover type hints as specified in PEP 561 (`#933 `__) +- [ci] Set the expected Python version when building release files +- [ci] Update actions versions in use +- [watchmedo] [regression] Fix usage of missing ``signal.SIGHUP`` attribute on non-Unix OSes (`#935 `__) +- Thanks to our beloved contributors: @BoboTiG, @simon04, @piotrpdev + +2.2.0 +~~~~~ + +2022-12-05 • `full history `__ + +- [build] Wheels are now available for Python 3.11 (`#932 `__) +- [documentation] HTML documentation builds are now tested for errors (`#902 `__) +- [documentation] Fix typos here, and there (`#910 `__) +- [fsevents2] The ``fsevents2`` observer is now deprecated (`#909 `__) +- [tests] The error message returned by musl libc for error code ``-1`` is now allowed (`#923 `__) +- [utils] Remove unnecessary code in ``dirsnapshot.py`` (`#930 `__) +- [watchmedo] Handle shutdown events from ``SIGHUP`` (`#912 `__) +- Thanks to our beloved contributors: @kurtmckee, @babymastodon, @QuantumEnergyE, @timgates42, @BoboTiG + +2.1.9 +~~~~~ + +2022-06-10 • `full history `__ + +- [fsevents] Fix flakey test to assert that there are no errors when stopping the emitter. +- [inotify] Suppress occasional ``OSError: [Errno 9] Bad file descriptor`` at shutdown. (`#805 `__) +- [watchmedo] Make ``auto-restart`` restart the sub-process if it terminates. (`#896 `__) +- [watchmedo] Avoid zombie sub-processes when running ``shell-command`` without ``--wait``. (`#405 `__) +- Thanks to our beloved contributors: @samschott, @taleinat, @altendky, @BoboTiG + +2.1.8 +~~~~~ + +2022-05-15 • `full history `__ + +- Fix adding failed emitters on observer schedule. (`#872 `__) +- [inotify] Fix hang when unscheduling watch on a path in an unmounted filesystem. (`#869 `__) +- [watchmedo] Fix broken parsing of ``--kill-after`` argument for the ``auto-restart`` command. (`#870 `__) +- [watchmedo] Fix broken parsing of boolean arguments. (`#887 `__) +- [watchmedo] Fix broken parsing of commands from ``auto-restart``, and ``shell-command``. (`#888 `__) +- [watchmedo] Support setting verbosity level via ``-q/--quiet`` and ``-v/--verbose`` arguments. (`#889 `__) +- Thanks to our beloved contributors: @taleinat, @kianmeng, @palfrey, @IlayRosenberg, @BoboTiG + +2.1.7 +~~~~~ + +2022-03-25 • `full history `__ + +- Eliminate timeout in waiting on event queue. (`#861 `__) +- [inotify] Fix ``not`` equality implementation for ``InotifyEvent``. (`#848 `__) +- [watchmedo] Fix calling commands from within a Python script. (`#879 `__) +- [watchmedo] ``PyYAML`` is loaded only when strictly necessary. Simple usages of ``watchmedo`` are possible without the module being installed. (`#847 `__) +- Thanks to our beloved contributors: @sattlerc, @JanzenLiu, @BoboTiG + +2.1.6 +~~~~~ + +2021-10-01 • `full history `__ + +- [bsd] Fixed returned paths in ``kqueue.py`` and restored the overall results of the test suite. (`#842 `__) +- [bsd] Updated FreeBSD CI support .(`#841 `__) +- [watchmedo] Removed the ``argh`` dependency in favor of the builtin ``argparse`` module. (`#836 `__) +- [watchmedo] Removed unexistant ``WindowsApiAsyncObserver`` references and ``--debug-force-winapi-async`` arguments. +- [watchmedo] Improved the help output. +- Thanks to our beloved contributors: @knobix, @AndreaRe9, @BoboTiG + +2.1.5 +~~~~~ + +2021-08-23 • `full history `__ + +- Fix regression introduced in 2.1.4 (reverted "Allow overriding or adding custom event handlers to event dispatch map. (`#814 `__)"). (`#830 `__) +- Convert regexes of type ``str`` to ``list``. (`831 `__) +- Thanks to our beloved contributors: @unique1o1, @BoboTiG + +2.1.4 +~~~~~ + +2021-08-19 • `full history `__ + +- [watchmedo] Fix usage of ``os.setsid()`` and ``os.killpg()`` Unix-only functions. (`#809 `__) +- [mac] Fix missing ``FileModifiedEvent`` on permission or ownership changes of a file. (`#815 `__) +- [mac] Convert absolute watch path in ``FSEeventsEmitter`` with ``os.path.realpath()``. (`#822 `__) +- Fix a possible ``AttributeError`` in ``SkipRepeatsQueue._put()``. (`#818 `__) +- Allow overriding or adding custom event handlers to event dispatch map. (`#814 `__) +- Fix tests on big endian platforms. (`#828 `__) +- Thanks to our beloved contributors: @replabrobin, @BoboTiG, @SamSchott, @AndreiB97, @NiklasRosenstein, @ikokollari, @mgorny + +2.1.3 +~~~~~ + +2021-06-26 • `full history `__ + +- Publish macOS ``arm64`` and ``universal2`` wheels. (`#740 `__) +- Thanks to our beloved contributors: @kainjow, @BoboTiG + +2.1.2 +~~~~~ + +2021-05-19 • `full history `__ + +- [mac] Fix relative path handling for non-recursive watch. (`#797 `__) +- [windows] On PyPy, events happening right after ``start()`` were missed. Add a workaround for that. (`#796 `__) +- Thanks to our beloved contributors: @oprypin, @CCP-Aporia, @BoboTiG + +2.1.1 +~~~~~ + +2021-05-10 • `full history `__ + +- [mac] Fix callback exceptions when the watcher is deleted but still receiving events (`#786 `__) +- Thanks to our beloved contributors: @rom1win, @BoboTiG, @CCP-Aporia + + +2.1.0 +~~~~~ + +2021-05-04 • `full history `__ + +- [inotify] Simplify ``libc`` loading (`#776 `__) +- [mac] Add support for non-recursive watches in ``FSEventsEmitter`` (`#779 `__) +- [watchmedo] Add support for ``--debug-force-*`` arguments to ``tricks`` (`#781 `__) +- Thanks to our beloved contributors: @CCP-Aporia, @aodj, @UnitedMarsupials, @BoboTiG + + +2.0.3 +~~~~~ + +2021-04-22 • `full history `__ + +- [mac] Use ``logger.debug()`` instead of ``logger.info()`` (`#774 `__) +- Updated documentation links (`#777 `__) +- Thanks to our beloved contributors: @globau, @imba-tjd, @BoboTiG + + +2.0.2 +~~~~~ + +2021-02-22 • `full history `__ + +- [mac] Add missing exception objects (`#766 `__) +- Thanks to our beloved contributors: @CCP-Aporia, @BoboTiG + + +2.0.1 +~~~~~ + +2021-02-17 • `full history `__ + +- [mac] Fix a segmentation fault when dealing with unicode paths (`#763 `__) +- Moved the CI from Travis-CI to GitHub Actions (`#764 `__) +- Thanks to our beloved contributors: @SamSchott, @BoboTiG + + +2.0.0 +~~~~~ + +2021-02-11 • `full history `__ + +- Avoid deprecated ``PyEval_InitThreads`` on Python 3.7+ (`#746 `__) +- [inotify] Add support for ``IN_CLOSE_WRITE`` events. A ``FileCloseEvent`` event will be fired. Note that ``IN_CLOSE_NOWRITE`` events are not handled to prevent much noise. (`#184 `__, `#245 `__, `#280 `__, `#313 `__, `#690 `__) +- [inotify] Allow to stop the emitter multiple times (`#760 `__) +- [mac] Support coalesced filesystem events (`#734 `__) +- [mac] Drop support for macOS 10.12 and earlier (`#750 `__) +- [mac] Fix an issue when renaming an item changes only the casing (`#750 `__) +- Thanks to our beloved contributors: @bstaletic, @lukassup, @ysard, @SamSchott, @CCP-Aporia, @BoboTiG + + +1.0.2 +~~~~~ + +2020-12-18 • `full history `__ + +- Wheels are published for GNU/Linux, macOS and Windows (`#739 `__) +- [mac] Fix missing ``event_id`` attribute in ``fsevents`` (`#721 `__) +- [mac] Return byte paths if a byte path was given in ``fsevents`` (`#726 `__) +- [mac] Add compatibility with old macOS versions (`#733 `__) +- Uniformize event for deletion of watched dir (`#727 `__) +- Thanks to our beloved contributors: @SamSchott, @CCP-Aporia, @di, @BoboTiG + + +1.0.1 +~~~~~ + +2020-12-10 • Fix version with good metadatas. + + +1.0.0 +~~~~~ + +2020-12-10 • `full history `__ + +- Versioning is now following the `semver `__ +- Drop support for Python 2.7, 3.4 and 3.5 +- [mac] Regression fixes for native ``fsevents`` (`#717 `__) +- [windows] ``winapi.BUFFER_SIZE`` now defaults to ``64000`` (instead of ``2048``) (`#700 `__) +- [windows] Introduced ``winapi.PATH_BUFFER_SIZE`` (defaults to ``2048``) to keep the old behavior with path-realted functions (`#700 `__) +- Use ``pathlib`` from the standard library, instead of pathtools (`#556 `__) +- Allow file paths on Unix that don't follow the file system encoding (`#703 `__) +- Removed the long-time deprecated ``events.LoggingFileSystemEventHandler`` class, use ``LoggingEventHandler`` instead +- Thanks to our beloved contributors: @SamSchott, @bstaletic, @BoboTiG, @CCP-Aporia + + +0.10.4 +~~~~~~ + +2020-11-21 • `full history `__ + +- Add ``logger`` parameter for the ``LoggingEventHandler`` (`#676 `__) +- Replace mutable default arguments with ``if None`` implementation (`#677 `__) +- Expand tests to Python 2.7 and 3.5-3.10 for GNU/Linux, macOS and Windows +- [mac] Performance improvements for the ``fsevents`` module (`#680 `__) +- [mac] Prevent compilation of ``watchdog_fsevents.c`` on non-macOS machines (`#687 `__) +- [watchmedo] Handle shutdown events from ``SIGTERM`` and ``SIGINT`` more reliably (`#693 `__) +- Thanks to our beloved contributors: @Sraw, @CCP-Aporia, @BoboTiG, @maybe-sybr + + +0.10.3 +~~~~~~ + +2020-06-25 • `full history `__ + +- Ensure ``ObservedWatch.path`` is a string (`#651 `__) +- [inotify] Allow to monitor single file (`#655 `__) +- [inotify] Prevent raising an exception when a file in a monitored folder has no permissions (`#669 `__, `#670 `__) +- Thanks to our beloved contributors: @brant-ruan, @rec, @andfoy, @BoboTiG + + +0.10.2 +~~~~~~ + +2020-02-08 • `full history `__ + +- Fixed the ``build_ext`` command on macOS Catalina (`#628 `__) +- Fixed the installation of macOS requirements on non-macOS OSes (`#635 `__) +- Refactored ``dispatch()`` method of ``FileSystemEventHandler``, + ``PatternMatchingEventHandler`` and ``RegexMatchingEventHandler`` +- [bsd] Improved tests support on non Windows/Linux platforms (`#633 `__, `#639 `__) +- [bsd] Added FreeBSD CI support (`#532 `__) +- [bsd] Restored full support (`#638 `__, `#641 `__) +- Thanks to our beloved contributors: @BoboTiG, @evilham, @danilobellini + + +0.10.1 +~~~~~~ + +2020-01-30 • `full history `__ + +- Fixed Python 2.7 to 3.6 installation when the OS locale is set to POSIX (`#615 `__) +- Fixed the ``build_ext`` command on macOS (`#618 `__, `#620 `__) +- Moved requirements to ``setup.cfg`` (`#617 `__) +- [mac] Removed old C code for Python 2.5 in the `fsevents` C implementation +- [snapshot] Added ``EmptyDirectorySnapshot`` (`#613 `__) +- Thanks to our beloved contributors: @Ajordat, @tehkirill, @BoboTiG + + +0.10.0 +~~~~~~ + +2020-01-26 • `full history `__ + +**Breaking Changes** + +- Dropped support for Python 2.6, 3.2 and 3.3 +- Emitters that failed to start are now removed +- [snapshot] Removed the deprecated ``walker_callback`` argument, + use ``stat`` instead +- [watchmedo] The utility is no more installed by default but via the extra + ``watchdog[watchmedo]`` + +**Other Changes** + +- Fixed several Python 3 warnings +- Identify synthesized events with ``is_synthetic`` attribute (`#369 `__) +- Use ``os.scandir()`` to improve memory usage (`#503 `__) +- [bsd] Fixed flavors of FreeBSD detection (`#529 `__) +- [bsd] Skip unprocessable socket files (`#509 `__) +- [inotify] Fixed events containing non-ASCII characters (`#516 `__) +- [inotify] Fixed the way ``OSError`` are re-raised (`#377 `__) +- [inotify] Fixed wrong source path after renaming a top level folder (`#515 `__) +- [inotify] Removed delay from non-move events (`#477 `__) +- [mac] Fixed a bug when calling ``FSEventsEmitter.stop()`` twice (`#466 `__) +- [mac] Support for unscheduling deleted watch (`#541 `__) +- [mac] Fixed missing field initializers and unused parameters in + ``watchdog_fsevents.c`` +- [snapshot] Don't walk directories without read permissions (`#408 `__) +- [snapshot] Fixed a race condition crash when a directory is swapped for a file (`#513 `__) +- [snasphot] Fixed an ``AttributeError`` about forgotten ``path_for_inode`` attr (`#436 `__) +- [snasphot] Added the ``ignore_device=False`` parameter to the ctor (`597 `__) +- [watchmedo] Fixed the path separator used (`#478 `__) +- [watchmedo] Fixed the use of ``yaml.load()`` for ``yaml.safe_load()`` (`#453 `__) +- [watchmedo] Handle all available signals (`#549 `__) +- [watchmedo] Added the ``--debug-force-polling`` argument (`#404 `__) +- [windows] Fixed issues when the observed directory is deleted (`#570 `__ and `#601 `__) +- [windows] ``WindowsApiEmitter`` made easier to subclass (`#344 `__) +- [windows] Use separate ctypes DLL instances +- [windows] Generate sub created events only if ``recursive=True`` (`#454 `__) +- Thanks to our beloved contributors: @BoboTiG, @LKleinNux, @rrzaripov, + @wildmichael, @TauPan, @segevfiner, @petrblahos, @QuantumEnergyE, + @jeffwidman, @kapsh, @nickoala, @petrblahos, @julianolf, @tonybaloney, + @mbakiev, @pR0Ps, javaguirre, @skurfer, @exarkun, @joshuaskelly, + @danilobellini, @Ajordat + + +0.9.0 +~~~~~ + +2018-08-28 • `full history `__ + +- Deleting the observed directory now emits a ``DirDeletedEvent`` event +- [bsd] Improved the platform detection (`#378 `__) +- [inotify] Fixed a crash when the root directory being watched by was deleted (`#374 `__) +- [inotify] Handle systems providing uClibc +- [linux] Fixed a possible ``DirDeletedEvent`` duplication when + deleting a directory +- [mac] Fixed unicode path handling ``fsevents2.py`` (`#298 `__) +- [watchmedo] Added the ``--debug-force-polling`` argument (`#336 `__) +- [windows] Fixed the ``FILE_LIST_DIRECTORY`` constant (`#376 `__) +- Thanks to our beloved contributors: @vulpeszerda, @hpk42, @tamland, @senden9, + @gorakhargosh, @nolsto, @mafrosis, @DonyorM, @anthrotype, @danilobellini, + @pierregr, @ShinNoNoir, @adrpar, @gforcada, @pR0Ps, @yegorich, @dhke + + +0.8.3 +~~~~~ + +2015-02-11 • `full history `__ + +- Fixed the use of the root logger (`#274 `__) +- [inotify] Refactored libc loading and improved error handling in + ``inotify_c.py`` +- [inotify] Fixed a possible unbound local error in ``inotify_c.py`` +- Thanks to our beloved contributors: @mmorearty, @tamland, @tony, + @gorakhargosh + + +0.8.2 +~~~~~ + +2014-10-29 • `full history `__ + +- Event emitters are no longer started on schedule if ``Observer`` is not + already running +- [mac] Fixed usued arguments to pass clang compilation (`#265 `__) +- [snapshot] Fixed a possible race condition crash on directory deletion (`#281 `__) +- [windows] Fixed an error when watching the same folder again (`#270 `__) +- Thanks to our beloved contributors: @tamland, @apetrone, @Falldog, + @theospears + + +0.8.1 +~~~~~ + +2014-07-28 • `full history `__ + +- Fixed ``anon_inode`` descriptors leakage (`#249 `__) +- [inotify] Fixed thread stop dead lock (`#250 `__) +- Thanks to our beloved contributors: @Witos, @adiroiban, @tamland + + +0.8.0 +~~~~~ + +2014-07-02 • `full history `__ + +- Fixed ``argh`` deprecation warnings (`#242 `__) +- [snapshot] Methods returning internal stats info were replaced by + ``mtime()``, ``inode()`` and ``path()`` methods +- [snapshot] Deprecated the ``walker_callback`` argument +- [watchmedo] Fixed ``auto-restart`` to terminate all children processes (`#225 `__) +- [watchmedo] Added the ``--no-parallel`` argument (`#227 `__) +- [windows] Fixed the value of ``INVALID_HANDLE_VALUE`` (`#123 `__) +- [windows] Fixed octal usages to work with Python 3 as well (`#223 `__) +- Thanks to our beloved contributors: @tamland, @Ormod, @berdario, @cro, + @BernieSumption, @pypingou, @gotcha, @tommorris, @frewsxcv diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..ef9c683523a16fc72d24d9e06f211e814a1069c6 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD @@ -0,0 +1,63 @@ +../../Scripts/watchmedo.exe,sha256=WVQqzbUPKovc9aG2RGeTdsRAvJmoOhXkwt59tvk5CqY,108362 +watchdog-6.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +watchdog-6.0.0.dist-info/METADATA,sha256=QTGKr7vS5LXERw_7vGHrpQ_Gd5KkyE077i71PmmkoUo,45437 +watchdog-6.0.0.dist-info/RECORD,, +watchdog-6.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog-6.0.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91 +watchdog-6.0.0.dist-info/direct_url.json,sha256=NJsZwAwy6u2dfjMFdvqeBy227WZQZsea0W2vZfphixA,84 +watchdog-6.0.0.dist-info/entry_points.txt,sha256=qt_Oe2U5Zlfz7LNA3PHipn3_1zlfRTp9dk3wTS3Ivb8,66 +watchdog-6.0.0.dist-info/licenses/AUTHORS,sha256=JT4CdfYRf1V0Mg9RbNaaGK6LyP9pztEsJR6bQ-MfaG8,2928 +watchdog-6.0.0.dist-info/licenses/COPYING,sha256=OfCBgo22-UxwEj-k-zDBvOPiFaj97OU6SZkf4HamnAg,703 +watchdog-6.0.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358 +watchdog-6.0.0.dist-info/top_level.txt,sha256=OVdR7GkPGZako8sRtVuM0Nis-ZIElx3he3hKFPYnTGg,9 +watchdog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog/__pycache__/__init__.cpython-314.pyc,, +watchdog/__pycache__/events.cpython-314.pyc,, +watchdog/__pycache__/version.cpython-314.pyc,, +watchdog/__pycache__/watchmedo.cpython-314.pyc,, +watchdog/events.py,sha256=ig4oCNcm-mSe6rK5LPsIUcMO3dfq9EKegfM9I4SwVv8,16323 +watchdog/observers/__init__.py,sha256=BmXKL1WXWnJP8-WRrhP4kmGK04gNADh1ifJezeZs4hs,3256 +watchdog/observers/__pycache__/__init__.cpython-314.pyc,, +watchdog/observers/__pycache__/api.cpython-314.pyc,, +watchdog/observers/__pycache__/fsevents.cpython-314.pyc,, +watchdog/observers/__pycache__/fsevents2.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify_c.cpython-314.pyc,, +watchdog/observers/__pycache__/kqueue.cpython-314.pyc,, +watchdog/observers/__pycache__/polling.cpython-314.pyc,, +watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc,, +watchdog/observers/__pycache__/winapi.cpython-314.pyc,, +watchdog/observers/api.py,sha256=tyPhqDhzh2pveEkCVRR2B51SaXlDsrcpl8W6oidQuUs,13802 +watchdog/observers/fsevents.py,sha256=6ho3sgBQt6hsq_1F6eJgtor5CjZV09TaoT01xeHNgd4,14284 +watchdog/observers/fsevents2.py,sha256=fZ8O7zomltBgvucDBlUHZIWKREFn4MKB30T5iEisPsc,9439 +watchdog/observers/inotify.py,sha256=i075APHIwIUdiFrfdocpbYsedUvh_u3AtLqU3bqlgFE,10649 +watchdog/observers/inotify_buffer.py,sha256=VWWuleFQRaJL_ZM0jbcAGjGdj1kZUWmUigC4WSbPmyQ,4434 +watchdog/observers/inotify_c.py,sha256=ys6NrVEbw2bPZQUkzshY5lGlfDZT4nz58Vmn4A49emU,21129 +watchdog/observers/kqueue.py,sha256=HYARzdF_Nlu72vTaIBbIvh5e_N7ROd33VDtZc1Ab2oc,24425 +watchdog/observers/polling.py,sha256=B8gyEtzkRiHmSSf8dcY_0P-Bu0U5i-VWQanBqIVxTs0,4932 +watchdog/observers/read_directory_changes.py,sha256=mKHZIfUopCAU0ae7oE9Ttkggk7LfTb8lwgcMJHmOW5E,4167 +watchdog/observers/winapi.py,sha256=q2nTZ2JYnbuEUiByTcSmpbw4iiKhtNQ6UQg9CWPIUxY,11635 +watchdog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog/tricks/__init__.py,sha256=zLFpZfXN_A3jXlH00Ok0SpbtWxP2WwwsxG7w2PXkxP8,9492 +watchdog/tricks/__pycache__/__init__.cpython-314.pyc,, +watchdog/utils/__init__.py,sha256=9q7wEZW7yl81Db1CcLBQJ33xZ2YrGwyzsK2gzNCC-lE,3513 +watchdog/utils/__pycache__/__init__.cpython-314.pyc,, +watchdog/utils/__pycache__/bricks.cpython-314.pyc,, +watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc,, +watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc,, +watchdog/utils/__pycache__/echo.cpython-314.pyc,, +watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc,, +watchdog/utils/__pycache__/patterns.cpython-314.pyc,, +watchdog/utils/__pycache__/platform.cpython-314.pyc,, +watchdog/utils/__pycache__/process_watcher.cpython-314.pyc,, +watchdog/utils/bricks.py,sha256=cZCA4T9e1iWvr3yY4FOGuOzIpdP4c4Nhx0ipfgyhBno,2545 +watchdog/utils/delayed_queue.py,sha256=Xv-Rco10b62Vt4LnLEmZxlpr93MeBV2ZX-U2--nHS5A,2615 +watchdog/utils/dirsnapshot.py,sha256=SaGnxq0miZbxLZcpJcSOj5sE8ihunqjb5-m8ww9F1aA,14740 +watchdog/utils/echo.py,sha256=GALgUot9zXVAMxMwLN5CkHRIdjmio1X3vppVS14P-eM,2210 +watchdog/utils/event_debouncer.py,sha256=oVifdt50PjOiV4n-0W1OZOCNO4j689BRRVgCGrJvH0E,2079 +watchdog/utils/patterns.py,sha256=fjy8h_XaUuRkoh46uFLv37JzgjmmK2Vzt1ZVbMNa0cE,3672 +watchdog/utils/platform.py,sha256=VSN45Y2kA0NS1Nzlmr5SHB4Ct0xqK2KRly9jlx7DHSg,885 +watchdog/utils/process_watcher.py,sha256=qgLtEZLhYLjpL-GZawIEjV-p_PnMka_hBGH_1vxX-gk,925 +watchdog/version.py,sha256=guvQM7983CuZ2S52zEtdhsS_dkqhbY3mp-GQvVM4DR0,349 +watchdog/watchmedo.py,sha256=AMTUpNSlQmAqxf5EhtfKKh5eYiPZoDYgUm1Gf8xD3-g,25452 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..1ef5583317a5e59140e3f1c85c2db91aec0961e8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: setuptools (82.0.0) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..9a376a3a8d93f08228e5b55d6064e9be9e1e0b77 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///D:/bld/bld/rattler-build_watchdog_1772608056/work"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..b05809e4e163ed58b9d01b5d5f5321486d19fe27 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt @@ -0,0 +1,2 @@ +[console_scripts] +watchmedo = watchdog.watchmedo:main [watchmedo] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS new file mode 100644 index 0000000000000000000000000000000000000000..8c3fed3232160b1d6e47313b0f3244b94e87ddcd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS @@ -0,0 +1,73 @@ +Original Project Lead: +---------------------- +Yesudeep Mangalapilly + +Current Project Lead: +--------------------- +Mickaël Schoentgen + +Contributors in alphabetical order: +----------------------------------- +Adrian Tejn Kern +Andrew Schaaf +Danilo de Jesus da Silva Bellini +David LaPalomento +dvogel +Filip Noetzel +Gary van der Merwe +gfxmonk +Gora Khargosh +Hannu Valtonen +Jesse Printz +Kurt McKee +Léa Klein +Luke McCarthy +Lukáš Lalinský +Malthe Borch +Martin Kreichgauer +Martin Kreichgauer +Mike Lundy +Nicholas Hairs +Raymond Hettinger +Roman Ovchinnikov +Rotem Yaari +Ryan Kelly +Senko Rasic +Senko Rašić +Shane Hathaway +Simon Pantzare +Simon Pantzare +Steven Samuel Cole +Stéphane Klein +Thomas Guest +Thomas Heller +Tim Cuthbertson +Todd Whiteman +Will McGugan +Yesudeep Mangalapilly +Yesudeep Mangalapilly + +We would like to thank these individuals for ideas: +--------------------------------------------------- +Tim Golden +Sebastien Martini + +Initially we used the flask theme for the documentation which was written by +---------------------------------------------------------------------------- +Armin Ronacher + + +Watchdog also includes open source libraries or adapted code +from the following projects: + +- MacFSEvents - https://github.com/malthe/macfsevents +- watch_directory.py - http://timgolden.me.uk/python/downloads/watch_directory.py +- pyinotify - https://github.com/seb-m/pyinotify +- fsmonitor - https://github.com/shaurz/fsmonitor +- echo - http://wordaligned.org/articles/echo +- Lukáš Lalinský's ordered set queue implementation: + https://stackoverflow.com/questions/1581895/how-check-if-a-task-is-already-in-python-queue +- Armin Ronacher's flask-sphinx-themes for the documentation: + https://github.com/mitsuhiko/flask-sphinx-themes +- pyfilesystem - https://github.com/PyFilesystem/pyfilesystem +- get_FILE_NOTIFY_INFORMATION - http://blog.gmane.org/gmane.comp.python.ctypes/month=20070901 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..b84e0b3c8468ff4672c6f1c5a88cb28c3eb067d7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING @@ -0,0 +1,16 @@ +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d645695673349e3947e8e5ae42332d0ac3164cd7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..e59495eee06b72aaf42ba877daa7f944ede675ce --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt @@ -0,0 +1 @@ +watchdog diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..59a92f639d8505fbc0b37c7f7a48dcbcc2d45724 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c741f56c85f8547ebc4b2452ab67ad386ec29c95 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..69d56ca5dd4b33e6a8aa7902dbbaa02156d87cc7 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8a1b54c41f1ec7b0ed0393f2536959fb1edf1c1d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/events.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/events.py new file mode 100644 index 0000000000000000000000000000000000000000..db430235088d2b35fbb84303d1818bce2bb80f23 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/events.py @@ -0,0 +1,542 @@ +""":module: watchdog.events +:synopsis: File system events and event handlers. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Event Classes +------------- +.. autoclass:: FileSystemEvent + :members: + :show-inheritance: + :inherited-members: + +.. autoclass:: FileSystemMovedEvent + :members: + :show-inheritance: + +.. autoclass:: FileMovedEvent + :members: + :show-inheritance: + +.. autoclass:: DirMovedEvent + :members: + :show-inheritance: + +.. autoclass:: FileModifiedEvent + :members: + :show-inheritance: + +.. autoclass:: DirModifiedEvent + :members: + :show-inheritance: + +.. autoclass:: FileCreatedEvent + :members: + :show-inheritance: + +.. autoclass:: FileClosedEvent + :members: + :show-inheritance: + +.. autoclass:: FileClosedNoWriteEvent + :members: + :show-inheritance: + +.. autoclass:: FileOpenedEvent + :members: + :show-inheritance: + +.. autoclass:: DirCreatedEvent + :members: + :show-inheritance: + +.. autoclass:: FileDeletedEvent + :members: + :show-inheritance: + +.. autoclass:: DirDeletedEvent + :members: + :show-inheritance: + + +Event Handler Classes +--------------------- +.. autoclass:: FileSystemEventHandler + :members: + :show-inheritance: + +.. autoclass:: PatternMatchingEventHandler + :members: + :show-inheritance: + +.. autoclass:: RegexMatchingEventHandler + :members: + :show-inheritance: + +.. autoclass:: LoggingEventHandler + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import logging +import os.path +import re +from dataclasses import dataclass, field +from typing import TYPE_CHECKING + +from watchdog.utils.patterns import match_any_paths + +if TYPE_CHECKING: + from collections.abc import Generator + +EVENT_TYPE_MOVED = "moved" +EVENT_TYPE_DELETED = "deleted" +EVENT_TYPE_CREATED = "created" +EVENT_TYPE_MODIFIED = "modified" +EVENT_TYPE_CLOSED = "closed" +EVENT_TYPE_CLOSED_NO_WRITE = "closed_no_write" +EVENT_TYPE_OPENED = "opened" + + +@dataclass(unsafe_hash=True) +class FileSystemEvent: + """Immutable type that represents a file system event that is triggered + when a change occurs on the monitored file system. + + All FileSystemEvent objects are required to be immutable and hence + can be used as keys in dictionaries or be added to sets. + """ + + src_path: bytes | str + dest_path: bytes | str = "" + event_type: str = field(default="", init=False) + is_directory: bool = field(default=False, init=False) + + """ + True if event was synthesized; False otherwise. + These are events that weren't actually broadcast by the OS, but + are presumed to have happened based on other, actual events. + """ + is_synthetic: bool = field(default=False) + + +class FileSystemMovedEvent(FileSystemEvent): + """File system event representing any kind of file system movement.""" + + event_type = EVENT_TYPE_MOVED + + +# File events. + + +class FileDeletedEvent(FileSystemEvent): + """File system event representing file deletion on the file system.""" + + event_type = EVENT_TYPE_DELETED + + +class FileModifiedEvent(FileSystemEvent): + """File system event representing file modification on the file system.""" + + event_type = EVENT_TYPE_MODIFIED + + +class FileCreatedEvent(FileSystemEvent): + """File system event representing file creation on the file system.""" + + event_type = EVENT_TYPE_CREATED + + +class FileMovedEvent(FileSystemMovedEvent): + """File system event representing file movement on the file system.""" + + +class FileClosedEvent(FileSystemEvent): + """File system event representing file close on the file system.""" + + event_type = EVENT_TYPE_CLOSED + + +class FileClosedNoWriteEvent(FileSystemEvent): + """File system event representing an unmodified file close on the file system.""" + + event_type = EVENT_TYPE_CLOSED_NO_WRITE + + +class FileOpenedEvent(FileSystemEvent): + """File system event representing file close on the file system.""" + + event_type = EVENT_TYPE_OPENED + + +# Directory events. + + +class DirDeletedEvent(FileSystemEvent): + """File system event representing directory deletion on the file system.""" + + event_type = EVENT_TYPE_DELETED + is_directory = True + + +class DirModifiedEvent(FileSystemEvent): + """File system event representing directory modification on the file system.""" + + event_type = EVENT_TYPE_MODIFIED + is_directory = True + + +class DirCreatedEvent(FileSystemEvent): + """File system event representing directory creation on the file system.""" + + event_type = EVENT_TYPE_CREATED + is_directory = True + + +class DirMovedEvent(FileSystemMovedEvent): + """File system event representing directory movement on the file system.""" + + is_directory = True + + +class FileSystemEventHandler: + """Base file system event handler that you can override methods from.""" + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + self.on_any_event(event) + getattr(self, f"on_{event.event_type}")(event) + + def on_any_event(self, event: FileSystemEvent) -> None: + """Catch-all event handler. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + + def on_moved(self, event: DirMovedEvent | FileMovedEvent) -> None: + """Called when a file or a directory is moved or renamed. + + :param event: + Event representing file/directory movement. + :type event: + :class:`DirMovedEvent` or :class:`FileMovedEvent` + """ + + def on_created(self, event: DirCreatedEvent | FileCreatedEvent) -> None: + """Called when a file or directory is created. + + :param event: + Event representing file/directory creation. + :type event: + :class:`DirCreatedEvent` or :class:`FileCreatedEvent` + """ + + def on_deleted(self, event: DirDeletedEvent | FileDeletedEvent) -> None: + """Called when a file or directory is deleted. + + :param event: + Event representing file/directory deletion. + :type event: + :class:`DirDeletedEvent` or :class:`FileDeletedEvent` + """ + + def on_modified(self, event: DirModifiedEvent | FileModifiedEvent) -> None: + """Called when a file or directory is modified. + + :param event: + Event representing file/directory modification. + :type event: + :class:`DirModifiedEvent` or :class:`FileModifiedEvent` + """ + + def on_closed(self, event: FileClosedEvent) -> None: + """Called when a file opened for writing is closed. + + :param event: + Event representing file closing. + :type event: + :class:`FileClosedEvent` + """ + + def on_closed_no_write(self, event: FileClosedNoWriteEvent) -> None: + """Called when a file opened for reading is closed. + + :param event: + Event representing file closing. + :type event: + :class:`FileClosedNoWriteEvent` + """ + + def on_opened(self, event: FileOpenedEvent) -> None: + """Called when a file is opened. + + :param event: + Event representing file opening. + :type event: + :class:`FileOpenedEvent` + """ + + +class PatternMatchingEventHandler(FileSystemEventHandler): + """Matches given patterns with file paths associated with occurring events. + Uses pathlib's `PurePath.match()` method. `patterns` and `ignore_patterns` + are expected to be a list of strings. + """ + + def __init__( + self, + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + case_sensitive: bool = False, + ): + super().__init__() + + self._patterns = patterns + self._ignore_patterns = ignore_patterns + self._ignore_directories = ignore_directories + self._case_sensitive = case_sensitive + + @property + def patterns(self) -> list[str] | None: + """(Read-only) + Patterns to allow matching event paths. + """ + return self._patterns + + @property + def ignore_patterns(self) -> list[str] | None: + """(Read-only) + Patterns to ignore matching event paths. + """ + return self._ignore_patterns + + @property + def ignore_directories(self) -> bool: + """(Read-only) + ``True`` if directories should be ignored; ``False`` otherwise. + """ + return self._ignore_directories + + @property + def case_sensitive(self) -> bool: + """(Read-only) + ``True`` if path names should be matched sensitive to case; ``False`` + otherwise. + """ + return self._case_sensitive + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + if self.ignore_directories and event.is_directory: + return + + paths = [] + if hasattr(event, "dest_path"): + paths.append(os.fsdecode(event.dest_path)) + if event.src_path: + paths.append(os.fsdecode(event.src_path)) + + if match_any_paths( + paths, + included_patterns=self.patterns, + excluded_patterns=self.ignore_patterns, + case_sensitive=self.case_sensitive, + ): + super().dispatch(event) + + +class RegexMatchingEventHandler(FileSystemEventHandler): + """Matches given regexes with file paths associated with occurring events. + Uses the `re` module. + """ + + def __init__( + self, + *, + regexes: list[str] | None = None, + ignore_regexes: list[str] | None = None, + ignore_directories: bool = False, + case_sensitive: bool = False, + ): + super().__init__() + + if regexes is None: + regexes = [r".*"] + elif isinstance(regexes, str): + regexes = [regexes] + if ignore_regexes is None: + ignore_regexes = [] + if case_sensitive: + self._regexes = [re.compile(r) for r in regexes] + self._ignore_regexes = [re.compile(r) for r in ignore_regexes] + else: + self._regexes = [re.compile(r, re.IGNORECASE) for r in regexes] + self._ignore_regexes = [re.compile(r, re.IGNORECASE) for r in ignore_regexes] + self._ignore_directories = ignore_directories + self._case_sensitive = case_sensitive + + @property + def regexes(self) -> list[re.Pattern[str]]: + """(Read-only) + Regexes to allow matching event paths. + """ + return self._regexes + + @property + def ignore_regexes(self) -> list[re.Pattern[str]]: + """(Read-only) + Regexes to ignore matching event paths. + """ + return self._ignore_regexes + + @property + def ignore_directories(self) -> bool: + """(Read-only) + ``True`` if directories should be ignored; ``False`` otherwise. + """ + return self._ignore_directories + + @property + def case_sensitive(self) -> bool: + """(Read-only) + ``True`` if path names should be matched sensitive to case; ``False`` + otherwise. + """ + return self._case_sensitive + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + if self.ignore_directories and event.is_directory: + return + + paths = [] + if hasattr(event, "dest_path"): + paths.append(os.fsdecode(event.dest_path)) + if event.src_path: + paths.append(os.fsdecode(event.src_path)) + + if any(r.match(p) for r in self.ignore_regexes for p in paths): + return + + if any(r.match(p) for r in self.regexes for p in paths): + super().dispatch(event) + + +class LoggingEventHandler(FileSystemEventHandler): + """Logs all the events captured.""" + + def __init__(self, *, logger: logging.Logger | None = None) -> None: + super().__init__() + self.logger = logger or logging.root + + def on_moved(self, event: DirMovedEvent | FileMovedEvent) -> None: + super().on_moved(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Moved %s: from %s to %s", what, event.src_path, event.dest_path) + + def on_created(self, event: DirCreatedEvent | FileCreatedEvent) -> None: + super().on_created(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Created %s: %s", what, event.src_path) + + def on_deleted(self, event: DirDeletedEvent | FileDeletedEvent) -> None: + super().on_deleted(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Deleted %s: %s", what, event.src_path) + + def on_modified(self, event: DirModifiedEvent | FileModifiedEvent) -> None: + super().on_modified(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Modified %s: %s", what, event.src_path) + + def on_closed(self, event: FileClosedEvent) -> None: + super().on_closed(event) + + self.logger.info("Closed modified file: %s", event.src_path) + + def on_closed_no_write(self, event: FileClosedNoWriteEvent) -> None: + super().on_closed_no_write(event) + + self.logger.info("Closed read file: %s", event.src_path) + + def on_opened(self, event: FileOpenedEvent) -> None: + super().on_opened(event) + + self.logger.info("Opened file: %s", event.src_path) + + +def generate_sub_moved_events( + src_dir_path: bytes | str, + dest_dir_path: bytes | str, +) -> Generator[DirMovedEvent | FileMovedEvent]: + """Generates an event list of :class:`DirMovedEvent` and + :class:`FileMovedEvent` objects for all the files and directories within + the given moved directory that were moved along with the directory. + + :param src_dir_path: + The source path of the moved directory. + :param dest_dir_path: + The destination path of the moved directory. + :returns: + An iterable of file system events of type :class:`DirMovedEvent` and + :class:`FileMovedEvent`. + """ + for root, directories, filenames in os.walk(dest_dir_path): # type: ignore[type-var] + for directory in directories: + full_path = os.path.join(root, directory) # type: ignore[call-overload] + renamed_path = full_path.replace(dest_dir_path, src_dir_path) if src_dir_path else "" + yield DirMovedEvent(renamed_path, full_path, is_synthetic=True) + for filename in filenames: + full_path = os.path.join(root, filename) # type: ignore[call-overload] + renamed_path = full_path.replace(dest_dir_path, src_dir_path) if src_dir_path else "" + yield FileMovedEvent(renamed_path, full_path, is_synthetic=True) + + +def generate_sub_created_events(src_dir_path: bytes | str) -> Generator[DirCreatedEvent | FileCreatedEvent]: + """Generates an event list of :class:`DirCreatedEvent` and + :class:`FileCreatedEvent` objects for all the files and directories within + the given moved directory that were moved along with the directory. + + :param src_dir_path: + The source path of the created directory. + :returns: + An iterable of file system events of type :class:`DirCreatedEvent` and + :class:`FileCreatedEvent`. + """ + for root, directories, filenames in os.walk(src_dir_path): # type: ignore[type-var] + for directory in directories: + full_path = os.path.join(root, directory) # type: ignore[call-overload] + yield DirCreatedEvent(full_path, is_synthetic=True) + for filename in filenames: + full_path = os.path.join(root, filename) # type: ignore[call-overload] + yield FileCreatedEvent(full_path, is_synthetic=True) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..ce3957418de5fbbd7bb4c731d6ef5031bab4abaa --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__init__.py @@ -0,0 +1,91 @@ +""":module: watchdog.observers +:synopsis: Observer that picks a native implementation if available. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +======= +.. autoclass:: Observer + :members: + :show-inheritance: + :inherited-members: + +Observer thread that schedules watching directories and dispatches +calls to event handlers. + +You can also import platform specific classes directly and use it instead +of :class:`Observer`. Here is a list of implemented observer classes.: + +============== ================================ ============================== +Class Platforms Note +============== ================================ ============================== +|Inotify| Linux 2.6.13+ ``inotify(7)`` based observer +|FSEvents| macOS FSEvents based observer +|Kqueue| macOS and BSD with kqueue(2) ``kqueue(2)`` based observer +|WinApi| Microsoft Windows Windows API-based observer +|Polling| Any fallback implementation +============== ================================ ============================== + +.. |Inotify| replace:: :class:`.inotify.InotifyObserver` +.. |FSEvents| replace:: :class:`.fsevents.FSEventsObserver` +.. |Kqueue| replace:: :class:`.kqueue.KqueueObserver` +.. |WinApi| replace:: :class:`.read_directory_changes.WindowsApiObserver` +.. |Polling| replace:: :class:`.polling.PollingObserver` + +""" + +from __future__ import annotations + +import contextlib +import warnings +from typing import TYPE_CHECKING, Protocol + +from watchdog.utils import UnsupportedLibcError, platform + +if TYPE_CHECKING: + from watchdog.observers.api import BaseObserver + + +class ObserverType(Protocol): + def __call__(self, *, timeout: float = ...) -> BaseObserver: ... + + +def _get_observer_cls() -> ObserverType: + if platform.is_linux(): + with contextlib.suppress(UnsupportedLibcError): + from watchdog.observers.inotify import InotifyObserver + + return InotifyObserver + elif platform.is_darwin(): + try: + from watchdog.observers.fsevents import FSEventsObserver + except Exception: + try: + from watchdog.observers.kqueue import KqueueObserver + except Exception: + warnings.warn("Failed to import fsevents and kqueue. Fall back to polling.", stacklevel=1) + else: + warnings.warn("Failed to import fsevents. Fall back to kqueue", stacklevel=1) + return KqueueObserver + else: + return FSEventsObserver + elif platform.is_windows(): + try: + from watchdog.observers.read_directory_changes import WindowsApiObserver + except Exception: + warnings.warn("Failed to import `read_directory_changes`. Fall back to polling.", stacklevel=1) + else: + return WindowsApiObserver + elif platform.is_bsd(): + from watchdog.observers.kqueue import KqueueObserver + + return KqueueObserver + + from watchdog.observers.polling import PollingObserver + + return PollingObserver + + +Observer = _get_observer_cls() + +__all__ = ["Observer"] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..065f36bccc7101255dcf0dde59aea8edf6ee6799 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c1b170d75e365bfecaa186814ade0c9ddf4a4c91 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d6792120a1ec4a7632d312cf04836e1195243a8f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..9fa171fc5e4a17738702318c0c1595a10a4f0fff Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..83455f15a9fd3c76c2fe37180937c5d9157d1dd6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..131de8b0396124512e019a0c98447cfcedb0c6b0 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..637e2dbe9282b0a11f6db1d5d9ede7bd2153466b Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c45c538259fc1a4b1b4ab491ad879d08268d4e91 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/api.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/api.py new file mode 100644 index 0000000000000000000000000000000000000000..30cb21caff9c686e11c6420064d039f37eb1ff02 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/api.py @@ -0,0 +1,392 @@ +from __future__ import annotations + +import contextlib +import queue +import threading +from collections import defaultdict +from pathlib import Path +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread +from watchdog.utils.bricks import SkipRepeatsQueue + +if TYPE_CHECKING: + from watchdog.events import FileSystemEvent, FileSystemEventHandler + +DEFAULT_EMITTER_TIMEOUT = 1.0 # in seconds +DEFAULT_OBSERVER_TIMEOUT = 1.0 # in seconds + + +class EventQueue(SkipRepeatsQueue): + """Thread-safe event queue based on a special queue that skips adding + the same event (:class:`FileSystemEvent`) multiple times consecutively. + Thus avoiding dispatching multiple event handling + calls when multiple identical events are produced quicker than an observer + can consume them. + """ + + +class ObservedWatch: + """An scheduled watch. + + :param path: + Path string. + :param recursive: + ``True`` if watch is recursive; ``False`` otherwise. + :param event_filter: + Optional collection of :class:`watchdog.events.FileSystemEvent` to watch + """ + + def __init__(self, path: str | Path, *, recursive: bool, event_filter: list[type[FileSystemEvent]] | None = None): + self._path = str(path) if isinstance(path, Path) else path + self._is_recursive = recursive + self._event_filter = frozenset(event_filter) if event_filter is not None else None + + @property + def path(self) -> str: + """The path that this watch monitors.""" + return self._path + + @property + def is_recursive(self) -> bool: + """Determines whether subdirectories are watched for the path.""" + return self._is_recursive + + @property + def event_filter(self) -> frozenset[type[FileSystemEvent]] | None: + """Collection of event types watched for the path""" + return self._event_filter + + @property + def key(self) -> tuple[str, bool, frozenset[type[FileSystemEvent]] | None]: + return self.path, self.is_recursive, self.event_filter + + def __eq__(self, watch: object) -> bool: + if not isinstance(watch, ObservedWatch): + return NotImplemented + return self.key == watch.key + + def __ne__(self, watch: object) -> bool: + if not isinstance(watch, ObservedWatch): + return NotImplemented + return self.key != watch.key + + def __hash__(self) -> int: + return hash(self.key) + + def __repr__(self) -> str: + if self.event_filter is not None: + event_filter_str = "|".join(sorted(_cls.__name__ for _cls in self.event_filter)) + event_filter_str = f", event_filter={event_filter_str}" + else: + event_filter_str = "" + return f"<{type(self).__name__}: path={self.path!r}, is_recursive={self.is_recursive}{event_filter_str}>" + + +# Observer classes +class EventEmitter(BaseThread): + """Producer thread base class subclassed by event emitters + that generate events and populate a queue with them. + + :param event_queue: + The event queue to populate with generated events. + :type event_queue: + :class:`watchdog.events.EventQueue` + :param watch: + The watch to observe and produce events for. + :type watch: + :class:`ObservedWatch` + :param timeout: + Timeout (in seconds) between successive attempts at reading events. + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__() + self._event_queue = event_queue + self._watch = watch + self._timeout = timeout + self._event_filter = frozenset(event_filter) if event_filter is not None else None + + @property + def timeout(self) -> float: + """Blocking timeout for reading events.""" + return self._timeout + + @property + def watch(self) -> ObservedWatch: + """The watch associated with this emitter.""" + return self._watch + + def queue_event(self, event: FileSystemEvent) -> None: + """Queues a single event. + + :param event: + Event to be queued. + :type event: + An instance of :class:`watchdog.events.FileSystemEvent` + or a subclass. + """ + if self._event_filter is None or any(isinstance(event, cls) for cls in self._event_filter): + self._event_queue.put((event, self.watch)) + + def queue_events(self, timeout: float) -> None: + """Override this method to populate the event queue with events + per interval period. + + :param timeout: + Timeout (in seconds) between successive attempts at + reading events. + :type timeout: + ``float`` + """ + + def run(self) -> None: + while self.should_keep_running(): + self.queue_events(self.timeout) + + +class EventDispatcher(BaseThread): + """Consumer thread base class subclassed by event observer threads + that dispatch events from an event queue to appropriate event handlers. + + :param timeout: + Timeout value (in seconds) passed to emitters + constructions in the child class BaseObserver. + :type timeout: + ``float`` + """ + + stop_event = object() + """Event inserted into the queue to signal a requested stop.""" + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__() + self._event_queue = EventQueue() + self._timeout = timeout + + @property + def timeout(self) -> float: + """Timeout value to construct emitters with.""" + return self._timeout + + def stop(self) -> None: + BaseThread.stop(self) + with contextlib.suppress(queue.Full): + self.event_queue.put_nowait(EventDispatcher.stop_event) + + @property + def event_queue(self) -> EventQueue: + """The event queue which is populated with file system events + by emitters and from which events are dispatched by a dispatcher + thread. + """ + return self._event_queue + + def dispatch_events(self, event_queue: EventQueue) -> None: + """Override this method to consume events from an event queue, blocking + on the queue for the specified timeout before raising :class:`queue.Empty`. + + :param event_queue: + Event queue to populate with one set of events. + :type event_queue: + :class:`EventQueue` + :raises: + :class:`queue.Empty` + """ + + def run(self) -> None: + while self.should_keep_running(): + try: + self.dispatch_events(self.event_queue) + except queue.Empty: + continue + + +class BaseObserver(EventDispatcher): + """Base observer.""" + + def __init__(self, emitter_class: type[EventEmitter], *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(timeout=timeout) + self._emitter_class = emitter_class + self._lock = threading.RLock() + self._watches: set[ObservedWatch] = set() + self._handlers: defaultdict[ObservedWatch, set[FileSystemEventHandler]] = defaultdict(set) + self._emitters: set[EventEmitter] = set() + self._emitter_for_watch: dict[ObservedWatch, EventEmitter] = {} + + def _add_emitter(self, emitter: EventEmitter) -> None: + self._emitter_for_watch[emitter.watch] = emitter + self._emitters.add(emitter) + + def _remove_emitter(self, emitter: EventEmitter) -> None: + del self._emitter_for_watch[emitter.watch] + self._emitters.remove(emitter) + emitter.stop() + with contextlib.suppress(RuntimeError): + emitter.join() + + def _clear_emitters(self) -> None: + for emitter in self._emitters: + emitter.stop() + for emitter in self._emitters: + with contextlib.suppress(RuntimeError): + emitter.join() + self._emitters.clear() + self._emitter_for_watch.clear() + + def _add_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + self._handlers[watch].add(event_handler) + + def _remove_handlers_for_watch(self, watch: ObservedWatch) -> None: + del self._handlers[watch] + + @property + def emitters(self) -> set[EventEmitter]: + """Returns event emitter created by this observer.""" + return self._emitters + + def start(self) -> None: + for emitter in self._emitters.copy(): + try: + emitter.start() + except Exception: + self._remove_emitter(emitter) + raise + super().start() + + def schedule( + self, + event_handler: FileSystemEventHandler, + path: str, + *, + recursive: bool = False, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> ObservedWatch: + """Schedules watching a path and calls appropriate methods specified + in the given event handler in response to file system events. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param path: + Directory path that will be monitored. + :type path: + ``str`` + :param recursive: + ``True`` if events will be emitted for sub-directories + traversed recursively; ``False`` otherwise. + :type recursive: + ``bool`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + :return: + An :class:`ObservedWatch` object instance representing + a watch. + """ + with self._lock: + watch = ObservedWatch(path, recursive=recursive, event_filter=event_filter) + self._add_handler_for_watch(event_handler, watch) + + # If we don't have an emitter for this watch already, create it. + if watch not in self._emitter_for_watch: + emitter = self._emitter_class(self.event_queue, watch, timeout=self.timeout, event_filter=event_filter) + if self.is_alive(): + emitter.start() + self._add_emitter(emitter) + self._watches.add(watch) + return watch + + def add_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + """Adds a handler for the given watch. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param watch: + The watch to add a handler for. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + self._add_handler_for_watch(event_handler, watch) + + def remove_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + """Removes a handler for the given watch. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param watch: + The watch to remove a handler for. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + self._handlers[watch].remove(event_handler) + + def unschedule(self, watch: ObservedWatch) -> None: + """Unschedules a watch. + + :param watch: + The watch to unschedule. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + emitter = self._emitter_for_watch[watch] + del self._handlers[watch] + self._remove_emitter(emitter) + self._watches.remove(watch) + + def unschedule_all(self) -> None: + """Unschedules all watches and detaches all associated event handlers.""" + with self._lock: + self._handlers.clear() + self._clear_emitters() + self._watches.clear() + + def on_thread_stop(self) -> None: + self.unschedule_all() + + def dispatch_events(self, event_queue: EventQueue) -> None: + entry = event_queue.get(block=True) + if entry is EventDispatcher.stop_event: + return + + event, watch = entry + + with self._lock: + # To allow unschedule/stop and safe removal of event handlers + # within event handlers itself, check if the handler is still + # registered after every dispatch. + for handler in self._handlers[watch].copy(): + if handler in self._handlers[watch]: + handler.dispatch(event) + event_queue.task_done() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents.py new file mode 100644 index 0000000000000000000000000000000000000000..257e16e7b16c39751963781c1d37fc11b22489b5 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents.py @@ -0,0 +1,339 @@ +""":module: watchdog.observers.fsevents +:synopsis: FSEvents based emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS +""" + +from __future__ import annotations + +import logging +import os +import threading +import time +import unicodedata +from typing import TYPE_CHECKING + +import _watchdog_fsevents as _fsevents + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils.dirsnapshot import DirectorySnapshot + +if TYPE_CHECKING: + from watchdog.events import FileSystemEvent, FileSystemEventHandler + from watchdog.observers.api import EventQueue, ObservedWatch + + +logger = logging.getLogger("fsevents") + + +class FSEventsEmitter(EventEmitter): + """macOS FSEvents Emitter class. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :param suppress_history: + The FSEvents API may emit historic events up to 30 sec before the watch was + started. When ``suppress_history`` is ``True``, those events will be suppressed + by creating a directory snapshot of the watched path before starting the stream + as a reference to suppress old events. Warning: This may result in significant + memory usage in case of a large number of items in the watched path. + :type timeout: + ``float`` + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + suppress_history: bool = False, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._fs_view: set[int] = set() + self.suppress_history = suppress_history + self._start_time = 0.0 + self._starting_state: DirectorySnapshot | None = None + self._lock = threading.Lock() + self._absolute_watch_path = os.path.realpath(os.path.abspath(os.path.expanduser(self.watch.path))) + + def on_thread_stop(self) -> None: + _fsevents.remove_watch(self.watch) + _fsevents.stop(self) + + def queue_event(self, event: FileSystemEvent) -> None: + # fsevents defaults to be recursive, so if the watch was meant to be non-recursive then we need to drop + # all the events here which do not have a src_path / dest_path that matches the watched path + if self._watch.is_recursive or not self._is_recursive_event(event): + logger.debug("queue_event %s", event) + EventEmitter.queue_event(self, event) + else: + logger.debug("drop event %s", event) + + def _is_recursive_event(self, event: FileSystemEvent) -> bool: + src_path = event.src_path if event.is_directory else os.path.dirname(event.src_path) + if src_path == self._absolute_watch_path: + return False + + if isinstance(event, (FileMovedEvent, DirMovedEvent)): + # when moving something into the watch path we must always take the dirname, + # otherwise we miss out on `DirMovedEvent`s + dest_path = os.path.dirname(event.dest_path) + if dest_path == self._absolute_watch_path: + return False + + return True + + def _queue_created_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(dirname)) + + def _queue_deleted_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(dirname)) + + def _queue_modified_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(src_path)) + + def _queue_renamed_event( + self, + src_event: FileSystemEvent, + src_path: bytes | str, + dst_path: bytes | str, + src_dirname: bytes | str, + dst_dirname: bytes | str, + ) -> None: + cls = DirMovedEvent if src_event.is_directory else FileMovedEvent + dst_path = self._encode_path(dst_path) + self.queue_event(cls(src_path, dst_path)) + self.queue_event(DirModifiedEvent(src_dirname)) + self.queue_event(DirModifiedEvent(dst_dirname)) + + def _is_historic_created_event(self, event: _fsevents.NativeEvent) -> bool: + # We only queue a created event if the item was created after we + # started the FSEventsStream. + + in_history = event.inode in self._fs_view + + if self._starting_state: + try: + old_inode = self._starting_state.inode(event.path)[0] + before_start = old_inode == event.inode + except KeyError: + before_start = False + else: + before_start = False + + return in_history or before_start + + @staticmethod + def _is_meta_mod(event: _fsevents.NativeEvent) -> bool: + """Returns True if the event indicates a change in metadata.""" + return event.is_inode_meta_mod or event.is_xattr_mod or event.is_owner_change + + def queue_events(self, timeout: float, events: list[_fsevents.NativeEvent]) -> None: # type: ignore[override] + if logger.getEffectiveLevel() <= logging.DEBUG: + for event in events: + flags = ", ".join(attr for attr in dir(event) if getattr(event, attr) is True) + logger.debug("%s: %s", event, flags) + + if time.monotonic() - self._start_time > 60: + # Event history is no longer needed, let's free some memory. + self._starting_state = None + + while events: + event = events.pop(0) + + src_path = self._encode_path(event.path) + src_dirname = os.path.dirname(src_path) + + try: + stat = os.stat(src_path) + except OSError: + stat = None + + exists = stat and stat.st_ino == event.inode + + # FSevents may coalesce multiple events for the same item + path into a + # single event. However, events are never coalesced for different items at + # the same path or for the same item at different paths. Therefore, the + # event chains "removed -> created" and "created -> renamed -> removed" will + # never emit a single native event and a deleted event *always* means that + # the item no longer existed at the end of the event chain. + + # Some events will have a spurious `is_created` flag set, coalesced from an + # already emitted and processed CreatedEvent. To filter those, we keep track + # of all inodes which we know to be already created. This is safer than + # keeping track of paths since paths are more likely to be reused than + # inodes. + + # Likewise, some events will have a spurious `is_modified`, + # `is_inode_meta_mod` or `is_xattr_mod` flag set. We currently do not + # suppress those but could do so if the item still exists by caching the + # stat result and verifying that it did change. + + if event.is_created and event.is_removed: + # Events will only be coalesced for the same item / inode. + # The sequence deleted -> created therefore cannot occur. + # Any combination with renamed cannot occur either. + + if not self._is_historic_created_event(event): + self._queue_created_event(event, src_path, src_dirname) + + self._fs_view.add(event.inode) + + if event.is_modified or self._is_meta_mod(event): + self._queue_modified_event(event, src_path, src_dirname) + + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + else: + if event.is_created and not self._is_historic_created_event(event): + self._queue_created_event(event, src_path, src_dirname) + + self._fs_view.add(event.inode) + + if event.is_modified or self._is_meta_mod(event): + self._queue_modified_event(event, src_path, src_dirname) + + if event.is_renamed: + # Check if we have a corresponding destination event in the watched path. + dst_event = next( + iter(e for e in events if e.is_renamed and e.inode == event.inode), + None, + ) + + if dst_event: + # Item was moved within the watched folder. + logger.debug("Destination event for rename is %s", dst_event) + + dst_path = self._encode_path(dst_event.path) + dst_dirname = os.path.dirname(dst_path) + + self._queue_renamed_event(event, src_path, dst_path, src_dirname, dst_dirname) + self._fs_view.add(event.inode) + + for sub_moved_event in generate_sub_moved_events(src_path, dst_path): + self.queue_event(sub_moved_event) + + # Process any coalesced flags for the dst_event. + + events.remove(dst_event) + + if dst_event.is_modified or self._is_meta_mod(dst_event): + self._queue_modified_event(dst_event, dst_path, dst_dirname) + + if dst_event.is_removed: + self._queue_deleted_event(dst_event, dst_path, dst_dirname) + self._fs_view.discard(dst_event.inode) + + elif exists: + # This is the destination event, item was moved into the watched + # folder. + self._queue_created_event(event, src_path, src_dirname) + self._fs_view.add(event.inode) + + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + + else: + # This is the source event, item was moved out of the watched + # folder. + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + # Skip further coalesced processing. + continue + + if event.is_removed: + # Won't occur together with renamed. + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + if event.is_root_changed: + # This will be set if root or any of its parents is renamed or deleted. + # TODO: find out new path and generate DirMovedEvent? + self.queue_event(DirDeletedEvent(self.watch.path)) + logger.debug("Stopping because root path was changed") + self.stop() + + self._fs_view.clear() + + def events_callback(self, paths: list[bytes], inodes: list[int], flags: list[int], ids: list[int]) -> None: + """Callback passed to FSEventStreamCreate(), it will receive all + FS events and queue them. + """ + cls = _fsevents.NativeEvent + try: + events = [ + cls(path, inode, event_flags, event_id) + for path, inode, event_flags, event_id in zip(paths, inodes, flags, ids) + ] + with self._lock: + self.queue_events(self.timeout, events) + except Exception: + logger.exception("Unhandled exception in fsevents callback") + + def run(self) -> None: + self.pathnames = [self.watch.path] + self._start_time = time.monotonic() + try: + _fsevents.add_watch(self, self.watch, self.events_callback, self.pathnames) + _fsevents.read_events(self) + except Exception: + logger.exception("Unhandled exception in FSEventsEmitter") + + def on_thread_start(self) -> None: + if self.suppress_history: + watch_path = os.fsdecode(self.watch.path) if isinstance(self.watch.path, bytes) else self.watch.path + self._starting_state = DirectorySnapshot(watch_path) + + def _encode_path(self, path: bytes | str) -> bytes | str: + """Encode path only if bytes were passed to this emitter.""" + return os.fsencode(path) if isinstance(self.watch.path, bytes) else path + + +class FSEventsObserver(BaseObserver): + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(FSEventsEmitter, timeout=timeout) + + def schedule( + self, + event_handler: FileSystemEventHandler, + path: str, + *, + recursive: bool = False, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> ObservedWatch: + # Fix for issue #26: Trace/BPT error when given a unicode path + # string. https://github.com/gorakhargosh/watchdog/issues#issue/26 + if isinstance(path, str): + path = unicodedata.normalize("NFC", path) + + return super().schedule(event_handler, path, recursive=recursive, event_filter=event_filter) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents2.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents2.py new file mode 100644 index 0000000000000000000000000000000000000000..3d1f7e9b1eb7dd03bd58a52aa0728f2b590aaa0a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/fsevents2.py @@ -0,0 +1,253 @@ +""":module: watchdog.observers.fsevents2 +:synopsis: FSEvents based emitter implementation. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS +""" + +from __future__ import annotations + +import logging +import os +import queue +import unicodedata +import warnings +from threading import Thread +from typing import TYPE_CHECKING + +# pyobjc +import AppKit +from FSEvents import ( + CFRunLoopGetCurrent, + CFRunLoopRun, + CFRunLoopStop, + FSEventStreamCreate, + FSEventStreamInvalidate, + FSEventStreamRelease, + FSEventStreamScheduleWithRunLoop, + FSEventStreamStart, + FSEventStreamStop, + kCFAllocatorDefault, + kCFRunLoopDefaultMode, + kFSEventStreamCreateFlagFileEvents, + kFSEventStreamCreateFlagNoDefer, + kFSEventStreamEventFlagItemChangeOwner, + kFSEventStreamEventFlagItemCreated, + kFSEventStreamEventFlagItemFinderInfoMod, + kFSEventStreamEventFlagItemInodeMetaMod, + kFSEventStreamEventFlagItemIsDir, + kFSEventStreamEventFlagItemIsSymlink, + kFSEventStreamEventFlagItemModified, + kFSEventStreamEventFlagItemRemoved, + kFSEventStreamEventFlagItemRenamed, + kFSEventStreamEventFlagItemXattrMod, + kFSEventStreamEventIdSinceNow, +) + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + FileSystemEvent, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter + +if TYPE_CHECKING: + from typing import Callable + + from watchdog.observers.api import EventQueue, ObservedWatch + +logger = logging.getLogger(__name__) + +message = "watchdog.observers.fsevents2 is deprecated and will be removed in a future release." +warnings.warn(message, category=DeprecationWarning, stacklevel=1) +logger.warning(message) + + +class FSEventsQueue(Thread): + """Low level FSEvents client.""" + + def __init__(self, path: bytes | str) -> None: + Thread.__init__(self) + self._queue: queue.Queue[list[NativeEvent] | None] = queue.Queue() + self._run_loop = None + + if isinstance(path, bytes): + path = os.fsdecode(path) + self._path = unicodedata.normalize("NFC", path) + + context = None + latency = 1.0 + self._stream_ref = FSEventStreamCreate( + kCFAllocatorDefault, + self._callback, + context, + [self._path], + kFSEventStreamEventIdSinceNow, + latency, + kFSEventStreamCreateFlagNoDefer | kFSEventStreamCreateFlagFileEvents, + ) + if self._stream_ref is None: + error = "FSEvents. Could not create stream." + raise OSError(error) + + def run(self) -> None: + pool = AppKit.NSAutoreleasePool.alloc().init() + self._run_loop = CFRunLoopGetCurrent() + FSEventStreamScheduleWithRunLoop(self._stream_ref, self._run_loop, kCFRunLoopDefaultMode) + if not FSEventStreamStart(self._stream_ref): + FSEventStreamInvalidate(self._stream_ref) + FSEventStreamRelease(self._stream_ref) + error = "FSEvents. Could not start stream." + raise OSError(error) + + CFRunLoopRun() + FSEventStreamStop(self._stream_ref) + FSEventStreamInvalidate(self._stream_ref) + FSEventStreamRelease(self._stream_ref) + del pool + # Make sure waiting thread is notified + self._queue.put(None) + + def stop(self) -> None: + if self._run_loop is not None: + CFRunLoopStop(self._run_loop) + + def _callback( + self, + stream_ref: int, + client_callback_info: Callable, + num_events: int, + event_paths: list[bytes], + event_flags: list[int], + event_ids: list[int], + ) -> None: + events = [NativeEvent(path, flags, _id) for path, flags, _id in zip(event_paths, event_flags, event_ids)] + logger.debug("FSEvents callback. Got %d events:", num_events) + for e in events: + logger.debug(e) + self._queue.put(events) + + def read_events(self) -> list[NativeEvent] | None: + """Returns a list or one or more events, or None if there are no more + events to be read. + """ + return self._queue.get() if self.is_alive() else None + + +class NativeEvent: + def __init__(self, path: bytes, flags: int, event_id: int) -> None: + self.path = path + self.flags = flags + self.event_id = event_id + self.is_created = bool(flags & kFSEventStreamEventFlagItemCreated) + self.is_removed = bool(flags & kFSEventStreamEventFlagItemRemoved) + self.is_renamed = bool(flags & kFSEventStreamEventFlagItemRenamed) + self.is_modified = bool(flags & kFSEventStreamEventFlagItemModified) + self.is_change_owner = bool(flags & kFSEventStreamEventFlagItemChangeOwner) + self.is_inode_meta_mod = bool(flags & kFSEventStreamEventFlagItemInodeMetaMod) + self.is_finder_info_mod = bool(flags & kFSEventStreamEventFlagItemFinderInfoMod) + self.is_xattr_mod = bool(flags & kFSEventStreamEventFlagItemXattrMod) + self.is_symlink = bool(flags & kFSEventStreamEventFlagItemIsSymlink) + self.is_directory = bool(flags & kFSEventStreamEventFlagItemIsDir) + + @property + def _event_type(self) -> str: + if self.is_created: + return "Created" + if self.is_removed: + return "Removed" + if self.is_renamed: + return "Renamed" + if self.is_modified: + return "Modified" + if self.is_inode_meta_mod: + return "InodeMetaMod" + if self.is_xattr_mod: + return "XattrMod" + return "Unknown" + + def __repr__(self) -> str: + return ( + f"<{type(self).__name__}: path={self.path!r}, type={self._event_type}," + f" is_dir={self.is_directory}, flags={hex(self.flags)}, id={self.event_id}>" + ) + + +class FSEventsEmitter(EventEmitter): + """FSEvents based event emitter. Handles conversion of native events.""" + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ): + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._fsevents = FSEventsQueue(watch.path) + self._fsevents.start() + + def on_thread_stop(self) -> None: + self._fsevents.stop() + + def queue_events(self, timeout: float) -> None: + events = self._fsevents.read_events() + if events is None: + return + i = 0 + while i < len(events): + event = events[i] + + cls: type[FileSystemEvent] + # For some reason the create and remove flags are sometimes also + # set for rename and modify type events, so let those take + # precedence. + if event.is_renamed: + # Internal moves appears to always be consecutive in the same + # buffer and have IDs differ by exactly one (while others + # don't) making it possible to pair up the two events coming + # from a single move operation. (None of this is documented!) + # Otherwise, guess whether file was moved in or out. + # TODO: handle id wrapping + if i + 1 < len(events) and events[i + 1].is_renamed and events[i + 1].event_id == event.event_id + 1: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls(event.path, events[i + 1].path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + self.queue_event(DirModifiedEvent(os.path.dirname(events[i + 1].path))) + i += 1 + elif os.path.exists(event.path): + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + else: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + # TODO: generate events for tree + + elif event.is_modified or event.is_inode_meta_mod or event.is_xattr_mod: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(event.path)) + + elif event.is_created: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + + elif event.is_removed: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + i += 1 + + +class FSEventsObserver2(BaseObserver): + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(FSEventsEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify.py new file mode 100644 index 0000000000000000000000000000000000000000..a07aee5cf4451d28e74f940a7f4fe72f02b72b9c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify.py @@ -0,0 +1,252 @@ +""":module: watchdog.observers.inotify +:synopsis: ``inotify(7)`` based emitter implementation. +:author: Sebastien Martini +:author: Luke McCarthy +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: Tim Cuthbertson +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: Linux 2.6.13+. + +.. ADMONITION:: About system requirements + + Recommended minimum kernel version: 2.6.25. + + Quote from the inotify(7) man page: + + "Inotify was merged into the 2.6.13 Linux kernel. The required library + interfaces were added to glibc in version 2.4. (IN_DONT_FOLLOW, + IN_MASK_ADD, and IN_ONLYDIR were only added in version 2.5.)" + + Therefore, you must ensure the system is running at least these versions + appropriate libraries and the kernel. + +.. ADMONITION:: About recursiveness, event order, and event coalescing + + Quote from the inotify(7) man page: + + If successive output inotify events produced on the inotify file + descriptor are identical (same wd, mask, cookie, and name) then they + are coalesced into a single event if the older event has not yet been + read (but see BUGS). + + The events returned by reading from an inotify file descriptor form + an ordered queue. Thus, for example, it is guaranteed that when + renaming from one directory to another, events will be produced in + the correct order on the inotify file descriptor. + + ... + + Inotify monitoring of directories is not recursive: to monitor + subdirectories under a directory, additional watches must be created. + + This emitter implementation therefore automatically adds watches for + sub-directories if running in recursive mode. + +Some extremely useful articles and documentation: + +.. _inotify FAQ: http://inotify.aiken.cz/?section=inotify&page=faq&lang=en +.. _intro to inotify: http://www.linuxjournal.com/article/8478 + +""" + +from __future__ import annotations + +import logging +import os +import threading +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileClosedEvent, + FileClosedNoWriteEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + FileOpenedEvent, + FileSystemEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.observers.inotify_buffer import InotifyBuffer +from watchdog.observers.inotify_c import InotifyConstants + +if TYPE_CHECKING: + from watchdog.observers.api import EventQueue, ObservedWatch + +logger = logging.getLogger(__name__) + + +class InotifyEmitter(EventEmitter): + """inotify(7)-based event emitter. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._lock = threading.Lock() + self._inotify: InotifyBuffer | None = None + + def on_thread_start(self) -> None: + path = os.fsencode(self.watch.path) + event_mask = self.get_event_mask_from_filter() + self._inotify = InotifyBuffer(path, recursive=self.watch.is_recursive, event_mask=event_mask) + + def on_thread_stop(self) -> None: + if self._inotify: + self._inotify.close() + self._inotify = None + + def queue_events(self, timeout: float, *, full_events: bool = False) -> None: + # If "full_events" is true, then the method will report unmatched move events as separate events + # This behavior is by default only called by a InotifyFullEmitter + if self._inotify is None: + logger.error("InotifyEmitter.queue_events() called when the thread is inactive") + return + with self._lock: + if self._inotify is None: + logger.error("InotifyEmitter.queue_events() called when the thread is inactive") + return + event = self._inotify.read_event() + if event is None: + return + + cls: type[FileSystemEvent] + if isinstance(event, tuple): + move_from, move_to = event + src_path = self._decode_path(move_from.src_path) + dest_path = self._decode_path(move_to.src_path) + cls = DirMovedEvent if move_from.is_directory else FileMovedEvent + self.queue_event(cls(src_path, dest_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + self.queue_event(DirModifiedEvent(os.path.dirname(dest_path))) + if move_from.is_directory and self.watch.is_recursive: + for sub_moved_event in generate_sub_moved_events(src_path, dest_path): + self.queue_event(sub_moved_event) + return + + src_path = self._decode_path(event.src_path) + if event.is_moved_to: + if full_events: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls("", src_path)) + else: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + if event.is_directory and self.watch.is_recursive: + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + elif event.is_attrib or event.is_modify: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(src_path)) + elif event.is_delete or (event.is_moved_from and not full_events): + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_moved_from and full_events: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls(src_path, "")) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_create: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_delete_self and src_path == self.watch.path: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.stop() + elif not event.is_directory: + if event.is_open: + cls = FileOpenedEvent + self.queue_event(cls(src_path)) + elif event.is_close_write: + cls = FileClosedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_close_nowrite: + cls = FileClosedNoWriteEvent + self.queue_event(cls(src_path)) + + def _decode_path(self, path: bytes | str) -> bytes | str: + """Decode path only if unicode string was passed to this emitter.""" + return path if isinstance(self.watch.path, bytes) else os.fsdecode(path) + + def get_event_mask_from_filter(self) -> int | None: + """Optimization: Only include events we are filtering in inotify call.""" + if self._event_filter is None: + return None + + # Always listen to delete self + event_mask = InotifyConstants.IN_DELETE_SELF + + for cls in self._event_filter: + if cls in {DirMovedEvent, FileMovedEvent}: + event_mask |= InotifyConstants.IN_MOVE + elif cls in {DirCreatedEvent, FileCreatedEvent}: + event_mask |= InotifyConstants.IN_MOVE | InotifyConstants.IN_CREATE + elif cls is DirModifiedEvent: + event_mask |= ( + InotifyConstants.IN_MOVE + | InotifyConstants.IN_ATTRIB + | InotifyConstants.IN_MODIFY + | InotifyConstants.IN_CREATE + | InotifyConstants.IN_CLOSE_WRITE + ) + elif cls is FileModifiedEvent: + event_mask |= InotifyConstants.IN_ATTRIB | InotifyConstants.IN_MODIFY + elif cls in {DirDeletedEvent, FileDeletedEvent}: + event_mask |= InotifyConstants.IN_DELETE + elif cls is FileClosedEvent: + event_mask |= InotifyConstants.IN_CLOSE_WRITE + elif cls is FileClosedNoWriteEvent: + event_mask |= InotifyConstants.IN_CLOSE_NOWRITE + elif cls is FileOpenedEvent: + event_mask |= InotifyConstants.IN_OPEN + + return event_mask + + +class InotifyFullEmitter(InotifyEmitter): + """inotify(7)-based event emitter. By default this class produces move events even if they are not matched + Such move events will have a ``None`` value for the unmatched part. + """ + + def queue_events(self, timeout: float, *, events: bool = True) -> None: # type: ignore[override] + super().queue_events(timeout, full_events=events) + + +class InotifyObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT, generate_full_events: bool = False) -> None: + cls = InotifyFullEmitter if generate_full_events else InotifyEmitter + super().__init__(cls, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_buffer.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_buffer.py new file mode 100644 index 0000000000000000000000000000000000000000..f542974a041ef5d27ea9c6cd4113a8827dfb68bd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_buffer.py @@ -0,0 +1,102 @@ +""":module: watchdog.observers.inotify_buffer +:synopsis: A wrapper for ``Inotify``. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: linux +""" + +from __future__ import annotations + +import logging + +from watchdog.observers.inotify_c import Inotify, InotifyEvent +from watchdog.utils import BaseThread +from watchdog.utils.delayed_queue import DelayedQueue + +logger = logging.getLogger(__name__) + + +class InotifyBuffer(BaseThread): + """A wrapper for `Inotify` that holds events for `delay` seconds. During + this time, IN_MOVED_FROM and IN_MOVED_TO events are paired. + """ + + delay = 0.5 + + def __init__(self, path: bytes, *, recursive: bool = False, event_mask: int | None = None) -> None: + super().__init__() + # XXX: Remove quotes after Python 3.9 drop + self._queue = DelayedQueue["InotifyEvent | tuple[InotifyEvent, InotifyEvent]"](self.delay) + self._inotify = Inotify(path, recursive=recursive, event_mask=event_mask) + self.start() + + def read_event(self) -> InotifyEvent | tuple[InotifyEvent, InotifyEvent] | None: + """Returns a single event or a tuple of from/to events in case of a + paired move event. If this buffer has been closed, immediately return + None. + """ + return self._queue.get() + + def on_thread_stop(self) -> None: + self._inotify.close() + self._queue.close() + + def close(self) -> None: + self.stop() + self.join() + + def _group_events(self, event_list: list[InotifyEvent]) -> list[InotifyEvent | tuple[InotifyEvent, InotifyEvent]]: + """Group any matching move events""" + grouped: list[InotifyEvent | tuple[InotifyEvent, InotifyEvent]] = [] + for inotify_event in event_list: + logger.debug("in-event %s", inotify_event) + + def matching_from_event(event: InotifyEvent | tuple[InotifyEvent, InotifyEvent]) -> bool: + return not isinstance(event, tuple) and event.is_moved_from and event.cookie == inotify_event.cookie + + if inotify_event.is_moved_to: + # Check if move_from is already in the buffer + for index, event in enumerate(grouped): + if matching_from_event(event): + grouped[index] = (event, inotify_event) # type: ignore[assignment] + break + else: + # Check if move_from is in delayqueue already + from_event = self._queue.remove(matching_from_event) + if from_event is not None: + grouped.append((from_event, inotify_event)) # type: ignore[arg-type] + else: + logger.debug("could not find matching move_from event") + grouped.append(inotify_event) + else: + grouped.append(inotify_event) + return grouped + + def run(self) -> None: + """Read event from `inotify` and add them to `queue`. When reading a + IN_MOVE_TO event, remove the previous added matching IN_MOVE_FROM event + and add them back to the queue as a tuple. + """ + deleted_self = False + while self.should_keep_running() and not deleted_self: + inotify_events = self._inotify.read_events() + grouped_events = self._group_events(inotify_events) + for inotify_event in grouped_events: + if not isinstance(inotify_event, tuple) and inotify_event.is_ignored: + if inotify_event.src_path == self._inotify.path: + # Watch was removed explicitly (inotify_rm_watch(2)) or automatically (file + # was deleted, or filesystem was unmounted), stop watching for events + deleted_self = True + continue + + # Only add delay for unmatched move_from events + delay = not isinstance(inotify_event, tuple) and inotify_event.is_moved_from + self._queue.put(inotify_event, delay=delay) + + if ( + not isinstance(inotify_event, tuple) + and inotify_event.is_delete_self + and inotify_event.src_path == self._inotify.path + ): + # Deleted the watched directory, stop watching for events + deleted_self = True diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_c.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_c.py new file mode 100644 index 0000000000000000000000000000000000000000..33cbd25dda6eaf205c541e56cedf9ddf8d62cc4c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/inotify_c.py @@ -0,0 +1,605 @@ +from __future__ import annotations + +import contextlib +import ctypes +import ctypes.util +import errno +import os +import select +import struct +import threading +from ctypes import c_char_p, c_int, c_uint32 +from functools import reduce +from typing import TYPE_CHECKING + +from watchdog.utils import UnsupportedLibcError + +if TYPE_CHECKING: + from collections.abc import Generator + +libc = ctypes.CDLL(None) + +if not hasattr(libc, "inotify_init") or not hasattr(libc, "inotify_add_watch") or not hasattr(libc, "inotify_rm_watch"): + error = f"Unsupported libc version found: {libc._name}" # noqa:SLF001 + raise UnsupportedLibcError(error) + +inotify_add_watch = ctypes.CFUNCTYPE(c_int, c_int, c_char_p, c_uint32, use_errno=True)(("inotify_add_watch", libc)) + +inotify_rm_watch = ctypes.CFUNCTYPE(c_int, c_int, c_uint32, use_errno=True)(("inotify_rm_watch", libc)) + +inotify_init = ctypes.CFUNCTYPE(c_int, use_errno=True)(("inotify_init", libc)) + + +class InotifyConstants: + # User-space events + IN_ACCESS = 0x00000001 # File was accessed. + IN_MODIFY = 0x00000002 # File was modified. + IN_ATTRIB = 0x00000004 # Meta-data changed. + IN_CLOSE_WRITE = 0x00000008 # Writable file was closed. + IN_CLOSE_NOWRITE = 0x00000010 # Unwritable file closed. + IN_OPEN = 0x00000020 # File was opened. + IN_MOVED_FROM = 0x00000040 # File was moved from X. + IN_MOVED_TO = 0x00000080 # File was moved to Y. + IN_CREATE = 0x00000100 # Subfile was created. + IN_DELETE = 0x00000200 # Subfile was deleted. + IN_DELETE_SELF = 0x00000400 # Self was deleted. + IN_MOVE_SELF = 0x00000800 # Self was moved. + + # Helper user-space events. + IN_MOVE = IN_MOVED_FROM | IN_MOVED_TO # Moves. + + # Events sent by the kernel to a watch. + IN_UNMOUNT = 0x00002000 # Backing file system was unmounted. + IN_Q_OVERFLOW = 0x00004000 # Event queued overflowed. + IN_IGNORED = 0x00008000 # File was ignored. + + # Special flags. + IN_ONLYDIR = 0x01000000 # Only watch the path if it's a directory. + IN_DONT_FOLLOW = 0x02000000 # Do not follow a symbolic link. + IN_EXCL_UNLINK = 0x04000000 # Exclude events on unlinked objects + IN_MASK_ADD = 0x20000000 # Add to the mask of an existing watch. + IN_ISDIR = 0x40000000 # Event occurred against directory. + IN_ONESHOT = 0x80000000 # Only send event once. + + # All user-space events. + IN_ALL_EVENTS = reduce( + lambda x, y: x | y, + [ + IN_ACCESS, + IN_MODIFY, + IN_ATTRIB, + IN_CLOSE_WRITE, + IN_CLOSE_NOWRITE, + IN_OPEN, + IN_MOVED_FROM, + IN_MOVED_TO, + IN_DELETE, + IN_CREATE, + IN_DELETE_SELF, + IN_MOVE_SELF, + ], + ) + + # Flags for ``inotify_init1`` + IN_CLOEXEC = 0x02000000 + IN_NONBLOCK = 0x00004000 + + +# Watchdog's API cares only about these events. +WATCHDOG_ALL_EVENTS = reduce( + lambda x, y: x | y, + [ + InotifyConstants.IN_MODIFY, + InotifyConstants.IN_ATTRIB, + InotifyConstants.IN_MOVED_FROM, + InotifyConstants.IN_MOVED_TO, + InotifyConstants.IN_CREATE, + InotifyConstants.IN_DELETE, + InotifyConstants.IN_DELETE_SELF, + InotifyConstants.IN_DONT_FOLLOW, + InotifyConstants.IN_CLOSE_WRITE, + InotifyConstants.IN_CLOSE_NOWRITE, + InotifyConstants.IN_OPEN, + ], +) + + +class InotifyEventStruct(ctypes.Structure): + """Structure representation of the inotify_event structure + (used in buffer size calculations):: + + struct inotify_event { + __s32 wd; /* watch descriptor */ + __u32 mask; /* watch mask */ + __u32 cookie; /* cookie to synchronize two events */ + __u32 len; /* length (including nulls) of name */ + char name[0]; /* stub for possible name */ + }; + """ + + _fields_ = ( + ("wd", c_int), + ("mask", c_uint32), + ("cookie", c_uint32), + ("len", c_uint32), + ("name", c_char_p), + ) + + +EVENT_SIZE = ctypes.sizeof(InotifyEventStruct) +DEFAULT_NUM_EVENTS = 2048 +DEFAULT_EVENT_BUFFER_SIZE = DEFAULT_NUM_EVENTS * (EVENT_SIZE + 16) + + +class Inotify: + """Linux inotify(7) API wrapper class. + + :param path: + The directory path for which we want an inotify object. + :type path: + :class:`bytes` + :param recursive: + ``True`` if subdirectories should be monitored; ``False`` otherwise. + """ + + def __init__(self, path: bytes, *, recursive: bool = False, event_mask: int | None = None) -> None: + # The file descriptor associated with the inotify instance. + inotify_fd = inotify_init() + if inotify_fd == -1: + Inotify._raise_error() + self._inotify_fd = inotify_fd + self._lock = threading.Lock() + self._closed = False + self._is_reading = True + self._kill_r, self._kill_w = os.pipe() + + # _check_inotify_fd will return true if we can read _inotify_fd without blocking + if hasattr(select, "poll"): + self._poller = select.poll() + self._poller.register(self._inotify_fd, select.POLLIN) + self._poller.register(self._kill_r, select.POLLIN) + + def do_poll() -> bool: + return any(fd == self._inotify_fd for fd, _ in self._poller.poll()) + + self._check_inotify_fd = do_poll + else: + + def do_select() -> bool: + result = select.select([self._inotify_fd, self._kill_r], [], []) + return self._inotify_fd in result[0] + + self._check_inotify_fd = do_select + + # Stores the watch descriptor for a given path. + self._wd_for_path: dict[bytes, int] = {} + self._path_for_wd: dict[int, bytes] = {} + + self._path = path + # Default to all events + if event_mask is None: + event_mask = WATCHDOG_ALL_EVENTS + self._event_mask = event_mask + self._is_recursive = recursive + if os.path.isdir(path): + self._add_dir_watch(path, event_mask, recursive=recursive) + else: + self._add_watch(path, event_mask) + self._moved_from_events: dict[int, InotifyEvent] = {} + + @property + def event_mask(self) -> int: + """The event mask for this inotify instance.""" + return self._event_mask + + @property + def path(self) -> bytes: + """The path associated with the inotify instance.""" + return self._path + + @property + def is_recursive(self) -> bool: + """Whether we are watching directories recursively.""" + return self._is_recursive + + @property + def fd(self) -> int: + """The file descriptor associated with the inotify instance.""" + return self._inotify_fd + + def clear_move_records(self) -> None: + """Clear cached records of MOVED_FROM events""" + self._moved_from_events = {} + + def source_for_move(self, destination_event: InotifyEvent) -> bytes | None: + """The source path corresponding to the given MOVED_TO event. + + If the source path is outside the monitored directories, None + is returned instead. + """ + if destination_event.cookie in self._moved_from_events: + return self._moved_from_events[destination_event.cookie].src_path + + return None + + def remember_move_from_event(self, event: InotifyEvent) -> None: + """Save this event as the source event for future MOVED_TO events to + reference. + """ + self._moved_from_events[event.cookie] = event + + def add_watch(self, path: bytes) -> None: + """Adds a watch for the given path. + + :param path: + Path to begin monitoring. + """ + with self._lock: + self._add_watch(path, self._event_mask) + + def remove_watch(self, path: bytes) -> None: + """Removes a watch for the given path. + + :param path: + Path string for which the watch will be removed. + """ + with self._lock: + wd = self._wd_for_path.pop(path) + del self._path_for_wd[wd] + if inotify_rm_watch(self._inotify_fd, wd) == -1: + Inotify._raise_error() + + def close(self) -> None: + """Closes the inotify instance and removes all associated watches.""" + with self._lock: + if not self._closed: + self._closed = True + + if self._path in self._wd_for_path: + wd = self._wd_for_path[self._path] + inotify_rm_watch(self._inotify_fd, wd) + + if self._is_reading: + # inotify_rm_watch() should write data to _inotify_fd and wake + # the thread, but writing to the kill channel will gaurentee this + os.write(self._kill_w, b"!") + else: + self._close_resources() + + def read_events(self, *, event_buffer_size: int = DEFAULT_EVENT_BUFFER_SIZE) -> list[InotifyEvent]: + """Reads events from inotify and yields them.""" + # HACK: We need to traverse the directory path + # recursively and simulate events for newly + # created subdirectories/files. This will handle + # mkdir -p foobar/blah/bar; touch foobar/afile + + def _recursive_simulate(src_path: bytes) -> list[InotifyEvent]: + events = [] + for root, dirnames, filenames in os.walk(src_path): + for dirname in dirnames: + with contextlib.suppress(OSError): + full_path = os.path.join(root, dirname) + wd_dir = self._add_watch(full_path, self._event_mask) + e = InotifyEvent( + wd_dir, + InotifyConstants.IN_CREATE | InotifyConstants.IN_ISDIR, + 0, + dirname, + full_path, + ) + events.append(e) + for filename in filenames: + full_path = os.path.join(root, filename) + wd_parent_dir = self._wd_for_path[os.path.dirname(full_path)] + e = InotifyEvent( + wd_parent_dir, + InotifyConstants.IN_CREATE, + 0, + filename, + full_path, + ) + events.append(e) + return events + + event_buffer = b"" + while True: + try: + with self._lock: + if self._closed: + return [] + + self._is_reading = True + + if self._check_inotify_fd(): + event_buffer = os.read(self._inotify_fd, event_buffer_size) + + with self._lock: + self._is_reading = False + + if self._closed: + self._close_resources() + return [] + except OSError as e: + if e.errno == errno.EINTR: + continue + + if e.errno == errno.EBADF: + return [] + + raise + break + + with self._lock: + event_list = [] + for wd, mask, cookie, name in Inotify._parse_event_buffer(event_buffer): + if wd == -1: + continue + wd_path = self._path_for_wd[wd] + src_path = os.path.join(wd_path, name) if name else wd_path # avoid trailing slash + inotify_event = InotifyEvent(wd, mask, cookie, name, src_path) + + if inotify_event.is_moved_from: + self.remember_move_from_event(inotify_event) + elif inotify_event.is_moved_to: + move_src_path = self.source_for_move(inotify_event) + if move_src_path in self._wd_for_path: + moved_wd = self._wd_for_path[move_src_path] + del self._wd_for_path[move_src_path] + self._wd_for_path[inotify_event.src_path] = moved_wd + self._path_for_wd[moved_wd] = inotify_event.src_path + if self.is_recursive: + for _path in self._wd_for_path.copy(): + if _path.startswith(move_src_path + os.path.sep.encode()): + moved_wd = self._wd_for_path.pop(_path) + _move_to_path = _path.replace(move_src_path, inotify_event.src_path) + self._wd_for_path[_move_to_path] = moved_wd + self._path_for_wd[moved_wd] = _move_to_path + src_path = os.path.join(wd_path, name) + inotify_event = InotifyEvent(wd, mask, cookie, name, src_path) + + if inotify_event.is_ignored: + # Clean up book-keeping for deleted watches. + path = self._path_for_wd.pop(wd) + if self._wd_for_path[path] == wd: + del self._wd_for_path[path] + + event_list.append(inotify_event) + + if self.is_recursive and inotify_event.is_directory and inotify_event.is_create: + # TODO: When a directory from another part of the + # filesystem is moved into a watched directory, this + # will not generate events for the directory tree. + # We need to coalesce IN_MOVED_TO events and those + # IN_MOVED_TO events which don't pair up with + # IN_MOVED_FROM events should be marked IN_CREATE + # instead relative to this directory. + try: + self._add_watch(src_path, self._event_mask) + except OSError: + continue + + event_list.extend(_recursive_simulate(src_path)) + + return event_list + + def _close_resources(self) -> None: + os.close(self._inotify_fd) + os.close(self._kill_r) + os.close(self._kill_w) + + # Non-synchronized methods. + def _add_dir_watch(self, path: bytes, mask: int, *, recursive: bool) -> None: + """Adds a watch (optionally recursively) for the given directory path + to monitor events specified by the mask. + + :param path: + Path to monitor + :param recursive: + ``True`` to monitor recursively. + :param mask: + Event bit mask. + """ + if not os.path.isdir(path): + raise OSError(errno.ENOTDIR, os.strerror(errno.ENOTDIR), path) + self._add_watch(path, mask) + if recursive: + for root, dirnames, _ in os.walk(path): + for dirname in dirnames: + full_path = os.path.join(root, dirname) + if os.path.islink(full_path): + continue + self._add_watch(full_path, mask) + + def _add_watch(self, path: bytes, mask: int) -> int: + """Adds a watch for the given path to monitor events specified by the + mask. + + :param path: + Path to monitor + :param mask: + Event bit mask. + """ + wd = inotify_add_watch(self._inotify_fd, path, mask) + if wd == -1: + Inotify._raise_error() + self._wd_for_path[path] = wd + self._path_for_wd[wd] = path + return wd + + @staticmethod + def _raise_error() -> None: + """Raises errors for inotify failures.""" + err = ctypes.get_errno() + + if err == errno.ENOSPC: + raise OSError(errno.ENOSPC, "inotify watch limit reached") + + if err == errno.EMFILE: + raise OSError(errno.EMFILE, "inotify instance limit reached") + + if err != errno.EACCES: + raise OSError(err, os.strerror(err)) + + @staticmethod + def _parse_event_buffer(event_buffer: bytes) -> Generator[tuple[int, int, int, bytes]]: + """Parses an event buffer of ``inotify_event`` structs returned by + inotify:: + + struct inotify_event { + __s32 wd; /* watch descriptor */ + __u32 mask; /* watch mask */ + __u32 cookie; /* cookie to synchronize two events */ + __u32 len; /* length (including nulls) of name */ + char name[0]; /* stub for possible name */ + }; + + The ``cookie`` member of this struct is used to pair two related + events, for example, it pairs an IN_MOVED_FROM event with an + IN_MOVED_TO event. + """ + i = 0 + while i + 16 <= len(event_buffer): + wd, mask, cookie, length = struct.unpack_from("iIII", event_buffer, i) + name = event_buffer[i + 16 : i + 16 + length].rstrip(b"\0") + i += 16 + length + yield wd, mask, cookie, name + + +class InotifyEvent: + """Inotify event struct wrapper. + + :param wd: + Watch descriptor + :param mask: + Event mask + :param cookie: + Event cookie + :param name: + Base name of the event source path. + :param src_path: + Full event source path. + """ + + def __init__(self, wd: int, mask: int, cookie: int, name: bytes, src_path: bytes) -> None: + self._wd = wd + self._mask = mask + self._cookie = cookie + self._name = name + self._src_path = src_path + + @property + def src_path(self) -> bytes: + return self._src_path + + @property + def wd(self) -> int: + return self._wd + + @property + def mask(self) -> int: + return self._mask + + @property + def cookie(self) -> int: + return self._cookie + + @property + def name(self) -> bytes: + return self._name + + @property + def is_modify(self) -> bool: + return self._mask & InotifyConstants.IN_MODIFY > 0 + + @property + def is_close_write(self) -> bool: + return self._mask & InotifyConstants.IN_CLOSE_WRITE > 0 + + @property + def is_close_nowrite(self) -> bool: + return self._mask & InotifyConstants.IN_CLOSE_NOWRITE > 0 + + @property + def is_open(self) -> bool: + return self._mask & InotifyConstants.IN_OPEN > 0 + + @property + def is_access(self) -> bool: + return self._mask & InotifyConstants.IN_ACCESS > 0 + + @property + def is_delete(self) -> bool: + return self._mask & InotifyConstants.IN_DELETE > 0 + + @property + def is_delete_self(self) -> bool: + return self._mask & InotifyConstants.IN_DELETE_SELF > 0 + + @property + def is_create(self) -> bool: + return self._mask & InotifyConstants.IN_CREATE > 0 + + @property + def is_moved_from(self) -> bool: + return self._mask & InotifyConstants.IN_MOVED_FROM > 0 + + @property + def is_moved_to(self) -> bool: + return self._mask & InotifyConstants.IN_MOVED_TO > 0 + + @property + def is_move(self) -> bool: + return self._mask & InotifyConstants.IN_MOVE > 0 + + @property + def is_move_self(self) -> bool: + return self._mask & InotifyConstants.IN_MOVE_SELF > 0 + + @property + def is_attrib(self) -> bool: + return self._mask & InotifyConstants.IN_ATTRIB > 0 + + @property + def is_ignored(self) -> bool: + return self._mask & InotifyConstants.IN_IGNORED > 0 + + @property + def is_directory(self) -> bool: + # It looks like the kernel does not provide this information for + # IN_DELETE_SELF and IN_MOVE_SELF. In this case, assume it's a dir. + # See also: https://github.com/seb-m/pyinotify/blob/2c7e8f8/python2/pyinotify.py#L897 + return self.is_delete_self or self.is_move_self or self._mask & InotifyConstants.IN_ISDIR > 0 + + @property + def key(self) -> tuple[bytes, int, int, int, bytes]: + return self._src_path, self._wd, self._mask, self._cookie, self._name + + def __eq__(self, inotify_event: object) -> bool: + if not isinstance(inotify_event, InotifyEvent): + return NotImplemented + return self.key == inotify_event.key + + def __ne__(self, inotify_event: object) -> bool: + if not isinstance(inotify_event, InotifyEvent): + return NotImplemented + return self.key != inotify_event.key + + def __hash__(self) -> int: + return hash(self.key) + + @staticmethod + def _get_mask_string(mask: int) -> str: + masks = [] + for c in dir(InotifyConstants): + if c.startswith("IN_") and c not in {"IN_ALL_EVENTS", "IN_MOVE"}: + c_val = getattr(InotifyConstants, c) + if mask & c_val: + masks.append(c) + return "|".join(masks) + + def __repr__(self) -> str: + return ( + f"<{type(self).__name__}: src_path={self.src_path!r}, wd={self.wd}," + f" mask={self._get_mask_string(self.mask)}, cookie={self.cookie}," + f" name={os.fsdecode(self.name)!r}>" + ) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/kqueue.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/kqueue.py new file mode 100644 index 0000000000000000000000000000000000000000..2f9d0c6ffa3c3fda21803bbf38ea853e75a12332 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/kqueue.py @@ -0,0 +1,655 @@ +""":module: watchdog.observers.kqueue +:synopsis: ``kqueue(2)`` based emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS and BSD with kqueue(2). + +.. WARNING:: kqueue is a very heavyweight way to monitor file systems. + Each kqueue-detected directory modification triggers + a full directory scan. Traversing the entire directory tree + and opening file descriptors for all files will create + performance problems. We need to find a way to re-scan + only those directories which report changes and do a diff + between two sub-DirectorySnapshots perhaps. + +.. ADMONITION:: About OS X performance guidelines + + Quote from the `macOS File System Performance Guidelines`_: + + "When you only want to track changes on a file or directory, be sure to + open it using the ``O_EVTONLY`` flag. This flag prevents the file or + directory from being marked as open or in use. This is important + if you are tracking files on a removable volume and the user tries to + unmount the volume. With this flag in place, the system knows it can + dismiss the volume. If you had opened the files or directories without + this flag, the volume would be marked as busy and would not be + unmounted." + + ``O_EVTONLY`` is defined as ``0x8000`` in the OS X header files. + More information here: http://www.mlsite.net/blog/?p=2312 + +Classes +------- +.. autoclass:: KqueueEmitter + :members: + :show-inheritance: + +Collections and Utility Classes +------------------------------- +.. autoclass:: KeventDescriptor + :members: + :show-inheritance: + +.. autoclass:: KeventDescriptorSet + :members: + :show-inheritance: + +.. _macOS File System Performance Guidelines: + http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/FileSystem/Articles/TrackingChanges.html#//apple_ref/doc/uid/20001993-CJBJFIDD + +""" + + +# The `select` module varies between platforms. +# mypy may complain about missing module attributes depending on which platform it's running on. +# The comment below disables mypy's attribute check. +# mypy: disable-error-code="attr-defined, name-defined" + +from __future__ import annotations + +import contextlib +import errno +import os +import os.path +import select +import threading +from stat import S_ISDIR +from typing import TYPE_CHECKING + +from watchdog.events import ( + EVENT_TYPE_CREATED, + EVENT_TYPE_DELETED, + EVENT_TYPE_MOVED, + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils import platform +from watchdog.utils.dirsnapshot import DirectorySnapshot + +if TYPE_CHECKING: + from collections.abc import Generator + from typing import Callable + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + +# Maximum number of events to process. +MAX_EVENTS = 4096 + +# O_EVTONLY value from the header files for OS X only. +O_EVTONLY = 0x8000 + +# Pre-calculated values for the kevent filter, flags, and fflags attributes. +WATCHDOG_OS_OPEN_FLAGS = O_EVTONLY if platform.is_darwin() else os.O_RDONLY | os.O_NONBLOCK +WATCHDOG_KQ_FILTER = select.KQ_FILTER_VNODE +WATCHDOG_KQ_EV_FLAGS = select.KQ_EV_ADD | select.KQ_EV_ENABLE | select.KQ_EV_CLEAR +WATCHDOG_KQ_FFLAGS = ( + select.KQ_NOTE_DELETE + | select.KQ_NOTE_WRITE + | select.KQ_NOTE_EXTEND + | select.KQ_NOTE_ATTRIB + | select.KQ_NOTE_LINK + | select.KQ_NOTE_RENAME + | select.KQ_NOTE_REVOKE +) + + +def absolute_path(path: bytes | str) -> bytes | str: + return os.path.abspath(os.path.normpath(path)) + + +# Flag tests. + + +def is_deleted(kev: select.kevent) -> bool: + """Determines whether the given kevent represents deletion.""" + return kev.fflags & select.KQ_NOTE_DELETE > 0 + + +def is_modified(kev: select.kevent) -> bool: + """Determines whether the given kevent represents modification.""" + fflags = kev.fflags + return (fflags & select.KQ_NOTE_EXTEND > 0) or (fflags & select.KQ_NOTE_WRITE > 0) + + +def is_attrib_modified(kev: select.kevent) -> bool: + """Determines whether the given kevent represents attribute modification.""" + return kev.fflags & select.KQ_NOTE_ATTRIB > 0 + + +def is_renamed(kev: select.kevent) -> bool: + """Determines whether the given kevent represents movement.""" + return kev.fflags & select.KQ_NOTE_RENAME > 0 + + +class KeventDescriptorSet: + """Thread-safe kevent descriptor collection.""" + + def __init__(self) -> None: + self._descriptors: set[KeventDescriptor] = set() + self._descriptor_for_path: dict[bytes | str, KeventDescriptor] = {} + self._descriptor_for_fd: dict[int, KeventDescriptor] = {} + self._kevents: list[select.kevent] = [] + self._lock = threading.Lock() + + @property + def kevents(self) -> list[select.kevent]: + """List of kevents monitored.""" + with self._lock: + return self._kevents + + @property + def paths(self) -> list[bytes | str]: + """List of paths for which kevents have been created.""" + with self._lock: + return list(self._descriptor_for_path.keys()) + + def get_for_fd(self, fd: int) -> KeventDescriptor: + """Given a file descriptor, returns the kevent descriptor object + for it. + + :param fd: + OS file descriptor. + :type fd: + ``int`` + :returns: + A :class:`KeventDescriptor` object. + """ + with self._lock: + return self._descriptor_for_fd[fd] + + def get(self, path: bytes | str) -> KeventDescriptor: + """Obtains a :class:`KeventDescriptor` object for the specified path. + + :param path: + Path for which the descriptor will be obtained. + """ + with self._lock: + path = absolute_path(path) + return self._get(path) + + def __contains__(self, path: bytes | str) -> bool: + """Determines whether a :class:`KeventDescriptor has been registered + for the specified path. + + :param path: + Path for which the descriptor will be obtained. + """ + with self._lock: + path = absolute_path(path) + return self._has_path(path) + + def add(self, path: bytes | str, *, is_directory: bool) -> None: + """Adds a :class:`KeventDescriptor` to the collection for the given + path. + + :param path: + The path for which a :class:`KeventDescriptor` object will be + added. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + with self._lock: + path = absolute_path(path) + if not self._has_path(path): + self._add_descriptor(KeventDescriptor(path, is_directory=is_directory)) + + def remove(self, path: bytes | str) -> None: + """Removes the :class:`KeventDescriptor` object for the given path + if it already exists. + + :param path: + Path for which the :class:`KeventDescriptor` object will be + removed. + """ + with self._lock: + path = absolute_path(path) + if self._has_path(path): + self._remove_descriptor(self._get(path)) + + def clear(self) -> None: + """Clears the collection and closes all open descriptors.""" + with self._lock: + for descriptor in self._descriptors: + descriptor.close() + self._descriptors.clear() + self._descriptor_for_fd.clear() + self._descriptor_for_path.clear() + self._kevents = [] + + # Thread-unsafe methods. Locking is provided at a higher level. + def _get(self, path: bytes | str) -> KeventDescriptor: + """Returns a kevent descriptor for a given path.""" + return self._descriptor_for_path[path] + + def _has_path(self, path: bytes | str) -> bool: + """Determines whether a :class:`KeventDescriptor` for the specified + path exists already in the collection. + """ + return path in self._descriptor_for_path + + def _add_descriptor(self, descriptor: KeventDescriptor) -> None: + """Adds a descriptor to the collection. + + :param descriptor: + An instance of :class:`KeventDescriptor` to be added. + """ + self._descriptors.add(descriptor) + self._kevents.append(descriptor.kevent) + self._descriptor_for_path[descriptor.path] = descriptor + self._descriptor_for_fd[descriptor.fd] = descriptor + + def _remove_descriptor(self, descriptor: KeventDescriptor) -> None: + """Removes a descriptor from the collection. + + :param descriptor: + An instance of :class:`KeventDescriptor` to be removed. + """ + self._descriptors.remove(descriptor) + del self._descriptor_for_fd[descriptor.fd] + del self._descriptor_for_path[descriptor.path] + self._kevents.remove(descriptor.kevent) + descriptor.close() + + +class KeventDescriptor: + """A kevent descriptor convenience data structure to keep together: + + * kevent + * directory status + * path + * file descriptor + + :param path: + Path string for which a kevent descriptor will be created. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + + def __init__(self, path: bytes | str, *, is_directory: bool) -> None: + self._path = absolute_path(path) + self._is_directory = is_directory + self._fd = os.open(path, WATCHDOG_OS_OPEN_FLAGS) + self._kev = select.kevent( + self._fd, + filter=WATCHDOG_KQ_FILTER, + flags=WATCHDOG_KQ_EV_FLAGS, + fflags=WATCHDOG_KQ_FFLAGS, + ) + + @property + def fd(self) -> int: + """OS file descriptor for the kevent descriptor.""" + return self._fd + + @property + def path(self) -> bytes | str: + """The path associated with the kevent descriptor.""" + return self._path + + @property + def kevent(self) -> select.kevent: + """The kevent object associated with the kevent descriptor.""" + return self._kev + + @property + def is_directory(self) -> bool: + """Determines whether the kevent descriptor refers to a directory. + + :returns: + ``True`` or ``False`` + """ + return self._is_directory + + def close(self) -> None: + """Closes the file descriptor associated with a kevent descriptor.""" + with contextlib.suppress(OSError): + os.close(self.fd) + + @property + def key(self) -> tuple[bytes | str, bool]: + return (self.path, self.is_directory) + + def __eq__(self, descriptor: object) -> bool: + if not isinstance(descriptor, KeventDescriptor): + return NotImplemented + return self.key == descriptor.key + + def __ne__(self, descriptor: object) -> bool: + if not isinstance(descriptor, KeventDescriptor): + return NotImplemented + return self.key != descriptor.key + + def __hash__(self) -> int: + return hash(self.key) + + def __repr__(self) -> str: + return f"<{type(self).__name__}: path={self.path!r}, is_directory={self.is_directory}>" + + +class KqueueEmitter(EventEmitter): + """kqueue(2)-based event emitter. + + .. ADMONITION:: About ``kqueue(2)`` behavior and this implementation + + ``kqueue(2)`` monitors file system events only for + open descriptors, which means, this emitter does a lot of + book-keeping behind the scenes to keep track of open + descriptors for every entry in the monitored directory tree. + + This also means the number of maximum open file descriptors + on your system must be increased **manually**. + Usually, issuing a call to ``ulimit`` should suffice:: + + ulimit -n 1024 + + Ensure that you pick a number that is larger than the + number of files you expect to be monitored. + + ``kqueue(2)`` does not provide enough information about the + following things: + + * The destination path of a file or directory that is renamed. + * Creation of a file or directory within a directory; in this + case, ``kqueue(2)`` only indicates a modified event on the + parent directory. + + Therefore, this emitter takes a snapshot of the directory + tree when ``kqueue(2)`` detects a change on the file system + to be able to determine the above information. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + :param stat: stat function. See ``os.stat`` for details. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + stat: Callable[[str], os.stat_result] = os.stat, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + + self._kq = select.kqueue() + self._lock = threading.RLock() + + # A collection of KeventDescriptor. + self._descriptors = KeventDescriptorSet() + + def custom_stat(path: str, cls: KqueueEmitter = self) -> os.stat_result: + stat_info = stat(path) + cls._register_kevent(path, is_directory=S_ISDIR(stat_info.st_mode)) + return stat_info + + self._snapshot = DirectorySnapshot(watch.path, recursive=watch.is_recursive, stat=custom_stat) + + def _register_kevent(self, path: bytes | str, *, is_directory: bool) -> None: + """Registers a kevent descriptor for the given path. + + :param path: + Path for which a kevent descriptor will be created. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + try: + self._descriptors.add(path, is_directory=is_directory) + except OSError as e: + if e.errno == errno.ENOENT: + # Probably dealing with a temporary file that was created + # and then quickly deleted before we could open + # a descriptor for it. Therefore, simply queue a sequence + # of created and deleted events for the path. + + # TODO: We could simply ignore these files. + # Locked files cause the python process to die with + # a bus error when we handle temporary files. + # eg. .git/index.lock when running tig operations. + # I don't fully understand this at the moment. + pass + elif e.errno == errno.EOPNOTSUPP: + # Probably dealing with the socket or special file + # mounted through a file system that does not support + # access to it (e.g. NFS). On BSD systems look at + # EOPNOTSUPP in man 2 open. + pass + else: + # All other errors are propagated. + raise + + def _unregister_kevent(self, path: bytes | str) -> None: + """Convenience function to close the kevent descriptor for a + specified kqueue-monitored path. + + :param path: + Path for which the kevent descriptor will be closed. + """ + self._descriptors.remove(path) + + def queue_event(self, event: FileSystemEvent) -> None: + """Handles queueing a single event object. + + :param event: + An instance of :class:`watchdog.events.FileSystemEvent` + or a subclass. + """ + # Handles all the book keeping for queued events. + # We do not need to fire moved/deleted events for all subitems in + # a directory tree here, because this function is called by kqueue + # for all those events anyway. + EventEmitter.queue_event(self, event) + if event.event_type == EVENT_TYPE_CREATED: + self._register_kevent(event.src_path, is_directory=event.is_directory) + elif event.event_type == EVENT_TYPE_MOVED: + self._unregister_kevent(event.src_path) + self._register_kevent(event.dest_path, is_directory=event.is_directory) + elif event.event_type == EVENT_TYPE_DELETED: + self._unregister_kevent(event.src_path) + + def _gen_kqueue_events( + self, kev: select.kevent, ref_snapshot: DirectorySnapshot, new_snapshot: DirectorySnapshot + ) -> Generator[FileSystemEvent]: + """Generate events from the kevent list returned from the call to + :meth:`select.kqueue.control`. + + .. NOTE:: kqueue only tells us about deletions, file modifications, + attribute modifications. The other events, namely, + file creation, directory modification, file rename, + directory rename, directory creation, etc. are + determined by comparing directory snapshots. + """ + descriptor = self._descriptors.get_for_fd(kev.ident) + src_path = descriptor.path + + if is_renamed(kev): + # Kqueue does not specify the destination names for renames + # to, so we have to process these using the a snapshot + # of the directory. + yield from self._gen_renamed_events( + src_path, + ref_snapshot, + new_snapshot, + is_directory=descriptor.is_directory, + ) + elif is_attrib_modified(kev): + if descriptor.is_directory: + yield DirModifiedEvent(src_path) + else: + yield FileModifiedEvent(src_path) + elif is_modified(kev): + if descriptor.is_directory: + if self.watch.is_recursive or self.watch.path == src_path: + # When a directory is modified, it may be due to + # sub-file/directory renames or new file/directory + # creation. We determine all this by comparing + # snapshots later. + yield DirModifiedEvent(src_path) + else: + yield FileModifiedEvent(src_path) + elif is_deleted(kev): + if descriptor.is_directory: + yield DirDeletedEvent(src_path) + else: + yield FileDeletedEvent(src_path) + + def _parent_dir_modified(self, src_path: bytes | str) -> DirModifiedEvent: + """Helper to generate a DirModifiedEvent on the parent of src_path.""" + return DirModifiedEvent(os.path.dirname(src_path)) + + def _gen_renamed_events( + self, + src_path: bytes | str, + ref_snapshot: DirectorySnapshot, + new_snapshot: DirectorySnapshot, + *, + is_directory: bool, + ) -> Generator[FileSystemEvent]: + """Compares information from two directory snapshots (one taken before + the rename operation and another taken right after) to determine the + destination path of the file system object renamed, and yields + the appropriate events to be queued. + """ + try: + f_inode = ref_snapshot.inode(src_path) + except KeyError: + # Probably caught a temporary file/directory that was renamed + # and deleted. Fires a sequence of created and deleted events + # for the path. + if is_directory: + yield DirCreatedEvent(src_path) + yield DirDeletedEvent(src_path) + else: + yield FileCreatedEvent(src_path) + yield FileDeletedEvent(src_path) + # We don't process any further and bail out assuming + # the event represents deletion/creation instead of movement. + return + + dest_path = new_snapshot.path(f_inode) + if dest_path is not None: + dest_path = absolute_path(dest_path) + if is_directory: + yield DirMovedEvent(src_path, dest_path) + else: + yield FileMovedEvent(src_path, dest_path) + yield self._parent_dir_modified(src_path) + yield self._parent_dir_modified(dest_path) + if is_directory and self.watch.is_recursive: + # TODO: Do we need to fire moved events for the items + # inside the directory tree? Does kqueue does this + # all by itself? Check this and then enable this code + # only if it doesn't already. + # A: It doesn't. So I've enabled this block. + yield from generate_sub_moved_events(src_path, dest_path) + else: + # If the new snapshot does not have an inode for the + # old path, we haven't found the new name. Therefore, + # we mark it as deleted and remove unregister the path. + if is_directory: + yield DirDeletedEvent(src_path) + else: + yield FileDeletedEvent(src_path) + yield self._parent_dir_modified(src_path) + + def _read_events(self, timeout: float) -> list[select.kevent]: + """Reads events from a call to the blocking + :meth:`select.kqueue.control()` method. + + :param timeout: + Blocking timeout for reading events. + :type timeout: + ``float`` (seconds) + """ + return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout) + + def queue_events(self, timeout: float) -> None: + """Queues events by reading them from a call to the blocking + :meth:`select.kqueue.control()` method. + + :param timeout: + Blocking timeout for reading events. + :type timeout: + ``float`` (seconds) + """ + with self._lock: + try: + event_list = self._read_events(timeout) + # TODO: investigate why order appears to be reversed + event_list.reverse() + + # Take a fresh snapshot of the directory and update the + # saved snapshot. + new_snapshot = DirectorySnapshot(self.watch.path, recursive=self.watch.is_recursive) + ref_snapshot = self._snapshot + self._snapshot = new_snapshot + diff_events = new_snapshot - ref_snapshot + + # Process events + for directory_created in diff_events.dirs_created: + self.queue_event(DirCreatedEvent(directory_created)) + for file_created in diff_events.files_created: + self.queue_event(FileCreatedEvent(file_created)) + for file_modified in diff_events.files_modified: + self.queue_event(FileModifiedEvent(file_modified)) + + for kev in event_list: + for event in self._gen_kqueue_events(kev, ref_snapshot, new_snapshot): + self.queue_event(event) + + except OSError as e: + if e.errno != errno.EBADF: + raise + + def on_thread_stop(self) -> None: + # Clean up. + with self._lock: + self._descriptors.clear() + self._kq.close() + + +class KqueueObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(KqueueEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/polling.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/polling.py new file mode 100644 index 0000000000000000000000000000000000000000..5c94e525902e41f52b6362a87172b848e0778f1c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/polling.py @@ -0,0 +1,142 @@ +""":module: watchdog.observers.polling +:synopsis: Polling emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: PollingObserver + :members: + :show-inheritance: + +.. autoclass:: PollingObserverVFS + :members: + :show-inheritance: + :special-members: +""" + +from __future__ import annotations + +import os +import threading +from functools import partial +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils.dirsnapshot import DirectorySnapshot, DirectorySnapshotDiff, EmptyDirectorySnapshot + +if TYPE_CHECKING: + from collections.abc import Iterator + from typing import Callable + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + + +class PollingEmitter(EventEmitter): + """Platform-independent emitter that polls a directory to detect file + system changes. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._snapshot: DirectorySnapshot = EmptyDirectorySnapshot() + self._lock = threading.Lock() + self._take_snapshot: Callable[[], DirectorySnapshot] = lambda: DirectorySnapshot( + self.watch.path, + recursive=self.watch.is_recursive, + stat=stat, + listdir=listdir, + ) + + def on_thread_start(self) -> None: + self._snapshot = self._take_snapshot() + + def queue_events(self, timeout: float) -> None: + # We don't want to hit the disk continuously. + # timeout behaves like an interval for polling emitters. + if self.stopped_event.wait(timeout): + return + + with self._lock: + if not self.should_keep_running(): + return + + # Get event diff between fresh snapshot and previous snapshot. + # Update snapshot. + try: + new_snapshot = self._take_snapshot() + except OSError: + self.queue_event(DirDeletedEvent(self.watch.path)) + self.stop() + return + + events = DirectorySnapshotDiff(self._snapshot, new_snapshot) + self._snapshot = new_snapshot + + # Files. + for src_path in events.files_deleted: + self.queue_event(FileDeletedEvent(src_path)) + for src_path in events.files_modified: + self.queue_event(FileModifiedEvent(src_path)) + for src_path in events.files_created: + self.queue_event(FileCreatedEvent(src_path)) + for src_path, dest_path in events.files_moved: + self.queue_event(FileMovedEvent(src_path, dest_path)) + + # Directories. + for src_path in events.dirs_deleted: + self.queue_event(DirDeletedEvent(src_path)) + for src_path in events.dirs_modified: + self.queue_event(DirModifiedEvent(src_path)) + for src_path in events.dirs_created: + self.queue_event(DirCreatedEvent(src_path)) + for src_path, dest_path in events.dirs_moved: + self.queue_event(DirMovedEvent(src_path, dest_path)) + + +class PollingObserver(BaseObserver): + """Platform-independent observer that polls a directory to detect file + system changes. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(PollingEmitter, timeout=timeout) + + +class PollingObserverVFS(BaseObserver): + """File system independent observer that polls a directory to detect changes.""" + + def __init__( + self, + stat: Callable[[str], os.stat_result], + listdir: Callable[[str | None], Iterator[os.DirEntry]], + *, + polling_interval: int = 1, + ) -> None: + """:param stat: stat function. See ``os.stat`` for details. + :param listdir: listdir function. See ``os.scandir`` for details. + :type polling_interval: int + :param polling_interval: interval in seconds between polling the file system. + """ + emitter_cls = partial(PollingEmitter, stat=stat, listdir=listdir) + super().__init__(emitter_cls, timeout=polling_interval) # type: ignore[arg-type] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/read_directory_changes.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/read_directory_changes.py new file mode 100644 index 0000000000000000000000000000000000000000..4faa9450b29c4626153cb48fd6fd120dbd9a4ccc --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/read_directory_changes.py @@ -0,0 +1,109 @@ +from __future__ import annotations + +import os.path +import platform +import threading +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.observers.winapi import close_directory_handle, get_directory_handle, read_events + +if TYPE_CHECKING: + from ctypes.wintypes import HANDLE + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + from watchdog.observers.winapi import WinAPINativeEvent + + +class WindowsApiEmitter(EventEmitter): + """Windows API-based emitter that uses ReadDirectoryChangesW + to detect file system changes for a watch. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._lock = threading.Lock() + self._whandle: HANDLE | None = None + + def on_thread_start(self) -> None: + self._whandle = get_directory_handle(self.watch.path) + + if platform.python_implementation() == "PyPy": + + def start(self) -> None: + """PyPy needs some time before receiving events, see #792.""" + from time import sleep + + super().start() + sleep(0.01) + + def on_thread_stop(self) -> None: + if self._whandle: + close_directory_handle(self._whandle) + + def _read_events(self) -> list[WinAPINativeEvent]: + if not self._whandle: + return [] + return read_events(self._whandle, self.watch.path, recursive=self.watch.is_recursive) + + def queue_events(self, timeout: float) -> None: + winapi_events = self._read_events() + with self._lock: + last_renamed_src_path = "" + for winapi_event in winapi_events: + src_path = os.path.join(self.watch.path, winapi_event.src_path) + + if winapi_event.is_renamed_old: + last_renamed_src_path = src_path + elif winapi_event.is_renamed_new: + dest_path = src_path + src_path = last_renamed_src_path + if os.path.isdir(dest_path): + self.queue_event(DirMovedEvent(src_path, dest_path)) + if self.watch.is_recursive: + for sub_moved_event in generate_sub_moved_events(src_path, dest_path): + self.queue_event(sub_moved_event) + else: + self.queue_event(FileMovedEvent(src_path, dest_path)) + elif winapi_event.is_modified: + self.queue_event((DirModifiedEvent if os.path.isdir(src_path) else FileModifiedEvent)(src_path)) + elif winapi_event.is_added: + isdir = os.path.isdir(src_path) + self.queue_event((DirCreatedEvent if isdir else FileCreatedEvent)(src_path)) + if isdir and self.watch.is_recursive: + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + elif winapi_event.is_removed: + self.queue_event(FileDeletedEvent(src_path)) + elif winapi_event.is_removed_self: + self.queue_event(DirDeletedEvent(self.watch.path)) + self.stop() + + +class WindowsApiObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(WindowsApiEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/winapi.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/winapi.py new file mode 100644 index 0000000000000000000000000000000000000000..1247e1f874ee9c6e3784977d9f8c47f63e3e6b4a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/observers/winapi.py @@ -0,0 +1,382 @@ +""":module: watchdog.observers.winapi +:synopsis: Windows API-Python interface (removes dependency on ``pywin32``). +:author: theller@ctypes.org (Thomas Heller) +:author: will@willmcgugan.com (Will McGugan) +:author: ryan@rfk.id.au (Ryan Kelly) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: windows +""" + +from __future__ import annotations + +import contextlib +import ctypes +from ctypes.wintypes import BOOL, DWORD, HANDLE, LPCWSTR, LPVOID, LPWSTR +from dataclasses import dataclass +from functools import reduce +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any + +# Invalid handle value. +INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value + +# File notification constants. +FILE_NOTIFY_CHANGE_FILE_NAME = 0x01 +FILE_NOTIFY_CHANGE_DIR_NAME = 0x02 +FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x04 +FILE_NOTIFY_CHANGE_SIZE = 0x08 +FILE_NOTIFY_CHANGE_LAST_WRITE = 0x010 +FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020 +FILE_NOTIFY_CHANGE_CREATION = 0x040 +FILE_NOTIFY_CHANGE_SECURITY = 0x0100 + +FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 +FILE_FLAG_OVERLAPPED = 0x40000000 +FILE_LIST_DIRECTORY = 1 +FILE_SHARE_READ = 0x01 +FILE_SHARE_WRITE = 0x02 +FILE_SHARE_DELETE = 0x04 +OPEN_EXISTING = 3 + +VOLUME_NAME_NT = 0x02 + +# File action constants. +FILE_ACTION_CREATED = 1 +FILE_ACTION_DELETED = 2 +FILE_ACTION_MODIFIED = 3 +FILE_ACTION_RENAMED_OLD_NAME = 4 +FILE_ACTION_RENAMED_NEW_NAME = 5 +FILE_ACTION_DELETED_SELF = 0xFFFE +FILE_ACTION_OVERFLOW = 0xFFFF + +# Aliases +FILE_ACTION_ADDED = FILE_ACTION_CREATED +FILE_ACTION_REMOVED = FILE_ACTION_DELETED +FILE_ACTION_REMOVED_SELF = FILE_ACTION_DELETED_SELF + +THREAD_TERMINATE = 0x0001 + +# IO waiting constants. +WAIT_ABANDONED = 0x00000080 +WAIT_IO_COMPLETION = 0x000000C0 +WAIT_OBJECT_0 = 0x00000000 +WAIT_TIMEOUT = 0x00000102 + +# Error codes +ERROR_OPERATION_ABORTED = 995 + + +class OVERLAPPED(ctypes.Structure): + _fields_ = ( + ("Internal", LPVOID), + ("InternalHigh", LPVOID), + ("Offset", DWORD), + ("OffsetHigh", DWORD), + ("Pointer", LPVOID), + ("hEvent", HANDLE), + ) + + +def _errcheck_bool(value: Any | None, func: Any, args: Any) -> Any: + if not value: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +def _errcheck_handle(value: Any | None, func: Any, args: Any) -> Any: + if not value: + raise ctypes.WinError() # type: ignore[attr-defined] + if value == INVALID_HANDLE_VALUE: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +def _errcheck_dword(value: Any | None, func: Any, args: Any) -> Any: + if value == 0xFFFFFFFF: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +kernel32 = ctypes.WinDLL("kernel32") # type: ignore[attr-defined] + +ReadDirectoryChangesW = kernel32.ReadDirectoryChangesW +ReadDirectoryChangesW.restype = BOOL +ReadDirectoryChangesW.errcheck = _errcheck_bool +ReadDirectoryChangesW.argtypes = ( + HANDLE, # hDirectory + LPVOID, # lpBuffer + DWORD, # nBufferLength + BOOL, # bWatchSubtree + DWORD, # dwNotifyFilter + ctypes.POINTER(DWORD), # lpBytesReturned + ctypes.POINTER(OVERLAPPED), # lpOverlapped + LPVOID, # FileIOCompletionRoutine # lpCompletionRoutine +) + +CreateFileW = kernel32.CreateFileW +CreateFileW.restype = HANDLE +CreateFileW.errcheck = _errcheck_handle +CreateFileW.argtypes = ( + LPCWSTR, # lpFileName + DWORD, # dwDesiredAccess + DWORD, # dwShareMode + LPVOID, # lpSecurityAttributes + DWORD, # dwCreationDisposition + DWORD, # dwFlagsAndAttributes + HANDLE, # hTemplateFile +) + +CloseHandle = kernel32.CloseHandle +CloseHandle.restype = BOOL +CloseHandle.argtypes = (HANDLE,) # hObject + +CancelIoEx = kernel32.CancelIoEx +CancelIoEx.restype = BOOL +CancelIoEx.errcheck = _errcheck_bool +CancelIoEx.argtypes = ( + HANDLE, # hObject + ctypes.POINTER(OVERLAPPED), # lpOverlapped +) + +CreateEvent = kernel32.CreateEventW +CreateEvent.restype = HANDLE +CreateEvent.errcheck = _errcheck_handle +CreateEvent.argtypes = ( + LPVOID, # lpEventAttributes + BOOL, # bManualReset + BOOL, # bInitialState + LPCWSTR, # lpName +) + +SetEvent = kernel32.SetEvent +SetEvent.restype = BOOL +SetEvent.errcheck = _errcheck_bool +SetEvent.argtypes = (HANDLE,) # hEvent + +WaitForSingleObjectEx = kernel32.WaitForSingleObjectEx +WaitForSingleObjectEx.restype = DWORD +WaitForSingleObjectEx.errcheck = _errcheck_dword +WaitForSingleObjectEx.argtypes = ( + HANDLE, # hObject + DWORD, # dwMilliseconds + BOOL, # bAlertable +) + +CreateIoCompletionPort = kernel32.CreateIoCompletionPort +CreateIoCompletionPort.restype = HANDLE +CreateIoCompletionPort.errcheck = _errcheck_handle +CreateIoCompletionPort.argtypes = ( + HANDLE, # FileHandle + HANDLE, # ExistingCompletionPort + LPVOID, # CompletionKey + DWORD, # NumberOfConcurrentThreads +) + +GetQueuedCompletionStatus = kernel32.GetQueuedCompletionStatus +GetQueuedCompletionStatus.restype = BOOL +GetQueuedCompletionStatus.errcheck = _errcheck_bool +GetQueuedCompletionStatus.argtypes = ( + HANDLE, # CompletionPort + LPVOID, # lpNumberOfBytesTransferred + LPVOID, # lpCompletionKey + ctypes.POINTER(OVERLAPPED), # lpOverlapped + DWORD, # dwMilliseconds +) + +PostQueuedCompletionStatus = kernel32.PostQueuedCompletionStatus +PostQueuedCompletionStatus.restype = BOOL +PostQueuedCompletionStatus.errcheck = _errcheck_bool +PostQueuedCompletionStatus.argtypes = ( + HANDLE, # CompletionPort + DWORD, # lpNumberOfBytesTransferred + DWORD, # lpCompletionKey + ctypes.POINTER(OVERLAPPED), # lpOverlapped +) + + +GetFinalPathNameByHandleW = kernel32.GetFinalPathNameByHandleW +GetFinalPathNameByHandleW.restype = DWORD +GetFinalPathNameByHandleW.errcheck = _errcheck_dword +GetFinalPathNameByHandleW.argtypes = ( + HANDLE, # hFile + LPWSTR, # lpszFilePath + DWORD, # cchFilePath + DWORD, # DWORD +) + + +class FileNotifyInformation(ctypes.Structure): + _fields_ = ( + ("NextEntryOffset", DWORD), + ("Action", DWORD), + ("FileNameLength", DWORD), + ("FileName", (ctypes.c_char * 1)), + ) + + +LPFNI = ctypes.POINTER(FileNotifyInformation) + + +# We don't need to recalculate these flags every time a call is made to +# the win32 API functions. +WATCHDOG_FILE_FLAGS = FILE_FLAG_BACKUP_SEMANTICS +WATCHDOG_FILE_SHARE_FLAGS = reduce( + lambda x, y: x | y, + [ + FILE_SHARE_READ, + FILE_SHARE_WRITE, + FILE_SHARE_DELETE, + ], +) +WATCHDOG_FILE_NOTIFY_FLAGS = reduce( + lambda x, y: x | y, + [ + FILE_NOTIFY_CHANGE_FILE_NAME, + FILE_NOTIFY_CHANGE_DIR_NAME, + FILE_NOTIFY_CHANGE_ATTRIBUTES, + FILE_NOTIFY_CHANGE_SIZE, + FILE_NOTIFY_CHANGE_LAST_WRITE, + FILE_NOTIFY_CHANGE_SECURITY, + FILE_NOTIFY_CHANGE_LAST_ACCESS, + FILE_NOTIFY_CHANGE_CREATION, + ], +) + +# ReadDirectoryChangesW buffer length. +# To handle cases with lot of changes, this seems the highest safest value we can use. +# Note: it will fail with ERROR_INVALID_PARAMETER when it is greater than 64 KB and +# the application is monitoring a directory over the network. +# This is due to a packet size limitation with the underlying file sharing protocols. +# https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-readdirectorychangesw#remarks +BUFFER_SIZE = 64000 + +# Buffer length for path-related stuff. +# Introduced to keep the old behavior when we bumped BUFFER_SIZE from 2048 to 64000 in v1.0.0. +PATH_BUFFER_SIZE = 2048 + + +def _parse_event_buffer(read_buffer: bytes, n_bytes: int) -> list[tuple[int, str]]: + results = [] + while n_bytes > 0: + fni = ctypes.cast(read_buffer, LPFNI)[0] # type: ignore[arg-type] + ptr = ctypes.addressof(fni) + FileNotifyInformation.FileName.offset + filename = ctypes.string_at(ptr, fni.FileNameLength) + results.append((fni.Action, filename.decode("utf-16"))) + num_to_skip = fni.NextEntryOffset + if num_to_skip <= 0: + break + read_buffer = read_buffer[num_to_skip:] + n_bytes -= num_to_skip # num_to_skip is long. n_bytes should be long too. + return results + + +def _is_observed_path_deleted(handle: HANDLE, path: str) -> bool: + # Comparison of observed path and actual path, returned by + # GetFinalPathNameByHandleW. If directory moved to the trash bin, or + # deleted, actual path will not be equal to observed path. + buff = ctypes.create_unicode_buffer(PATH_BUFFER_SIZE) + GetFinalPathNameByHandleW(handle, buff, PATH_BUFFER_SIZE, VOLUME_NAME_NT) + return buff.value != path + + +def _generate_observed_path_deleted_event() -> tuple[bytes, int]: + # Create synthetic event for notify that observed directory is deleted + path = ctypes.create_unicode_buffer(".") + event = FileNotifyInformation(0, FILE_ACTION_DELETED_SELF, len(path), path.value.encode("utf-8")) + event_size = ctypes.sizeof(event) + buff = ctypes.create_string_buffer(PATH_BUFFER_SIZE) + ctypes.memmove(buff, ctypes.addressof(event), event_size) + return buff.raw, event_size + + +def get_directory_handle(path: str) -> HANDLE: + """Returns a Windows handle to the specified directory path.""" + return CreateFileW( + path, + FILE_LIST_DIRECTORY, + WATCHDOG_FILE_SHARE_FLAGS, + None, + OPEN_EXISTING, + WATCHDOG_FILE_FLAGS, + None, + ) + + +def close_directory_handle(handle: HANDLE) -> None: + try: + CancelIoEx(handle, None) # force ReadDirectoryChangesW to return + CloseHandle(handle) + except OSError: + with contextlib.suppress(Exception): + CloseHandle(handle) + + +def read_directory_changes(handle: HANDLE, path: str, *, recursive: bool) -> tuple[bytes, int]: + """Read changes to the directory using the specified directory handle. + + https://timgolden.me.uk/pywin32-docs/win32file__ReadDirectoryChangesW_meth.html + """ + event_buffer = ctypes.create_string_buffer(BUFFER_SIZE) + nbytes = DWORD() + try: + ReadDirectoryChangesW( + handle, + ctypes.byref(event_buffer), + len(event_buffer), + recursive, + WATCHDOG_FILE_NOTIFY_FLAGS, + ctypes.byref(nbytes), + None, + None, + ) + except OSError as e: + if e.winerror == ERROR_OPERATION_ABORTED: # type: ignore[attr-defined] + return event_buffer.raw, 0 + + # Handle the case when the root path is deleted + if _is_observed_path_deleted(handle, path): + return _generate_observed_path_deleted_event() + + raise + + return event_buffer.raw, int(nbytes.value) + + +@dataclass(unsafe_hash=True) +class WinAPINativeEvent: + action: int + src_path: str + + @property + def is_added(self) -> bool: + return self.action == FILE_ACTION_CREATED + + @property + def is_removed(self) -> bool: + return self.action == FILE_ACTION_REMOVED + + @property + def is_modified(self) -> bool: + return self.action == FILE_ACTION_MODIFIED + + @property + def is_renamed_old(self) -> bool: + return self.action == FILE_ACTION_RENAMED_OLD_NAME + + @property + def is_renamed_new(self) -> bool: + return self.action == FILE_ACTION_RENAMED_NEW_NAME + + @property + def is_removed_self(self) -> bool: + return self.action == FILE_ACTION_REMOVED_SELF + + +def read_events(handle: HANDLE, path: str, *, recursive: bool) -> list[WinAPINativeEvent]: + buf, nbytes = read_directory_changes(handle, path, recursive=recursive) + events = _parse_event_buffer(buf, nbytes) + return [WinAPINativeEvent(action, src_path) for action, src_path in events] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/py.typed b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b993b6d2c17dccf08d2e3e6a8c60bd7b8bf6e324 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__init__.py @@ -0,0 +1,293 @@ +""":module: watchdog.tricks +:synopsis: Utility event handlers. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: Trick + :members: + :show-inheritance: + +.. autoclass:: LoggerTrick + :members: + :show-inheritance: + +.. autoclass:: ShellCommandTrick + :members: + :show-inheritance: + +.. autoclass:: AutoRestartTrick + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import contextlib +import functools +import logging +import os +import signal +import subprocess +import threading +import time + +from watchdog.events import EVENT_TYPE_CLOSED_NO_WRITE, EVENT_TYPE_OPENED, FileSystemEvent, PatternMatchingEventHandler +from watchdog.utils import echo, platform +from watchdog.utils.event_debouncer import EventDebouncer +from watchdog.utils.process_watcher import ProcessWatcher + +logger = logging.getLogger(__name__) +echo_events = functools.partial(echo.echo, write=lambda msg: logger.info(msg)) + + +class Trick(PatternMatchingEventHandler): + """Your tricks should subclass this class.""" + + def __repr__(self) -> str: + return f"<{type(self).__name__}>" + + @classmethod + def generate_yaml(cls) -> str: + return f"""- {cls.__module__}.{cls.__name__}: + args: + - argument1 + - argument2 + kwargs: + patterns: + - "*.py" + - "*.js" + ignore_patterns: + - "version.py" + ignore_directories: false +""" + + +class LoggerTrick(Trick): + """A simple trick that does only logs events.""" + + @echo_events + def on_any_event(self, event: FileSystemEvent) -> None: + pass + + +class ShellCommandTrick(Trick): + """Executes shell commands in response to matched events.""" + + def __init__( + self, + shell_command: str, + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + wait_for_process: bool = False, + drop_during_process: bool = False, + ): + super().__init__( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=ignore_directories, + ) + self.shell_command = shell_command + self.wait_for_process = wait_for_process + self.drop_during_process = drop_during_process + + self.process: subprocess.Popen[bytes] | None = None + self._process_watchers: set[ProcessWatcher] = set() + + def on_any_event(self, event: FileSystemEvent) -> None: + if event.event_type in {EVENT_TYPE_OPENED, EVENT_TYPE_CLOSED_NO_WRITE}: + # FIXME: see issue #949, and find a way to better handle that scenario + return + + from string import Template + + if self.drop_during_process and self.is_process_running(): + return + + object_type = "directory" if event.is_directory else "file" + context = { + "watch_src_path": event.src_path, + "watch_dest_path": "", + "watch_event_type": event.event_type, + "watch_object": object_type, + } + + if self.shell_command is None: + if hasattr(event, "dest_path"): + context["dest_path"] = event.dest_path + command = 'echo "${watch_event_type} ${watch_object} from ${watch_src_path} to ${watch_dest_path}"' + else: + command = 'echo "${watch_event_type} ${watch_object} ${watch_src_path}"' + else: + if hasattr(event, "dest_path"): + context["watch_dest_path"] = event.dest_path + command = self.shell_command + + command = Template(command).safe_substitute(**context) + self.process = subprocess.Popen(command, shell=True) + if self.wait_for_process: + self.process.wait() + else: + process_watcher = ProcessWatcher(self.process, None) + self._process_watchers.add(process_watcher) + process_watcher.process_termination_callback = functools.partial( + self._process_watchers.discard, + process_watcher, + ) + process_watcher.start() + + def is_process_running(self) -> bool: + return bool(self._process_watchers or (self.process is not None and self.process.poll() is None)) + + +class AutoRestartTrick(Trick): + """Starts a long-running subprocess and restarts it on matched events. + + The command parameter is a list of command arguments, such as + `['bin/myserver', '-c', 'etc/myconfig.ini']`. + + Call `start()` after creating the Trick. Call `stop()` when stopping + the process. + """ + + def __init__( + self, + command: list[str], + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + stop_signal: signal.Signals | int = signal.SIGINT, + kill_after: int = 10, + debounce_interval_seconds: int = 0, + restart_on_command_exit: bool = True, + ): + if kill_after < 0: + error = "kill_after must be non-negative." + raise ValueError(error) + if debounce_interval_seconds < 0: + error = "debounce_interval_seconds must be non-negative." + raise ValueError(error) + + super().__init__( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=ignore_directories, + ) + + self.command = command + self.stop_signal = stop_signal.value if isinstance(stop_signal, signal.Signals) else stop_signal + self.kill_after = kill_after + self.debounce_interval_seconds = debounce_interval_seconds + self.restart_on_command_exit = restart_on_command_exit + + self.process: subprocess.Popen[bytes] | None = None + self.process_watcher: ProcessWatcher | None = None + self.event_debouncer: EventDebouncer | None = None + self.restart_count = 0 + + self._is_process_stopping = False + self._is_trick_stopping = False + self._stopping_lock = threading.RLock() + + def start(self) -> None: + if self.debounce_interval_seconds: + self.event_debouncer = EventDebouncer( + debounce_interval_seconds=self.debounce_interval_seconds, + events_callback=lambda events: self._restart_process(), + ) + self.event_debouncer.start() + self._start_process() + + def stop(self) -> None: + # Ensure the body of the function is only run once. + with self._stopping_lock: + if self._is_trick_stopping: + return + self._is_trick_stopping = True + + process_watcher = self.process_watcher + if self.event_debouncer is not None: + self.event_debouncer.stop() + self._stop_process() + + # Don't leak threads: Wait for background threads to stop. + if self.event_debouncer is not None: + self.event_debouncer.join() + if process_watcher is not None: + process_watcher.join() + + def _start_process(self) -> None: + if self._is_trick_stopping: + return + + # windows doesn't have setsid + self.process = subprocess.Popen(self.command, preexec_fn=getattr(os, "setsid", None)) + if self.restart_on_command_exit: + self.process_watcher = ProcessWatcher(self.process, self._restart_process) + self.process_watcher.start() + + def _stop_process(self) -> None: + # Ensure the body of the function is not run in parallel in different threads. + with self._stopping_lock: + if self._is_process_stopping: + return + self._is_process_stopping = True + + try: + if self.process_watcher is not None: + self.process_watcher.stop() + self.process_watcher = None + + if self.process is not None: + try: + kill_process(self.process.pid, self.stop_signal) + except OSError: + # Process is already gone + pass + else: + kill_time = time.time() + self.kill_after + while time.time() < kill_time: + if self.process.poll() is not None: + break + time.sleep(0.25) + else: + # Process is already gone + with contextlib.suppress(OSError): + kill_process(self.process.pid, 9) + self.process = None + finally: + self._is_process_stopping = False + + @echo_events + def on_any_event(self, event: FileSystemEvent) -> None: + if event.event_type in {EVENT_TYPE_OPENED, EVENT_TYPE_CLOSED_NO_WRITE}: + # FIXME: see issue #949, and find a way to better handle that scenario + return + + if self.event_debouncer is not None: + self.event_debouncer.handle_event(event) + else: + self._restart_process() + + def _restart_process(self) -> None: + if self._is_trick_stopping: + return + self._stop_process() + self._start_process() + self.restart_count += 1 + + +if platform.is_windows(): + + def kill_process(pid: int, stop_signal: int) -> None: + os.kill(pid, stop_signal) + +else: + + def kill_process(pid: int, stop_signal: int) -> None: + os.killpg(os.getpgid(pid), stop_signal) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b7a5c95acd8f939d83c815fa94ee6f48a98390ce Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..637d98885c5267896033ba4aed1d5d45f774c92b --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__init__.py @@ -0,0 +1,122 @@ +""":module: watchdog.utils +:synopsis: Utility classes and functions. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: BaseThread + :members: + :show-inheritance: + :inherited-members: + +""" + +from __future__ import annotations + +import sys +import threading +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from types import ModuleType + + from watchdog.tricks import Trick + + +class UnsupportedLibcError(Exception): + pass + + +class WatchdogShutdownError(Exception): + """Semantic exception used to signal an external shutdown event.""" + + +class BaseThread(threading.Thread): + """Convenience class for creating stoppable threads.""" + + def __init__(self) -> None: + threading.Thread.__init__(self) + if hasattr(self, "daemon"): + self.daemon = True + else: + self.setDaemon(True) + self._stopped_event = threading.Event() + + @property + def stopped_event(self) -> threading.Event: + return self._stopped_event + + def should_keep_running(self) -> bool: + """Determines whether the thread should continue running.""" + return not self._stopped_event.is_set() + + def on_thread_stop(self) -> None: + """Override this method instead of :meth:`stop()`. + :meth:`stop()` calls this method. + + This method is called immediately after the thread is signaled to stop. + """ + + def stop(self) -> None: + """Signals the thread to stop.""" + self._stopped_event.set() + self.on_thread_stop() + + def on_thread_start(self) -> None: + """Override this method instead of :meth:`start()`. :meth:`start()` + calls this method. + + This method is called right before this thread is started and this + object's run() method is invoked. + """ + + def start(self) -> None: + self.on_thread_start() + threading.Thread.start(self) + + +def load_module(module_name: str) -> ModuleType: + """Imports a module given its name and returns a handle to it.""" + try: + __import__(module_name) + except ImportError as e: + error = f"No module named {module_name}" + raise ImportError(error) from e + return sys.modules[module_name] + + +def load_class(dotted_path: str) -> type[Trick]: + """Loads and returns a class definition provided a dotted path + specification the last part of the dotted path is the class name + and there is at least one module name preceding the class name. + + Notes + ----- + You will need to ensure that the module you are trying to load + exists in the Python path. + + Examples + -------- + - module.name.ClassName # Provided module.name is in the Python path. + - module.ClassName # Provided module is in the Python path. + + What won't work: + - ClassName + - modle.name.ClassName # Typo in module name. + - module.name.ClasNam # Typo in classname. + + """ + dotted_path_split = dotted_path.split(".") + if len(dotted_path_split) <= 1: + error = f"Dotted module path {dotted_path} must contain a module name and a classname" + raise ValueError(error) + klass_name = dotted_path_split[-1] + module_name = ".".join(dotted_path_split[:-1]) + + module = load_module(module_name) + if hasattr(module, klass_name): + return getattr(module, klass_name) + + error = f"Module {module_name} does not have class attribute {klass_name}" + raise AttributeError(error) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f38f8453a5d10bdb8b9ce2743e4f5b0269b026db Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d71f0b2b62539ebc76b56b11eb72e98328300374 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b8930eadd91ebbc29fbb2f925ac153f691d1918f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0d5f2be7a0549137e6d2f6d8bf3685ce1c9b0b87 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..c3020062a9eb26cbdcc86fa8ea44856ac34e4744 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..1923a262eaa9dbea8d5f1722a425fe3eeac983c8 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0f0c385ff74870c6c02fc5e4d44ae1e7bbb3d739 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3d4837911b05b630778822dd90ee42bf9567a88d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..473cc9a26dfd6ecdf98dfd772b78fed8eac4d3f6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/bricks.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/bricks.py new file mode 100644 index 0000000000000000000000000000000000000000..6aca8e425fe83c688bc2e9020ebf3a594598d09c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/bricks.py @@ -0,0 +1,90 @@ +"""Utility collections or "bricks". + +:module: watchdog.utils.bricks +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: lalinsky@gmail.com (Lukáš Lalinský) +:author: python@rcn.com (Raymond Hettinger) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +======= +.. autoclass:: OrderedSetQueue + :members: + :show-inheritance: + :inherited-members: + +.. autoclass:: OrderedSet + +""" + +from __future__ import annotations + +import queue +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any + + +class SkipRepeatsQueue(queue.Queue): + """Thread-safe implementation of an special queue where a + put of the last-item put'd will be dropped. + + The implementation leverages locking already implemented in the base class + redefining only the primitives. + + Queued items must be immutable and hashable so that they can be used + as dictionary keys. You must implement **only read-only properties** and + the :meth:`Item.__hash__()`, :meth:`Item.__eq__()`, and + :meth:`Item.__ne__()` methods for items to be hashable. + + An example implementation follows:: + + class Item: + def __init__(self, a, b): + self._a = a + self._b = b + + @property + def a(self): + return self._a + + @property + def b(self): + return self._b + + def _key(self): + return (self._a, self._b) + + def __eq__(self, item): + return self._key() == item._key() + + def __ne__(self, item): + return self._key() != item._key() + + def __hash__(self): + return hash(self._key()) + + based on the OrderedSetQueue below + """ + + def _init(self, maxsize: int) -> None: + super()._init(maxsize) + self._last_item = None + + def put(self, item: Any, block: bool = True, timeout: float | None = None) -> None: # noqa: FBT001,FBT002 + """This method will be used by `eventlet`, when enabled, so we cannot use force proper keyword-only + arguments nor touch the signature. Also, the `timeout` argument will be ignored in that case. + """ + if self._last_item is None or item != self._last_item: + super().put(item, block, timeout) + + def _put(self, item: Any) -> None: + super()._put(item) + self._last_item = item + + def _get(self) -> Any: + item = super()._get() + if item is self._last_item: + self._last_item = None + return item diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/delayed_queue.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/delayed_queue.py new file mode 100644 index 0000000000000000000000000000000000000000..e85fa6348536c08a2a4ba59fab4ddee09e501071 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/delayed_queue.py @@ -0,0 +1,77 @@ +""":module: watchdog.utils.delayed_queue +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" + +from __future__ import annotations + +import threading +import time +from collections import deque +from typing import Callable, Generic, TypeVar + +T = TypeVar("T") + + +class DelayedQueue(Generic[T]): + def __init__(self, delay: float) -> None: + self.delay_sec = delay + self._lock = threading.Lock() + self._not_empty = threading.Condition(self._lock) + self._queue: deque[tuple[T, float, bool]] = deque() + self._closed = False + + def put(self, element: T, *, delay: bool = False) -> None: + """Add element to queue.""" + self._lock.acquire() + self._queue.append((element, time.time(), delay)) + self._not_empty.notify() + self._lock.release() + + def close(self) -> None: + """Close queue, indicating no more items will be added.""" + self._closed = True + # Interrupt the blocking _not_empty.wait() call in get + self._not_empty.acquire() + self._not_empty.notify() + self._not_empty.release() + + def get(self) -> T | None: + """Remove and return an element from the queue, or this queue has been + closed raise the Closed exception. + """ + while True: + # wait for element to be added to queue + self._not_empty.acquire() + while len(self._queue) == 0 and not self._closed: + self._not_empty.wait() + + if self._closed: + self._not_empty.release() + return None + head, insert_time, delay = self._queue[0] + self._not_empty.release() + + # wait for delay if required + if delay: + time_left = insert_time + self.delay_sec - time.time() + while time_left > 0: + time.sleep(time_left) + time_left = insert_time + self.delay_sec - time.time() + + # return element if it's still in the queue + with self._lock: + if len(self._queue) > 0 and self._queue[0][0] is head: + self._queue.popleft() + return head + + def remove(self, predicate: Callable[[T], bool]) -> T | None: + """Remove and return the first items for which predicate is True, + ignoring delay. + """ + with self._lock: + for i, (elem, *_) in enumerate(self._queue): + if predicate(elem): + del self._queue[i] + return elem + return None diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/dirsnapshot.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/dirsnapshot.py new file mode 100644 index 0000000000000000000000000000000000000000..ff69b0b35e677a8873d2e8d28f2857100f8f4c36 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/dirsnapshot.py @@ -0,0 +1,424 @@ +""":module: watchdog.utils.dirsnapshot +:synopsis: Directory snapshots and comparison. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +.. ADMONITION:: Where are the moved events? They "disappeared" + + This implementation does not take partition boundaries + into consideration. It will only work when the directory + tree is entirely on the same file system. More specifically, + any part of the code that depends on inode numbers can + break if partition boundaries are crossed. In these cases, + the snapshot diff will represent file/directory movement as + created and deleted events. + +Classes +------- +.. autoclass:: DirectorySnapshot + :members: + :show-inheritance: + +.. autoclass:: DirectorySnapshotDiff + :members: + :show-inheritance: + +.. autoclass:: EmptyDirectorySnapshot + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import contextlib +import errno +import os +from stat import S_ISDIR +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from collections.abc import Iterator + from typing import Any, Callable + + +class DirectorySnapshotDiff: + """Compares two directory snapshots and creates an object that represents + the difference between the two snapshots. + + :param ref: + The reference directory snapshot. + :type ref: + :class:`DirectorySnapshot` + :param snapshot: + The directory snapshot which will be compared + with the reference snapshot. + :type snapshot: + :class:`DirectorySnapshot` + :param ignore_device: + A boolean indicating whether to ignore the device id or not. + By default, a file may be uniquely identified by a combination of its first + inode and its device id. The problem is that the device id may (or may not) + change between system boots. This problem would cause the DirectorySnapshotDiff + to think a file has been deleted and created again but it would be the + exact same file. + Set to True only if you are sure you will always use the same device. + :type ignore_device: + :class:`bool` + """ + + def __init__( + self, + ref: DirectorySnapshot, + snapshot: DirectorySnapshot, + *, + ignore_device: bool = False, + ) -> None: + created = snapshot.paths - ref.paths + deleted = ref.paths - snapshot.paths + + if ignore_device: + + def get_inode(directory: DirectorySnapshot, full_path: bytes | str) -> int | tuple[int, int]: + return directory.inode(full_path)[0] + + else: + + def get_inode(directory: DirectorySnapshot, full_path: bytes | str) -> int | tuple[int, int]: + return directory.inode(full_path) + + # check that all unchanged paths have the same inode + for path in ref.paths & snapshot.paths: + if get_inode(ref, path) != get_inode(snapshot, path): + created.add(path) + deleted.add(path) + + # find moved paths + moved: set[tuple[bytes | str, bytes | str]] = set() + for path in set(deleted): + inode = ref.inode(path) + new_path = snapshot.path(inode) + if new_path: + # file is not deleted but moved + deleted.remove(path) + moved.add((path, new_path)) + + for path in set(created): + inode = snapshot.inode(path) + old_path = ref.path(inode) + if old_path: + created.remove(path) + moved.add((old_path, path)) + + # find modified paths + # first check paths that have not moved + modified: set[bytes | str] = set() + for path in ref.paths & snapshot.paths: + if get_inode(ref, path) == get_inode(snapshot, path) and ( + ref.mtime(path) != snapshot.mtime(path) or ref.size(path) != snapshot.size(path) + ): + modified.add(path) + + for old_path, new_path in moved: + if ref.mtime(old_path) != snapshot.mtime(new_path) or ref.size(old_path) != snapshot.size(new_path): + modified.add(old_path) + + self._dirs_created = [path for path in created if snapshot.isdir(path)] + self._dirs_deleted = [path for path in deleted if ref.isdir(path)] + self._dirs_modified = [path for path in modified if ref.isdir(path)] + self._dirs_moved = [(frm, to) for (frm, to) in moved if ref.isdir(frm)] + + self._files_created = list(created - set(self._dirs_created)) + self._files_deleted = list(deleted - set(self._dirs_deleted)) + self._files_modified = list(modified - set(self._dirs_modified)) + self._files_moved = list(moved - set(self._dirs_moved)) + + def __str__(self) -> str: + return self.__repr__() + + def __repr__(self) -> str: + fmt = ( + "<{0} files(created={1}, deleted={2}, modified={3}, moved={4})," + " folders(created={5}, deleted={6}, modified={7}, moved={8})>" + ) + return fmt.format( + type(self).__name__, + len(self._files_created), + len(self._files_deleted), + len(self._files_modified), + len(self._files_moved), + len(self._dirs_created), + len(self._dirs_deleted), + len(self._dirs_modified), + len(self._dirs_moved), + ) + + @property + def files_created(self) -> list[bytes | str]: + """List of files that were created.""" + return self._files_created + + @property + def files_deleted(self) -> list[bytes | str]: + """List of files that were deleted.""" + return self._files_deleted + + @property + def files_modified(self) -> list[bytes | str]: + """List of files that were modified.""" + return self._files_modified + + @property + def files_moved(self) -> list[tuple[bytes | str, bytes | str]]: + """List of files that were moved. + + Each event is a two-tuple the first item of which is the path + that has been renamed to the second item in the tuple. + """ + return self._files_moved + + @property + def dirs_modified(self) -> list[bytes | str]: + """List of directories that were modified.""" + return self._dirs_modified + + @property + def dirs_moved(self) -> list[tuple[bytes | str, bytes | str]]: + """List of directories that were moved. + + Each event is a two-tuple the first item of which is the path + that has been renamed to the second item in the tuple. + """ + return self._dirs_moved + + @property + def dirs_deleted(self) -> list[bytes | str]: + """List of directories that were deleted.""" + return self._dirs_deleted + + @property + def dirs_created(self) -> list[bytes | str]: + """List of directories that were created.""" + return self._dirs_created + + class ContextManager: + """Context manager that creates two directory snapshots and a + diff object that represents the difference between the two snapshots. + + :param path: + The directory path for which a snapshot should be taken. + :type path: + ``str`` + :param recursive: + ``True`` if the entire directory tree should be included in the + snapshot; ``False`` otherwise. + :type recursive: + ``bool`` + :param stat: + Use custom stat function that returns a stat structure for path. + Currently only st_dev, st_ino, st_mode and st_mtime are needed. + + A function taking a ``path`` as argument which will be called + for every entry in the directory tree. + :param listdir: + Use custom listdir function. For details see ``os.scandir``. + :param ignore_device: + A boolean indicating whether to ignore the device id or not. + By default, a file may be uniquely identified by a combination of its first + inode and its device id. The problem is that the device id may (or may not) + change between system boots. This problem would cause the DirectorySnapshotDiff + to think a file has been deleted and created again but it would be the + exact same file. + Set to True only if you are sure you will always use the same device. + :type ignore_device: + :class:`bool` + """ + + def __init__( + self, + path: str, + *, + recursive: bool = True, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ignore_device: bool = False, + ) -> None: + self.path = path + self.recursive = recursive + self.stat = stat + self.listdir = listdir + self.ignore_device = ignore_device + + def __enter__(self) -> None: + self.pre_snapshot = self.get_snapshot() + + def __exit__(self, *args: object) -> None: + self.post_snapshot = self.get_snapshot() + self.diff = DirectorySnapshotDiff( + self.pre_snapshot, + self.post_snapshot, + ignore_device=self.ignore_device, + ) + + def get_snapshot(self) -> DirectorySnapshot: + return DirectorySnapshot( + path=self.path, + recursive=self.recursive, + stat=self.stat, + listdir=self.listdir, + ) + + +class DirectorySnapshot: + """A snapshot of stat information of files in a directory. + + :param path: + The directory path for which a snapshot should be taken. + :type path: + ``str`` + :param recursive: + ``True`` if the entire directory tree should be included in the + snapshot; ``False`` otherwise. + :type recursive: + ``bool`` + :param stat: + Use custom stat function that returns a stat structure for path. + Currently only st_dev, st_ino, st_mode and st_mtime are needed. + + A function taking a ``path`` as argument which will be called + for every entry in the directory tree. + :param listdir: + Use custom listdir function. For details see ``os.scandir``. + """ + + def __init__( + self, + path: str, + *, + recursive: bool = True, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ) -> None: + self.recursive = recursive + self.stat = stat + self.listdir = listdir + + self._stat_info: dict[bytes | str, os.stat_result] = {} + self._inode_to_path: dict[tuple[int, int], bytes | str] = {} + + st = self.stat(path) + self._stat_info[path] = st + self._inode_to_path[(st.st_ino, st.st_dev)] = path + + for p, st in self.walk(path): + i = (st.st_ino, st.st_dev) + self._inode_to_path[i] = p + self._stat_info[p] = st + + def walk(self, root: str) -> Iterator[tuple[str, os.stat_result]]: + try: + paths = [os.path.join(root, entry.name) for entry in self.listdir(root)] + except OSError as e: + # Directory may have been deleted between finding it in the directory + # list of its parent and trying to delete its contents. If this + # happens we treat it as empty. Likewise if the directory was replaced + # with a file of the same name (less likely, but possible). + if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL): + return + else: + raise + + entries = [] + for p in paths: + with contextlib.suppress(OSError): + entry = (p, self.stat(p)) + entries.append(entry) + yield entry + + if self.recursive: + for path, st in entries: + with contextlib.suppress(PermissionError): + if S_ISDIR(st.st_mode): + yield from self.walk(path) + + @property + def paths(self) -> set[bytes | str]: + """Set of file/directory paths in the snapshot.""" + return set(self._stat_info.keys()) + + def path(self, uid: tuple[int, int]) -> bytes | str | None: + """Returns path for id. None if id is unknown to this snapshot.""" + return self._inode_to_path.get(uid) + + def inode(self, path: bytes | str) -> tuple[int, int]: + """Returns an id for path.""" + st = self._stat_info[path] + return (st.st_ino, st.st_dev) + + def isdir(self, path: bytes | str) -> bool: + return S_ISDIR(self._stat_info[path].st_mode) + + def mtime(self, path: bytes | str) -> float: + return self._stat_info[path].st_mtime + + def size(self, path: bytes | str) -> int: + return self._stat_info[path].st_size + + def stat_info(self, path: bytes | str) -> os.stat_result: + """Returns a stat information object for the specified path from + the snapshot. + + Attached information is subject to change. Do not use unless + you specify `stat` in constructor. Use :func:`inode`, :func:`mtime`, + :func:`isdir` instead. + + :param path: + The path for which stat information should be obtained + from a snapshot. + """ + return self._stat_info[path] + + def __sub__(self, previous_dirsnap: DirectorySnapshot) -> DirectorySnapshotDiff: + """Allow subtracting a DirectorySnapshot object instance from + another. + + :returns: + A :class:`DirectorySnapshotDiff` object. + """ + return DirectorySnapshotDiff(previous_dirsnap, self) + + def __str__(self) -> str: + return self.__repr__() + + def __repr__(self) -> str: + return str(self._stat_info) + + +class EmptyDirectorySnapshot(DirectorySnapshot): + """Class to implement an empty snapshot. This is used together with + DirectorySnapshot and DirectorySnapshotDiff in order to get all the files/folders + in the directory as created. + """ + + def __init__(self) -> None: + pass + + @staticmethod + def path(_: Any) -> None: + """Mock up method to return the path of the received inode. As the snapshot + is intended to be empty, it always returns None. + + :returns: + None. + """ + return + + @property + def paths(self) -> set: + """Mock up method to return a set of file/directory paths in the snapshot. As + the snapshot is intended to be empty, it always returns an empty set. + + :returns: + An empty set. + """ + return set() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/echo.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/echo.py new file mode 100644 index 0000000000000000000000000000000000000000..4ff9217d341584b2d2bc119506b6789a6a58593d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/echo.py @@ -0,0 +1,68 @@ +# echo.py: Tracing function calls using Python decorators. +# +# Written by Thomas Guest +# Please see http://wordaligned.org/articles/echo +# +# Place into the public domain. + +"""Echo calls made to functions in a module. + +"Echoing" a function call means printing out the name of the function +and the values of its arguments before making the call (which is more +commonly referred to as "tracing", but Python already has a trace module). + +Alternatively, echo.echo can be used to decorate functions. Calls to the +decorated function will be echoed. + +Example: +------- + + @echo.echo + def my_function(args): + pass + +""" + +from __future__ import annotations + +import functools +import sys +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any, Callable + + +def format_arg_value(arg_val: tuple[str, tuple[Any, ...]]) -> str: + """Return a string representing a (name, value) pair.""" + arg, val = arg_val + return f"{arg}={val!r}" + + +def echo(fn: Callable, write: Callable[[str], int | None] = sys.stdout.write) -> Callable: + """Echo calls to a function. + + Returns a decorated version of the input function which "echoes" calls + made to it by writing out the function's name and the arguments it was + called with. + """ + # Unpack function's arg count, arg names, arg defaults + code = fn.__code__ + argcount = code.co_argcount + argnames = code.co_varnames[:argcount] + fn_defaults: tuple[Any] = fn.__defaults__ or () + argdefs = dict(list(zip(argnames[-len(fn_defaults) :], fn_defaults))) + + @functools.wraps(fn) + def wrapped(*v: Any, **k: Any) -> Callable: + # Collect function arguments by chaining together positional, + # defaulted, extra positional and keyword arguments. + positional = list(map(format_arg_value, list(zip(argnames, v)))) + defaulted = [format_arg_value((a, argdefs[a])) for a in argnames[len(v) :] if a not in k] + nameless = list(map(repr, v[argcount:])) + keyword = list(map(format_arg_value, list(k.items()))) + args = positional + defaulted + nameless + keyword + write(f"{fn.__name__}({', '.join(args)})\n") + return fn(*v, **k) + + return wrapped diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/event_debouncer.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/event_debouncer.py new file mode 100644 index 0000000000000000000000000000000000000000..d9569733354904f057b29535a842521f0628db14 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/event_debouncer.py @@ -0,0 +1,66 @@ +from __future__ import annotations + +import logging +import threading +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread + +if TYPE_CHECKING: + from typing import Callable + + from watchdog.events import FileSystemEvent + +logger = logging.getLogger(__name__) + + +class EventDebouncer(BaseThread): + """Background thread for debouncing event handling. + + When an event is received, wait until the configured debounce interval + passes before calling the callback. If additional events are received + before the interval passes, reset the timer and keep waiting. When the + debouncing interval passes, the callback will be called with a list of + events in the order in which they were received. + """ + + def __init__( + self, + debounce_interval_seconds: int, + events_callback: Callable[[list[FileSystemEvent]], None], + ) -> None: + super().__init__() + self.debounce_interval_seconds = debounce_interval_seconds + self.events_callback = events_callback + + self._events: list[FileSystemEvent] = [] + self._cond = threading.Condition() + + def handle_event(self, event: FileSystemEvent) -> None: + with self._cond: + self._events.append(event) + self._cond.notify() + + def stop(self) -> None: + with self._cond: + super().stop() + self._cond.notify() + + def run(self) -> None: + with self._cond: + while True: + # Wait for first event (or shutdown). + self._cond.wait() + + if self.debounce_interval_seconds: + # Wait for additional events (or shutdown) until the debounce interval passes. + while self.should_keep_running(): + if not self._cond.wait(timeout=self.debounce_interval_seconds): + break + + if not self.should_keep_running(): + break + + events = self._events + self._events = [] + self.events_callback(events) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/patterns.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/patterns.py new file mode 100644 index 0000000000000000000000000000000000000000..95b479ae6be56e13aa020b28a42813e90d6a3797 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/patterns.py @@ -0,0 +1,99 @@ +""":module: watchdog.utils.patterns +:synopsis: Common wildcard searching/filtering functionality for files. +:author: boris.staletic@gmail.com (Boris Staletic) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" + +from __future__ import annotations + +# Non-pure path objects are only allowed on their respective OS's. +# Thus, these utilities require "pure" path objects that don't access the filesystem. +# Since pathlib doesn't have a `case_sensitive` parameter, we have to approximate it +# by converting input paths to `PureWindowsPath` and `PurePosixPath` where: +# - `PureWindowsPath` is always case-insensitive. +# - `PurePosixPath` is always case-sensitive. +# Reference: https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match +from pathlib import PurePosixPath, PureWindowsPath +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from collections.abc import Iterator + + +def _match_path( + raw_path: str, + included_patterns: set[str], + excluded_patterns: set[str], + *, + case_sensitive: bool, +) -> bool: + """Internal function same as :func:`match_path` but does not check arguments.""" + path: PurePosixPath | PureWindowsPath + if case_sensitive: + path = PurePosixPath(raw_path) + else: + included_patterns = {pattern.lower() for pattern in included_patterns} + excluded_patterns = {pattern.lower() for pattern in excluded_patterns} + path = PureWindowsPath(raw_path) + + common_patterns = included_patterns & excluded_patterns + if common_patterns: + error = f"conflicting patterns `{common_patterns}` included and excluded" + raise ValueError(error) + + return any(path.match(p) for p in included_patterns) and not any(path.match(p) for p in excluded_patterns) + + +def filter_paths( + paths: list[str], + *, + included_patterns: list[str] | None = None, + excluded_patterns: list[str] | None = None, + case_sensitive: bool = True, +) -> Iterator[str]: + """Filters from a set of paths based on acceptable patterns and + ignorable patterns. + :param paths: + A list of path names that will be filtered based on matching and + ignored patterns. + :param included_patterns: + Allow filenames matching wildcard patterns specified in this list. + If no pattern list is specified, ["*"] is used as the default pattern, + which matches all files. + :param excluded_patterns: + Ignores filenames matching wildcard patterns specified in this list. + If no pattern list is specified, no files are ignored. + :param case_sensitive: + ``True`` if matching should be case-sensitive; ``False`` otherwise. + :returns: + A list of pathnames that matched the allowable patterns and passed + through the ignored patterns. + """ + included = set(["*"] if included_patterns is None else included_patterns) + excluded = set([] if excluded_patterns is None else excluded_patterns) + + for path in paths: + if _match_path(path, included, excluded, case_sensitive=case_sensitive): + yield path + + +def match_any_paths( + paths: list[str], + *, + included_patterns: list[str] | None = None, + excluded_patterns: list[str] | None = None, + case_sensitive: bool = True, +) -> bool: + """Matches from a set of paths based on acceptable patterns and + ignorable patterns. + See ``filter_paths()`` for signature details. + """ + return any( + filter_paths( + paths, + included_patterns=included_patterns, + excluded_patterns=excluded_patterns, + case_sensitive=case_sensitive, + ), + ) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/platform.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/platform.py new file mode 100644 index 0000000000000000000000000000000000000000..3c11d152c0302ad28794c3a415ab43b3ecf8a8d2 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/platform.py @@ -0,0 +1,44 @@ +from __future__ import annotations + +import sys + +PLATFORM_WINDOWS = "windows" +PLATFORM_LINUX = "linux" +PLATFORM_BSD = "bsd" +PLATFORM_DARWIN = "darwin" +PLATFORM_UNKNOWN = "unknown" + + +def get_platform_name() -> str: + if sys.platform.startswith("win"): + return PLATFORM_WINDOWS + + if sys.platform.startswith("darwin"): + return PLATFORM_DARWIN + + if sys.platform.startswith("linux"): + return PLATFORM_LINUX + + if sys.platform.startswith(("dragonfly", "freebsd", "netbsd", "openbsd", "bsd")): + return PLATFORM_BSD + + return PLATFORM_UNKNOWN + + +__platform__ = get_platform_name() + + +def is_linux() -> bool: + return __platform__ == PLATFORM_LINUX + + +def is_bsd() -> bool: + return __platform__ == PLATFORM_BSD + + +def is_darwin() -> bool: + return __platform__ == PLATFORM_DARWIN + + +def is_windows() -> bool: + return __platform__ == PLATFORM_WINDOWS diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/process_watcher.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/process_watcher.py new file mode 100644 index 0000000000000000000000000000000000000000..f500266a5bbd688c436bd7fcd6091cd78dfded6f --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/utils/process_watcher.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import logging +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread + +if TYPE_CHECKING: + import subprocess + from typing import Callable + +logger = logging.getLogger(__name__) + + +class ProcessWatcher(BaseThread): + def __init__(self, popen_obj: subprocess.Popen, process_termination_callback: Callable[[], None] | None) -> None: + super().__init__() + self.popen_obj = popen_obj + self.process_termination_callback = process_termination_callback + + def run(self) -> None: + while self.popen_obj.poll() is None: + if self.stopped_event.wait(timeout=0.1): + return + + try: + if not self.stopped_event.is_set() and self.process_termination_callback: + self.process_termination_callback() + except Exception: + logger.exception("Error calling process termination callback") diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/version.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/version.py new file mode 100644 index 0000000000000000000000000000000000000000..8e1876f6a2bc12c11999a2299d8b03b9332d1098 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/version.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +# When updating this version number, please update the +# ``docs/source/global.rst.inc`` file as well. +VERSION_MAJOR = 6 +VERSION_MINOR = 0 +VERSION_BUILD = 0 +VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD) +VERSION_STRING = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}" + +__version__ = VERSION_INFO diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/watchmedo.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/watchmedo.py new file mode 100644 index 0000000000000000000000000000000000000000..e7879563c96b71ab428f942e8f4cce435cdb5a4e --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Lib/site-packages/watchdog/watchmedo.py @@ -0,0 +1,807 @@ +""":module: watchdog.watchmedo +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:synopsis: ``watchmedo`` shell script utility. +""" + +from __future__ import annotations + +import errno +import logging +import os +import os.path +import sys +import time +from argparse import ArgumentParser, RawDescriptionHelpFormatter +from io import StringIO +from textwrap import dedent +from typing import TYPE_CHECKING, Any + +from watchdog.utils import WatchdogShutdownError, load_class, platform +from watchdog.version import VERSION_STRING + +if TYPE_CHECKING: + from argparse import Namespace, _SubParsersAction + from typing import Callable + + from watchdog.events import FileSystemEventHandler + from watchdog.observers import ObserverType + from watchdog.observers.api import BaseObserver + + +logging.basicConfig(level=logging.INFO) + +CONFIG_KEY_TRICKS = "tricks" +CONFIG_KEY_PYTHON_PATH = "python-path" + + +class HelpFormatter(RawDescriptionHelpFormatter): + """A nicer help formatter. + + Help for arguments can be indented and contain new lines. + It will be de-dented and arguments in the help + will be separated by a blank line for better readability. + + Source: https://github.com/httpie/httpie/blob/2423f89/httpie/cli/argparser.py#L31 + """ + + def __init__(self, *args: Any, max_help_position: int = 6, **kwargs: Any) -> None: + # A smaller indent for args help. + kwargs["max_help_position"] = max_help_position + super().__init__(*args, **kwargs) + + def __repr__(self) -> str: + return f"<{type(self).__name__}>" + + def _split_lines(self, text: str, width: int) -> list[str]: + text = dedent(text).strip() + "\n\n" + return text.splitlines() + + +epilog = """\ +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly + +Licensed under the terms of the Apache license, version 2.0. Please see +LICENSE in the source code for more information.""" + +cli = ArgumentParser(epilog=epilog, formatter_class=HelpFormatter) +cli.add_argument("--version", action="version", version=VERSION_STRING) +subparsers = cli.add_subparsers(dest="top_command") +command_parsers = {} + +Argument = tuple[list[str], Any] + + +def argument(*name_or_flags: str, **kwargs: Any) -> Argument: + """Convenience function to properly format arguments to pass to the + command decorator. + """ + return list(name_or_flags), kwargs + + +def command( + args: list[Argument], + *, + parent: _SubParsersAction[ArgumentParser] = subparsers, + cmd_aliases: list[str] | None = None, +) -> Callable: + """Decorator to define a new command in a sanity-preserving way. + The function will be stored in the ``func`` variable when the parser + parses arguments so that it can be called directly like so:: + + >>> args = cli.parse_args() + >>> args.func(args) + + """ + + def decorator(func: Callable) -> Callable: + name = func.__name__.replace("_", "-") + desc = dedent(func.__doc__ or "") + parser = parent.add_parser(name, aliases=cmd_aliases or [], description=desc, formatter_class=HelpFormatter) + command_parsers[name] = parser + verbosity_group = parser.add_mutually_exclusive_group() + verbosity_group.add_argument("-q", "--quiet", dest="verbosity", action="append_const", const=-1) + verbosity_group.add_argument("-v", "--verbose", dest="verbosity", action="append_const", const=1) + for name_or_flags, kwargs in args: + parser.add_argument(*name_or_flags, **kwargs) + parser.set_defaults(func=func) + return func + + return decorator + + +def path_split(pathname_spec: str, *, separator: str = os.pathsep) -> list[str]: + """Splits a pathname specification separated by an OS-dependent separator. + + :param pathname_spec: + The pathname specification. + :param separator: + (OS Dependent) `:` on Unix and `;` on Windows or user-specified. + """ + return pathname_spec.split(separator) + + +def add_to_sys_path(pathnames: list[str], *, index: int = 0) -> None: + """Adds specified paths at specified index into the sys.path list. + + :param paths: + A list of paths to add to the sys.path + :param index: + (Default 0) The index in the sys.path list where the paths will be + added. + """ + for pathname in pathnames[::-1]: + sys.path.insert(index, pathname) + + +def load_config(tricks_file_pathname: str) -> dict: + """Loads the YAML configuration from the specified file. + + :param tricks_file_path: + The path to the tricks configuration file. + :returns: + A dictionary of configuration information. + """ + import yaml + + with open(tricks_file_pathname, "rb") as f: + return yaml.safe_load(f.read()) + + +def parse_patterns( + patterns_spec: str, ignore_patterns_spec: str, *, separator: str = ";" +) -> tuple[list[str], list[str]]: + """Parses pattern argument specs and returns a two-tuple of + (patterns, ignore_patterns). + """ + patterns = patterns_spec.split(separator) + ignore_patterns = ignore_patterns_spec.split(separator) + if ignore_patterns == [""]: + ignore_patterns = [] + return patterns, ignore_patterns + + +def observe_with( + observer: BaseObserver, + event_handler: FileSystemEventHandler, + pathnames: list[str], + *, + recursive: bool, +) -> None: + """Single observer thread with a scheduled path and event handler. + + :param observer: + The observer thread. + :param event_handler: + Event handler which will be called in response to file system events. + :param pathnames: + A list of pathnames to monitor. + :param recursive: + ``True`` if recursive; ``False`` otherwise. + """ + for pathname in set(pathnames): + observer.schedule(event_handler, pathname, recursive=recursive) + observer.start() + try: + while True: + time.sleep(1) + except WatchdogShutdownError: + observer.stop() + observer.join() + + +def schedule_tricks(observer: BaseObserver, tricks: list[dict], pathname: str, *, recursive: bool) -> None: + """Schedules tricks with the specified observer and for the given watch + path. + + :param observer: + The observer thread into which to schedule the trick and watch. + :param tricks: + A list of tricks. + :param pathname: + A path name which should be watched. + :param recursive: + ``True`` if recursive; ``False`` otherwise. + """ + for trick in tricks: + for name, value in trick.items(): + trick_cls = load_class(name) + handler = trick_cls(**value) + trick_pathname = getattr(handler, "source_directory", None) or pathname + observer.schedule(handler, trick_pathname, recursive=recursive) + + +@command( + [ + argument("files", nargs="*", help="perform tricks from given file"), + argument( + "--python-path", + default=".", + help=f"Paths separated by {os.pathsep!r} to add to the Python path.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout (in seconds).", + ), + argument( + "--recursive", + action="store_true", + default=True, + help="Recursively monitor paths (defaults to True).", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--debug-force-kqueue", + action="store_true", + help="[debug] Forces BSD kqueue(2).", + ), + argument( + "--debug-force-winapi", + action="store_true", + help="[debug] Forces Windows API.", + ), + argument( + "--debug-force-fsevents", + action="store_true", + help="[debug] Forces macOS FSEvents.", + ), + argument( + "--debug-force-inotify", + action="store_true", + help="[debug] Forces Linux inotify(7).", + ), + ], + cmd_aliases=["tricks"], +) +def tricks_from(args: Namespace) -> None: + """Command to execute tricks from a tricks configuration file.""" + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + elif args.debug_force_kqueue: + from watchdog.observers.kqueue import KqueueObserver + + observer_cls = KqueueObserver + elif (not TYPE_CHECKING and args.debug_force_winapi) or (TYPE_CHECKING and platform.is_windows()): + from watchdog.observers.read_directory_changes import WindowsApiObserver + + observer_cls = WindowsApiObserver + elif args.debug_force_inotify: + from watchdog.observers.inotify import InotifyObserver + + observer_cls = InotifyObserver + elif args.debug_force_fsevents: + from watchdog.observers.fsevents import FSEventsObserver + + observer_cls = FSEventsObserver + else: + # Automatically picks the most appropriate observer for the platform + # on which it is running. + from watchdog.observers import Observer + + observer_cls = Observer + + add_to_sys_path(path_split(args.python_path)) + observers = [] + for tricks_file in args.files: + observer = observer_cls(timeout=args.timeout) + + if not os.path.exists(tricks_file): + raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), tricks_file) + + config = load_config(tricks_file) + + try: + tricks = config[CONFIG_KEY_TRICKS] + except KeyError as e: + error = f"No {CONFIG_KEY_TRICKS!r} key specified in {tricks_file!r}." + raise KeyError(error) from e + + if CONFIG_KEY_PYTHON_PATH in config: + add_to_sys_path(config[CONFIG_KEY_PYTHON_PATH]) + + dir_path = os.path.dirname(tricks_file) or os.path.relpath(os.getcwd()) + schedule_tricks(observer, tricks, dir_path, recursive=args.recursive) + observer.start() + observers.append(observer) + + try: + while True: + time.sleep(1) + except WatchdogShutdownError: + for o in observers: + o.unschedule_all() + o.stop() + for o in observers: + o.join() + + +@command( + [ + argument( + "trick_paths", + nargs="*", + help="Dotted paths for all the tricks you want to generate.", + ), + argument( + "--python-path", + default=".", + help=f"Paths separated by {os.pathsep!r} to add to the Python path.", + ), + argument( + "--append-to-file", + default=None, + help=""" + Appends the generated tricks YAML to a file. + If not specified, prints to standard output.""", + ), + argument( + "-a", + "--append-only", + dest="append_only", + action="store_true", + help=""" + If --append-to-file is not specified, produces output for + appending instead of a complete tricks YAML file.""", + ), + ], + cmd_aliases=["generate-tricks-yaml"], +) +def tricks_generate_yaml(args: Namespace) -> None: + """Command to generate Yaml configuration for tricks named on the command line.""" + import yaml + + python_paths = path_split(args.python_path) + add_to_sys_path(python_paths) + output = StringIO() + + for trick_path in args.trick_paths: + trick_cls = load_class(trick_path) + output.write(trick_cls.generate_yaml()) + + content = output.getvalue() + output.close() + + header = yaml.dump({CONFIG_KEY_PYTHON_PATH: python_paths}) + header += f"{CONFIG_KEY_TRICKS}:\n" + if args.append_to_file is None: + # Output to standard output. + if not args.append_only: + content = header + content + sys.stdout.write(content) + else: + if not os.path.exists(args.append_to_file): + content = header + content + with open(args.append_to_file, "a", encoding="utf-8") as file: + file.write(content) + + +@command( + [ + argument( + "directories", + nargs="*", + default=".", + help="Directories to watch. (default: '.').", + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--debug-force-kqueue", + action="store_true", + help="[debug] Forces BSD kqueue(2).", + ), + argument( + "--debug-force-winapi", + action="store_true", + help="[debug] Forces Windows API.", + ), + argument( + "--debug-force-fsevents", + action="store_true", + help="[debug] Forces macOS FSEvents.", + ), + argument( + "--debug-force-inotify", + action="store_true", + help="[debug] Forces Linux inotify(7).", + ), + ], +) +def log(args: Namespace) -> None: + """Command to log file system events to the console.""" + from watchdog.tricks import LoggerTrick + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + handler = LoggerTrick( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + ) + + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + elif args.debug_force_kqueue: + from watchdog.observers.kqueue import KqueueObserver + + observer_cls = KqueueObserver + elif (not TYPE_CHECKING and args.debug_force_winapi) or (TYPE_CHECKING and platform.is_windows()): + from watchdog.observers.read_directory_changes import WindowsApiObserver + + observer_cls = WindowsApiObserver + elif args.debug_force_inotify: + from watchdog.observers.inotify import InotifyObserver + + observer_cls = InotifyObserver + elif args.debug_force_fsevents: + from watchdog.observers.fsevents import FSEventsObserver + + observer_cls = FSEventsObserver + else: + # Automatically picks the most appropriate observer for the platform + # on which it is running. + from watchdog.observers import Observer + + observer_cls = Observer + + observer = observer_cls(timeout=args.timeout) + observe_with(observer, handler, args.directories, recursive=args.recursive) + + +@command( + [ + argument("directories", nargs="*", default=".", help="Directories to watch."), + argument( + "-c", + "--command", + dest="command", + default=None, + help=""" + Shell command executed in response to matching events. + These interpolation variables are available to your command string: + + ${watch_src_path} - event source path + ${watch_dest_path} - event destination path (for moved events) + ${watch_event_type} - event type + ${watch_object} - 'file' or 'directory' + + Note: + Please ensure you do not use double quotes (") to quote + your command string. That will force your shell to + interpolate before the command is processed by this + command. + + Example: + + --command='echo "${watch_src_path}"' + """, + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + default=False, + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument( + "-w", + "--wait", + dest="wait_for_process", + action="store_true", + help="Wait for process to finish to avoid multiple simultaneous instances.", + ), + argument( + "-W", + "--drop", + dest="drop_during_process", + action="store_true", + help="Ignore events that occur while command is still being" + " executed to avoid multiple simultaneous instances.", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + ], +) +def shell_command(args: Namespace) -> None: + """Command to execute shell commands in response to file system events.""" + from watchdog.tricks import ShellCommandTrick + + if not args.command: + args.command = None + + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + else: + from watchdog.observers import Observer + + observer_cls = Observer + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + handler = ShellCommandTrick( + args.command, + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + wait_for_process=args.wait_for_process, + drop_during_process=args.drop_during_process, + ) + observer = observer_cls(timeout=args.timeout) + observe_with(observer, handler, args.directories, recursive=args.recursive) + + +@command( + [ + argument("command", help="Long-running command to run in a subprocess."), + argument( + "command_args", + metavar="arg", + nargs="*", + help=""" + Command arguments. + + Note: Use -- before the command arguments, otherwise watchmedo will + try to interpret them. + """, + ), + argument( + "-d", + "--directory", + dest="directories", + metavar="DIRECTORY", + action="append", + help="Directory to watch. Use another -d or --directory option for each directory.", + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + default=False, + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument( + "--signal", + dest="signal", + default="SIGINT", + help="Stop the subprocess with this signal (default SIGINT).", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--kill-after", + dest="kill_after", + default=10.0, + type=float, + help="When stopping, kill the subprocess after the specified timeout in seconds (default 10.0).", + ), + argument( + "--debounce-interval", + dest="debounce_interval", + default=0.0, + type=float, + help="After a file change, Wait until the specified interval (in " + "seconds) passes with no file changes, and only then restart.", + ), + argument( + "--no-restart-on-command-exit", + dest="restart_on_command_exit", + default=True, + action="store_false", + help="Don't auto-restart the command after it exits.", + ), + ], +) +def auto_restart(args: Namespace) -> None: + """Command to start a long-running subprocess and restart it on matched events.""" + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + else: + from watchdog.observers import Observer + + observer_cls = Observer + + import signal + + from watchdog.tricks import AutoRestartTrick + + if not args.directories: + args.directories = ["."] + + # Allow either signal name or number. + stop_signal = getattr(signal, args.signal) if args.signal.startswith("SIG") else int(args.signal) + + # Handle termination signals by raising a semantic exception which will + # allow us to gracefully unwind and stop the observer + termination_signals = {signal.SIGTERM, signal.SIGINT} + + if hasattr(signal, "SIGHUP"): + termination_signals.add(signal.SIGHUP) + + def handler_termination_signal(_signum: signal._SIGNUM, _frame: object) -> None: + # Neuter all signals so that we don't attempt a double shutdown + for signum in termination_signals: + signal.signal(signum, signal.SIG_IGN) + raise WatchdogShutdownError + + for signum in termination_signals: + signal.signal(signum, handler_termination_signal) + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + command = [args.command] + command.extend(args.command_args) + handler = AutoRestartTrick( + command, + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + stop_signal=stop_signal, + kill_after=args.kill_after, + debounce_interval_seconds=args.debounce_interval, + restart_on_command_exit=args.restart_on_command_exit, + ) + handler.start() + observer = observer_cls(timeout=args.timeout) + try: + observe_with(observer, handler, args.directories, recursive=args.recursive) + except WatchdogShutdownError: + pass + finally: + handler.stop() + + +class LogLevelError(Exception): + pass + + +def _get_log_level_from_args(args: Namespace) -> str: + verbosity = sum(args.verbosity or []) + if verbosity < -1: + error = "-q/--quiet may be specified only once." + raise LogLevelError(error) + if verbosity > 2: + error = "-v/--verbose may be specified up to 2 times." + raise LogLevelError(error) + return ["ERROR", "WARNING", "INFO", "DEBUG"][1 + verbosity] + + +def main() -> int: + """Entry-point function.""" + args = cli.parse_args() + if args.top_command is None: + cli.print_help() + return 1 + + try: + log_level = _get_log_level_from_args(args) + except LogLevelError as exc: + print(f"Error: {exc.args[0]}", file=sys.stderr) # noqa:T201 + command_parsers[args.top_command].print_help() + return 1 + logging.getLogger("watchdog").setLevel(log_level) + + try: + args.func(args) + except KeyboardInterrupt: + return 130 + + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo-script.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo-script.py new file mode 100644 index 0000000000000000000000000000000000000000..456a3be503ce7865ac883b18e38f1cb7a84ce04d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo-script.py @@ -0,0 +1,10 @@ + +# -*- coding: utf-8 -*- +import re +import sys + +from watchdog.watchmedo import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo.exe new file mode 100644 index 0000000000000000000000000000000000000000..675e6bf3743f3d3011c238657e7128ee9960ef7f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/Scripts/watchmedo.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/about.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..2ffc664a8d077fcb0a128af5ae0412d19bdeacc3 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/about.json @@ -0,0 +1,23 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/" + ], + "dev_url": "http://github.com/gorakhargosh/watchdog", + "doc_url": "http://pythonhosted.org/watchdog", + "extra": { + "flow_run_id": "azure_20260304.1.1", + "recipe-maintainers": [ + "goanpeca", + "rlaverde", + "ccordoba12", + "andfoy", + "tschoonj", + "xhochy" + ], + "remote_url": "https://github.com/conda-forge/watchdog-feedstock", + "sha": "612f795087c956b7e06a05cbfc96126f1510e425" + }, + "home": "http://github.com/gorakhargosh/watchdog", + "license": "Apache-2.0", + "summary": "Filesystem events monitoring" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/hash_input.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..884c95caadcb84e792ca16a50b5f3e2bb05db441 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/hash_input.json @@ -0,0 +1 @@ +{"build_platform": "win-64", "channel_sources": "conda-forge", "channel_targets": "conda-forge main", "python": "3.14.* *_cp314", "target_platform": "win-64"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/index.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..cdaa20150f0d68055b89d4b7300d7cb37da9285a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "py314hb821551_3", + "build_number": 3, + "depends": [ + "python", + "pyyaml >=3.10", + "python_abi 3.14.* *_cp314" + ], + "license": "Apache-2.0", + "name": "watchdog", + "platform": "win", + "subdir": "win-64", + "timestamp": 1772608056341, + "version": "6.0.0" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/paths.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..cf16d5e054c755f32019d909c6f43cc8f0457f0e --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/paths.json @@ -0,0 +1,389 @@ +{ + "paths": [ + { + "_path": "Lib/site-packages/watchdog/__init__.py", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "6471710f249081bf72c841d62d93b328421e09ad36bc26e495261a146907ce36", + "size_in_bytes": 188 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "96c288d715f404c20bb100b49635713887115a8c2ab1c43d6f0676c45938176f", + "size_in_bytes": 27245 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "34c9f7620fee1a9cbd206c0a0d3dc522606eae3ec8580a21dae294d616d08ebc", + "size_in_bytes": 429 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "a74a7fd08362fa2dd768269110eda464be9059b4c2d908fdcebaf9cde15393a9", + "size_in_bytes": 29494 + }, + { + "_path": "Lib/site-packages/watchdog/events.py", + "path_type": "hardlink", + "sha256": "8a0e2808d726fa649eeab2b92cfb0851c30eddd7eaf4429e81f33d2384b056ff", + "size_in_bytes": 16323 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__init__.py", + "path_type": "hardlink", + "sha256": "0665ca2f55975a724ff3e591ae13f892618ad3880d00387589f25ecde66ce21b", + "size_in_bytes": 3256 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "8b5ae2878cf4ed77c0f316c19ad5f1b040dc4f04e441ef5638675b5031fad95f", + "size_in_bytes": 4589 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "ffac34139db1165aaa409319ef705c277b2c3fcc9b8f96184b7904e173108095", + "size_in_bytes": 25585 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "a90231befc5955f9dc0dd6d42f2f372ab1155199e3f2bb8495cb83763ab915cf", + "size_in_bytes": 19825 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "2c9a00aca391a956d9bdfd84de578b260439437a606bd832b27a4e8684d02937", + "size_in_bytes": 15533 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "43947aad6d1fe34e817523b21718ce181f0c49059ab4c1173f6655c19a9c9eaa", + "size_in_bytes": 15440 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "967b8133f6e7625a0cdbe831500cfff1dc672d2f6a3031e4abbbad547946bdbf", + "size_in_bytes": 6641 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "0350de61986376b8be4fb363b8c43bba51e315ca6234aece0271f85ac0ac82dd", + "size_in_bytes": 34992 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "c7071582d1d02f518ae5b7d04a249574cb1825024467042ca2364b84f44a447a", + "size_in_bytes": 35226 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "61de48115e0faad386692e8d8f6d53fd6bae9d745279527085cc88cc365d336a", + "size_in_bytes": 7840 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "2efcd5c1af160ccf661371ff23b46ea8276b86ca76ecae139e07ffafbc8daa44", + "size_in_bytes": 7628 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/winapi.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "e89af37d06f1afaef4b2c17f8e5ed01eca4c173641d8bc4f9978decec615dd49", + "size_in_bytes": 14766 + }, + { + "_path": "Lib/site-packages/watchdog/observers/api.py", + "path_type": "hardlink", + "sha256": "b723e1a83873876a6f784902551476079d52697943b2b72997c5baa22750b94b", + "size_in_bytes": 13802 + }, + { + "_path": "Lib/site-packages/watchdog/observers/fsevents.py", + "path_type": "hardlink", + "sha256": "ea1a37b20050b7a86cabfd45e9e260b68af90a3655d3d4daa13d35c5e1cd81de", + "size_in_bytes": 14284 + }, + { + "_path": "Lib/site-packages/watchdog/observers/fsevents2.py", + "path_type": "hardlink", + "sha256": "7d9f0eef3a2696d060bee70306550764858a444167e0c281df44f98848ac3ec7", + "size_in_bytes": 9439 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify.py", + "path_type": "hardlink", + "sha256": "8b4ef900f1c8c0851d885adf7687296d8b1e754be1feedc0b4ba94ddbaa58051", + "size_in_bytes": 10649 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify_buffer.py", + "path_type": "hardlink", + "sha256": "5565ae95e15045a24bfd93348db7001a319d8f59195169948a00b85926cf9b24", + "size_in_bytes": 4434 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify_c.py", + "path_type": "hardlink", + "sha256": "cace8dad511bc366cf650524cec858e651a57c3653e27cf9f159a7e00e3d7a65", + "size_in_bytes": 21129 + }, + { + "_path": "Lib/site-packages/watchdog/observers/kqueue.py", + "path_type": "hardlink", + "sha256": "1d8011cdd17f365bbbdaf4da2016c8be1e5efcded139ddf7543b5973501bda87", + "size_in_bytes": 24425 + }, + { + "_path": "Lib/site-packages/watchdog/observers/polling.py", + "path_type": "hardlink", + "sha256": "07c83212dce44621e64927fc75c63fd0ff81bb45398be55641a9c1a885714ecd", + "size_in_bytes": 4932 + }, + { + "_path": "Lib/site-packages/watchdog/observers/read_directory_changes.py", + "path_type": "hardlink", + "sha256": "98a1d921f528a42014d1a7bba04f53b6482093b2df4dbf25c2070c24798e5b91", + "size_in_bytes": 4167 + }, + { + "_path": "Lib/site-packages/watchdog/observers/winapi.py", + "path_type": "hardlink", + "sha256": "ab69d36762589dbb845220724dc4a6a5bc388a22a1b4d43a51083d0963c85316", + "size_in_bytes": 11635 + }, + { + "_path": "Lib/site-packages/watchdog/py.typed", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog/tricks/__init__.py", + "path_type": "hardlink", + "sha256": "ccb16965f5cdfc0de35e51f4d0e9344a96ed5b13f65b0c2cc46ef0d8f5e4c4ff", + "size_in_bytes": 9492 + }, + { + "_path": "Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "76b7ab6e31e2697193c5e9c7101320b179b779d00ab934e4474faaa6bd1c137b", + "size_in_bytes": 15349 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__init__.py", + "path_type": "hardlink", + "sha256": "f6aef01195bbca5f350dbd4270b050277df167662b1b0cb3b0ada0ccd082fa51", + "size_in_bytes": 3513 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "b282bb947e6f5e6811ba043382ffbda45304512e0c21a4f0f58f7ed8abbb0ecc", + "size_in_bytes": 6781 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "b3336e363563d9391611fc5eb1b920e56ea2ec84b63192bea3b4529474e1879f", + "size_in_bytes": 4088 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "f73845bcc9e0cb7d757f3cd3b8daf349c736d272c5cd7643ec87b682ee8e8fe7", + "size_in_bytes": 5299 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "b89ed21c6b4cefdc270fc16ea9acdd48f6bc447333c90f8c094a8c0980871748", + "size_in_bytes": 24904 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "971295825bd16cc9ad27d2d8c0b27402bbf547a654807c6ffb3538563920332a", + "size_in_bytes": 3605 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "5077dfa8427fa828582b5198247172260ae4fa82ca9c519c08a819e3a6a3e185", + "size_in_bytes": 4013 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "7c1019feb692a8d191941d7b59038cf4c1e860da1a3fa84184b2a3d9fd1ca5b0", + "size_in_bytes": 4610 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "0646a02c3a52e9b5de0b6d1262885cfb07dec9d9de90c078126285671337fc6b", + "size_in_bytes": 2421 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "be512f4afd1a2073c79f54477990481b3b9922a1e5dd18af32e637cd98a24aeb", + "size_in_bytes": 2263 + }, + { + "_path": "Lib/site-packages/watchdog/utils/bricks.py", + "path_type": "hardlink", + "sha256": "719080e13f5ed625afaf7c98e05386b8ecc8a5d3f8738361c748a97e0ca1067a", + "size_in_bytes": 2545 + }, + { + "_path": "Lib/site-packages/watchdog/utils/delayed_queue.py", + "path_type": "hardlink", + "sha256": "5eff91728d746fad95b782e72c4999c65a6bf7731e055d995fe536fbe9c74b90", + "size_in_bytes": 2615 + }, + { + "_path": "Lib/site-packages/watchdog/utils/dirsnapshot.py", + "path_type": "hardlink", + "sha256": "49a1a7c6ad268996f12d972925c48e8f9b04f2286e9ea8dbe7e9bcc30f45d5a0", + "size_in_bytes": 14740 + }, + { + "_path": "Lib/site-packages/watchdog/utils/echo.py", + "path_type": "hardlink", + "sha256": "1802e0528b7dcd75403313302cde429074487639a2a355f7be9a554b5e0ff9e3", + "size_in_bytes": 2210 + }, + { + "_path": "Lib/site-packages/watchdog/utils/event_debouncer.py", + "path_type": "hardlink", + "sha256": "a1589f76de743e33a25789fed16d4e64e08d3b88faf3d0514558021ab26f1f41", + "size_in_bytes": 2079 + }, + { + "_path": "Lib/site-packages/watchdog/utils/patterns.py", + "path_type": "hardlink", + "sha256": "7e3cbc87f5da52e464a21e3ab852efdfb2738239a62b6573b756556cc35ad1c1", + "size_in_bytes": 3672 + }, + { + "_path": "Lib/site-packages/watchdog/utils/platform.py", + "path_type": "hardlink", + "sha256": "552378e58da4034352d4dce59abe521c1e02b74c6a2b6291972f63971ec31d28", + "size_in_bytes": 885 + }, + { + "_path": "Lib/site-packages/watchdog/utils/process_watcher.py", + "path_type": "hardlink", + "sha256": "aa02ed1192e160b8e92fe1996b02048d5fa9fcf9cc91afe10461ffd6fc57fa09", + "size_in_bytes": 925 + }, + { + "_path": "Lib/site-packages/watchdog/version.py", + "path_type": "hardlink", + "sha256": "82ebd033bf7cdc2b99d92e76cc4b5d86c4bf764aa16d8de6a7e190bd53380d1d", + "size_in_bytes": 349 + }, + { + "_path": "Lib/site-packages/watchdog/watchmedo.py", + "path_type": "hardlink", + "sha256": "00c4d4a4d4a542602ac5fe4486d7ca2a1e5e6223d9a03620526d467fcc43dfe8", + "size_in_bytes": 25452 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "bc33022edcb7639ff53355b4e91dade50a0bbf0299efeb6171d1ec0ba5029cfc", + "size_in_bytes": 6 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "41318aafbbd2e4b5c4470ffbbc61eba50fc67792a4c84d3bee2ef53e69a4a14a", + "size_in_bytes": 45437 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "7558fcdd74a98466e1a260b550c202e56551ddf6a9d128b4d59151489006788b", + "size_in_bytes": 4703 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "6027f0606398322e49870d9f538c8d83012bc9b6f6217e4f13004a57865b741a", + "size_in_bytes": 91 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "349b19c00c32eaed9d7e330576fa9e072db6ed665066c79ad16daf65fa618b10", + "size_in_bytes": 84 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt", + "path_type": "hardlink", + "sha256": "aadfce7b65396657f3ecb340dcf1e2a67dffd7395f453a7d764df04d2dc8bdbf", + "size_in_bytes": 66 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS", + "path_type": "hardlink", + "sha256": "253e0275f6117f5574320f516cd69a18ae8bc8ff69ced12c251e9b43e31f686f", + "size_in_bytes": 2928 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING", + "path_type": "hardlink", + "sha256": "39f081828db6f94c70123fa4fb30c1bce3e215a8fdece53a49991fe076a69c08", + "size_in_bytes": 703 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE", + "path_type": "hardlink", + "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", + "size_in_bytes": 11358 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt", + "path_type": "hardlink", + "sha256": "395751ec690f1996a4a3cb11b55b8cd0d8acf99204971de17b784a14f6274c68", + "size_in_bytes": 9 + }, + { + "_path": "Scripts/watchmedo-script.py", + "path_type": "hardlink", + "sha256": "b0948e1f44056432a6d383ee7ae48e4dec4dae69cfd99cb9195483a2b20417a9", + "size_in_bytes": 196 + }, + { + "_path": "Scripts/watchmedo.exe", + "path_type": "hardlink", + "sha256": "28b001bb9a72ae7a24242bfab248d767a1ac5dec981c672a3944f7a072375e9a", + "size_in_bytes": 74752 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/repodata_record.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..4e49ce38723cb04eabca3b70fa25553d001fb27b --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "py314hb821551_3", + "build_number": 3, + "build_string": "py314hb821551_3", + "channel": "conda-forge", + "constrains": [], + "depends": [ + "python", + "pyyaml >=3.10", + "python_abi 3.14.* *_cp314" + ], + "fn": "watchdog-6.0.0-py314hb821551_3.conda", + "license": "Apache-2.0", + "md5": "fb3b994d1855ef29ec5c49dc02708384", + "name": "watchdog", + "platform": "win", + "sha256": "881b1218e8e4a4b28b4b67b4226e490281a16a14ca8f10edd58eddd65ed23872", + "size": 203875, + "subdir": "win-64", + "timestamp": 1772608056, + "url": "https://conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314hb821551_3.conda", + "version": "6.0.0" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER new file mode 100644 index 0000000000000000000000000000000000000000..a34a7e56db35cc4c85bfa166244b3d63a6a240d4 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER @@ -0,0 +1 @@ +conda diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA new file mode 100644 index 0000000000000000000000000000000000000000..b7306a2c174d6160f5b2a0dde6d78bfb57fe2b6a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/METADATA @@ -0,0 +1,890 @@ +Metadata-Version: 2.4 +Name: watchdog +Version: 6.0.0 +Summary: Filesystem events monitoring +Home-page: https://github.com/gorakhargosh/watchdog +Author: Mickaël Schoentgen +Author-email: contact@tiger-222.fr +License: Apache-2.0 +Project-URL: Documentation, https://python-watchdog.readthedocs.io/en/stable/ +Project-URL: Source, https://github.com/gorakhargosh/watchdog/ +Project-URL: Issues, https://github.com/gorakhargosh/watchdog/issues +Project-URL: Changelog, https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst +Keywords: python filesystem monitoring monitor FSEvents kqueue inotify ReadDirectoryChangesW polling DirectorySnapshot +Classifier: Development Status :: 5 - Production/Stable +Classifier: Environment :: Console +Classifier: Intended Audience :: Developers +Classifier: Intended Audience :: System Administrators +Classifier: License :: OSI Approved :: Apache Software License +Classifier: Natural Language :: English +Classifier: Operating System :: POSIX :: Linux +Classifier: Operating System :: MacOS :: MacOS X +Classifier: Operating System :: POSIX :: BSD +Classifier: Operating System :: Microsoft :: Windows :: Windows Vista +Classifier: Operating System :: Microsoft :: Windows :: Windows 7 +Classifier: Operating System :: Microsoft :: Windows :: Windows 8 +Classifier: Operating System :: Microsoft :: Windows :: Windows 8.1 +Classifier: Operating System :: Microsoft :: Windows :: Windows 10 +Classifier: Operating System :: Microsoft :: Windows :: Windows 11 +Classifier: Operating System :: OS Independent +Classifier: Programming Language :: Python +Classifier: Programming Language :: Python :: 3 +Classifier: Programming Language :: Python :: 3 :: Only +Classifier: Programming Language :: Python :: 3.9 +Classifier: Programming Language :: Python :: 3.10 +Classifier: Programming Language :: Python :: 3.11 +Classifier: Programming Language :: Python :: 3.12 +Classifier: Programming Language :: Python :: 3.13 +Classifier: Programming Language :: Python :: Implementation :: CPython +Classifier: Programming Language :: Python :: Implementation :: PyPy +Classifier: Programming Language :: C +Classifier: Topic :: Software Development :: Libraries +Classifier: Topic :: System :: Monitoring +Classifier: Topic :: System :: Filesystems +Classifier: Topic :: Utilities +Requires-Python: >=3.9 +Description-Content-Type: text/x-rst +License-File: LICENSE +License-File: COPYING +License-File: AUTHORS +Provides-Extra: watchmedo +Requires-Dist: PyYAML>=3.10; extra == "watchmedo" +Dynamic: author +Dynamic: author-email +Dynamic: classifier +Dynamic: description +Dynamic: description-content-type +Dynamic: home-page +Dynamic: keywords +Dynamic: license +Dynamic: license-file +Dynamic: provides-extra +Dynamic: requires-python +Dynamic: summary + +Watchdog +======== + +|PyPI Version| +|PyPI Status| +|PyPI Python Versions| +|GitHub Build Status| +|GitHub License| + +Python API and shell utilities to monitor file system events. + +Works on 3.9+. + +Example API Usage +----------------- + +A simple program that uses watchdog to monitor directories specified +as command-line arguments and logs events generated: + +.. code-block:: python + + import time + + from watchdog.events import FileSystemEvent, FileSystemEventHandler + from watchdog.observers import Observer + + + class MyEventHandler(FileSystemEventHandler): + def on_any_event(self, event: FileSystemEvent) -> None: + print(event) + + + event_handler = MyEventHandler() + observer = Observer() + observer.schedule(event_handler, ".", recursive=True) + observer.start() + try: + while True: + time.sleep(1) + finally: + observer.stop() + observer.join() + + +Shell Utilities +--------------- + +Watchdog comes with an *optional* utility script called ``watchmedo``. +Please type ``watchmedo --help`` at the shell prompt to +know more about this tool. + +Here is how you can log the current directory recursively +for events related only to ``*.py`` and ``*.txt`` files while +ignoring all directory events: + +.. code-block:: bash + + watchmedo log \ + --patterns='*.py;*.txt' \ + --ignore-directories \ + --recursive \ + --verbose \ + . + +You can use the ``shell-command`` subcommand to execute shell commands in +response to events: + +.. code-block:: bash + + watchmedo shell-command \ + --patterns='*.py;*.txt' \ + --recursive \ + --command='echo "${watch_src_path}"' \ + . + +Please see the help information for these commands by typing: + +.. code-block:: bash + + watchmedo [command] --help + + +About ``watchmedo`` Tricks +~~~~~~~~~~~~~~~~~~~~~~~~~~ + +``watchmedo`` can read ``tricks.yaml`` files and execute tricks within them in +response to file system events. Tricks are actually event handlers that +subclass ``watchdog.tricks.Trick`` and are written by plugin authors. Trick +classes are augmented with a few additional features that regular event handlers +don't need. + +An example ``tricks.yaml`` file: + +.. code-block:: yaml + + tricks: + - watchdog.tricks.LoggerTrick: + patterns: ["*.py", "*.js"] + - watchmedo_webtricks.GoogleClosureTrick: + patterns: ['*.js'] + hash_names: true + mappings_format: json # json|yaml|python + mappings_module: app/javascript_mappings + suffix: .min.js + compilation_level: advanced # simple|advanced + source_directory: app/static/js/ + destination_directory: app/public/js/ + files: + index-page: + - app/static/js/vendor/jquery*.js + - app/static/js/base.js + - app/static/js/index-page.js + about-page: + - app/static/js/vendor/jquery*.js + - app/static/js/base.js + - app/static/js/about-page/**/*.js + +The directory containing the ``tricks.yaml`` file will be monitored. Each trick +class is initialized with its corresponding keys in the ``tricks.yaml`` file as +arguments and events are fed to an instance of this class as they arrive. + +Installation +------------ +Install from PyPI using ``pip``: + +.. code-block:: bash + + $ python -m pip install -U watchdog + + # or to install the watchmedo utility: + $ python -m pip install -U 'watchdog[watchmedo]' + +Install from source: + +.. code-block:: bash + + $ python -m pip install -e . + + # or to install the watchmedo utility: + $ python -m pip install -e '.[watchmedo]' + + +Documentation +------------- + +You can browse the latest release documentation_ online. + +Contribute +---------- + +Fork the `repository`_ on GitHub and send a pull request, or file an issue +ticket at the `issue tracker`_. For general help and questions use +`stackoverflow`_ with tag `python-watchdog`. + +Create and activate your virtual environment, then:: + + python -m pip install tox + python -m tox [-q] [-e ENV] + +If you are making a substantial change, add an entry to the "Unreleased" section +of the `changelog`_. + +Supported Platforms +------------------- + +* Linux 2.6 (inotify) +* macOS (FSEvents, kqueue) +* FreeBSD/BSD (kqueue) +* Windows (ReadDirectoryChangesW with I/O completion ports; + ReadDirectoryChangesW worker threads) +* OS-independent (polling the disk for directory snapshots and comparing them + periodically; slow and not recommended) + +Note that when using watchdog with kqueue, you need the +number of file descriptors allowed to be opened by programs +running on your system to be increased to more than the +number of files that you will be monitoring. The easiest way +to do that is to edit your ``~/.profile`` file and add +a line similar to:: + + ulimit -n 1024 + +This is an inherent problem with kqueue because it uses +file descriptors to monitor files. That plus the enormous +amount of bookkeeping that watchdog needs to do in order +to monitor file descriptors just makes this a painful way +to monitor files and directories. In essence, kqueue is +not a very scalable way to monitor a deeply nested +directory of files and directories with a large number of +files. + +About using watchdog with editors like Vim +------------------------------------------ + +Vim does not modify files unless directed to do so. +It creates backup files and then swaps them in to replace +the files you are editing on the disk. This means that +if you use Vim to edit your files, the on-modified events +for those files will not be triggered by watchdog. +You may need to configure Vim appropriately to disable +this feature. + + +About using watchdog with CIFS +------------------------------ + +When you want to watch changes in CIFS, you need to explicitly tell watchdog to +use ``PollingObserver``, that is, instead of letting watchdog decide an +appropriate observer like in the example above, do:: + + from watchdog.observers.polling import PollingObserver as Observer + + +Dependencies +------------ + +1. Python 3.9 or above. +2. XCode_ (only on macOS when installing from sources) +3. PyYAML_ (only for ``watchmedo``) + +Licensing +--------- + +Watchdog is licensed under the terms of the `Apache License, version 2.0`_. + +- Copyright 2018-2024 Mickaël Schoentgen & contributors +- Copyright 2014-2018 Thomas Amland & contributors +- Copyright 2012-2014 Google, Inc. +- Copyright 2011-2012 Yesudeep Mangalapilly + +Project `source code`_ is available at Github. Please report bugs and file +enhancement requests at the `issue tracker`_. + +Why Watchdog? +------------- + +Too many people tried to do the same thing and none did what I needed Python +to do: + +* pnotify_ +* `unison fsmonitor`_ +* fsmonitor_ +* guard_ +* pyinotify_ +* `inotify-tools`_ +* jnotify_ +* treewatcher_ +* `file.monitor`_ +* pyfilesystem_ + +.. links: +.. _Yesudeep Mangalapilly: yesudeep@gmail.com +.. _source code: https://github.com/gorakhargosh/watchdog +.. _issue tracker: https://github.com/gorakhargosh/watchdog/issues +.. _Apache License, version 2.0: https://www.apache.org/licenses/LICENSE-2.0 +.. _documentation: https://python-watchdog.readthedocs.io/ +.. _stackoverflow: https://stackoverflow.com/questions/tagged/python-watchdog +.. _repository: https://github.com/gorakhargosh/watchdog +.. _issue tracker: https://github.com/gorakhargosh/watchdog/issues +.. _changelog: https://github.com/gorakhargosh/watchdog/blob/master/changelog.rst + +.. _PyYAML: https://www.pyyaml.org/ +.. _XCode: https://developer.apple.com/technologies/tools/xcode.html + +.. _pnotify: http://mark.heily.com/pnotify +.. _unison fsmonitor: https://webdav.seas.upenn.edu/viewvc/unison/trunk/src/fsmonitor.py?view=markup&pathrev=471 +.. _fsmonitor: https://github.com/shaurz/fsmonitor +.. _guard: https://github.com/guard/guard +.. _pyinotify: https://github.com/seb-m/pyinotify +.. _inotify-tools: https://github.com/rvoicilas/inotify-tools +.. _jnotify: http://jnotify.sourceforge.net/ +.. _treewatcher: https://github.com/jbd/treewatcher +.. _file.monitor: https://github.com/pke/file.monitor +.. _pyfilesystem: https://github.com/PyFilesystem/pyfilesystem + +.. |PyPI Version| image:: https://img.shields.io/pypi/v/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |PyPI Status| image:: https://img.shields.io/pypi/status/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |PyPI Python Versions| image:: https://img.shields.io/pypi/pyversions/watchdog.svg + :target: https://pypi.python.org/pypi/watchdog/ +.. |Github Build Status| image:: https://github.com/gorakhargosh/watchdog/workflows/Tests/badge.svg + :target: https://github.com/gorakhargosh/watchdog/actions?query=workflow%3ATests +.. |GitHub License| image:: https://img.shields.io/github/license/gorakhargosh/watchdog.svg + :target: https://github.com/gorakhargosh/watchdog/blob/master/LICENSE + + +.. :changelog: + +Changelog +--------- + +6.0.0 +~~~~~ + +2024-11-01 • `full history `__ + +- Pin test dependecies. +- [docs] Add typing info to quick start. (`#1082 `__) +- [inotify] Use of ``select.poll()`` instead of deprecated ``select.select()``, if available. (`#1078 `__) +- [inotify] Fix reading inotify file descriptor after closing it. (`#1081 `__) +- [utils] The ``stop_signal`` keyword-argument type of the ``AutoRestartTrick`` class can now be either a ``signal.Signals`` or an ``int``. +- [utils] Added the ``__repr__()`` method to the ``Trick`` class. +- [utils] Removed the unused ``echo_class()`` function from the ``echo`` module. +- [utils] Removed the unused ``echo_instancemethod()`` function from the ``echo`` module. +- [utils] Removed the unused ``echo_module()`` function from the ``echo`` module. +- [utils] Removed the unused ``is_class_private_name()`` function from the ``echo`` module. +- [utils] Removed the unused ``is_classmethod()`` function from the ``echo`` module. +- [utils] Removed the unused ``ic_method(met()`` function from the ``echo`` module. +- [utils] Removed the unused ``method_name()`` function from the ``echo`` module. +- [utils] Removed the unused ``name()`` function from the ``echo`` module. +- [watchmedo] Fixed Mypy issues. +- [watchmedo] Added the ``__repr__()`` method to the ``HelpFormatter`` class. +- [watchmedo] Removed the ``--trace`` CLI argument from the ``watchmedo log`` command, useless since events are logged by default at the ``LoggerTrick`` class level. +- [windows] Fixed Mypy issues. +- Thanks to our beloved contributors: @BoboTiG, @g-pichlern, @ethan-vanderheijden, @nhairs + +5.0.3 +~~~~~ + +2024-09-27 • `full history `__ + +- [inotify] Improve cleaning up ``Inotify`` threads, and add ``eventlet`` test cases (`#1070 `__) +- Thanks to our beloved contributors: @BoboTiG, @ethan-vanderheijden + +5.0.2 +~~~~~ + +2024-09-03 • `full history `__ + +- Enable OS specific Mypy checks (`#1064 `__) +- [watchmedo] Fix ``tricks`` argument type of ``schedule_tricks()`` (`#1063 `__) +- Thanks to our beloved contributors: @gnought, @BoboTiG + +5.0.1 +~~~~~ + +2024-09-02 • `full history `__ + +- [kqueue] Fix ``TypeError: kqueue.control() only accepts positional parameters`` (`#1062 `__) +- Thanks to our beloved contributors: @apoirier, @BoboTiG + +5.0.0 +~~~~~ + +2024-08-26 • `full history `__ + +**Breaking Changes** + +- Drop support for Python 3.8 (`#1055 `__) +- [core] Enforced usage of proper keyword-arguments (`#1057 `__) +- [core] Renamed the ``BaseObserverSubclassCallable`` class to ``ObserverType`` (`#1055 `__) +- [inotify] Renamed the ``inotify_event_struct`` class to ``InotifyEventStruct`` (`#1055 `__) +- [inotify] Renamed the ``UnsupportedLibc`` exception to ``UnsupportedLibcError`` (`#1057 `__) +- [inotify] Removed the ``InotifyConstants.IN_CLOSE`` constant (`#1046 `__) +- [watchmedo] Renamed the ``LogLevelException`` exception to ``LogLevelError`` (`#1057 `__) +- [watchmedo] Renamed the ``WatchdogShutdown`` exception to ``WatchdogShutdownError`` (`#1057 `__) +- [windows] Renamed the ``FILE_NOTIFY_INFORMATION`` class to ``FileNotifyInformation`` (`#1055 `__) +- [windows] Removed the unused ``WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` constant (`#1057 `__) + +**Other Changes** + +- [core] Enable ``disallow_untyped_calls`` Mypy rule (`#1055 `__) +- [core] Enable ``disallow_untyped_defs`` Mypy rule (`#1060 `__) +- [core] Improve typing references for events (`#1040 `__) +- [inotify] Add support for ``IN_CLOSE_NOWRITE`` events. A ``FileClosedNoWriteEvent`` event will be fired, and its ``on_closed_no_write()`` dispatcher has been introduced (`#1046 `__) +- Thanks to our beloved contributors: @BoboTiG + +4.0.2 +~~~~~ + +2024-08-11 • `full history `__ + +- Add support for Python 3.13 (`#1052 `__) +- [core] Run ``ruff``, apply several fixes (`#1033 `__) +- [core] Remove execution rights from ``events.py`` +- [documentation] Update ``PatternMatchingEventHandler`` docstrings (`#1048 `__) +- [documentation] Simplify the quickstart example (`#1047 `__) +- [fsevents] Add missing ``event_filter`` keyword-argument to ``FSEventsObserver.schedule()`` (`#1049 `__) +- [utils] Fix a possible race condition in ``AutoRestartTrick`` (`#1002 `__) +- [watchmedo] Remove execution rights from ``watchmedo.py`` +- Thanks to our beloved contributors: @BoboTiG, @nbelakovski, @ivg + +4.0.1 +~~~~~ + +2024-05-23 • `full history `__ + +- [inotify] Fix missing ``event_filter`` for the full emitter (`#1032 `__) +- Thanks to our beloved contributors: @mraspaud, @BoboTiG + +4.0.0 +~~~~~ + +2024-02-06 • `full history `__ + +- Drop support for Python 3.7. +- Add support for Python 3.12. +- [snapshot] Add typing to ``dirsnapshot`` (`#1012 `__) +- [snapshot] Added ``DirectorySnapshotDiff.ContextManager`` (`#1011 `__) +- [events] ``FileSystemEvent``, and subclasses, are now ``dataclass``es, and their ``repr()`` has changed +- [windows] ``WinAPINativeEvent`` is now a ``dataclass``, and its ``repr()`` has changed +- [events] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggingEventHandler`` +- [tests] Improve ``FileSystemEvent`` coverage +- [watchmedo] Log all events in ``LoggerTrick`` +- [windows] The ``observers.read_directory_changes.WATCHDOG_TRAVERSE_MOVED_DIR_DELAY`` hack was removed. The constant will be kept to prevent breaking other softwares. +- Thanks to our beloved contributors: @BoboTiG, @msabramo + +3.0.0 +~~~~~ + +2023-03-20 • `full history `__ + +- Drop support for Python 3.6. +- ``watchdog`` is now PEP 561 compatible, and tested with ``mypy`` +- Fix missing ``>`` in ``FileSystemEvent.__repr__()`` (`#980 `__) +- [ci] Lots of improvements +- [inotify] Return from ``InotifyEmitter.queue_events()`` if not launched when thread is inactive (`#963 `__) +- [tests] Stability improvements +- [utils] Remove handling of ``threading.Event.isSet`` spelling (`#962 `__) +- [watchmedo] Fixed tricks YAML generation (`#965 `__) +- Thanks to our beloved contributors: @kurtmckee, @altendky, @agroszer, @BoboTiG + +2.3.1 +~~~~~ + +2023-02-28 • `full history `__ + +- Run ``black`` on the entire source code +- Bundle the ``requirements-tests.txt`` file in the source distribution (`#939 `__) +- [watchmedo] Exclude ``FileOpenedEvent`` events from ``AutoRestartTrick``, and ``ShellCommandTrick``, to restore watchdog < 2.3.0 behavior. A better solution should be found in the future. (`#949 `__) +- [watchmedo] Log ``FileOpenedEvent``, and ``FileClosedEvent``, events in ``LoggerTrick`` +- Thanks to our beloved contributors: @BoboTiG + +2.3.0 +~~~~~ + +2023-02-23 • `full history `__ + +- [inotify] Add support for ``IN_OPEN`` events: a ``FileOpenedEvent`` event will be fired (`#941 `__) +- [watchmedo] Add optional event debouncing for ``auto-restart``, only restarting once if many events happen in quick succession (``--debounce-interval``) (`#940 `__) +- [watchmedo] Exit gracefully on ``KeyboardInterrupt`` exception (Ctrl+C) (`#945 `__) +- [watchmedo] Add option to not auto-restart the command after it exits (``--no-restart-on-command-exit``) (`#946 `__) +- Thanks to our beloved contributors: @BoboTiG, @dstaple, @taleinat, @cernekj + +2.2.1 +~~~~~ + +2023-01-01 • `full history `__ + +- Enable ``mypy`` to discover type hints as specified in PEP 561 (`#933 `__) +- [ci] Set the expected Python version when building release files +- [ci] Update actions versions in use +- [watchmedo] [regression] Fix usage of missing ``signal.SIGHUP`` attribute on non-Unix OSes (`#935 `__) +- Thanks to our beloved contributors: @BoboTiG, @simon04, @piotrpdev + +2.2.0 +~~~~~ + +2022-12-05 • `full history `__ + +- [build] Wheels are now available for Python 3.11 (`#932 `__) +- [documentation] HTML documentation builds are now tested for errors (`#902 `__) +- [documentation] Fix typos here, and there (`#910 `__) +- [fsevents2] The ``fsevents2`` observer is now deprecated (`#909 `__) +- [tests] The error message returned by musl libc for error code ``-1`` is now allowed (`#923 `__) +- [utils] Remove unnecessary code in ``dirsnapshot.py`` (`#930 `__) +- [watchmedo] Handle shutdown events from ``SIGHUP`` (`#912 `__) +- Thanks to our beloved contributors: @kurtmckee, @babymastodon, @QuantumEnergyE, @timgates42, @BoboTiG + +2.1.9 +~~~~~ + +2022-06-10 • `full history `__ + +- [fsevents] Fix flakey test to assert that there are no errors when stopping the emitter. +- [inotify] Suppress occasional ``OSError: [Errno 9] Bad file descriptor`` at shutdown. (`#805 `__) +- [watchmedo] Make ``auto-restart`` restart the sub-process if it terminates. (`#896 `__) +- [watchmedo] Avoid zombie sub-processes when running ``shell-command`` without ``--wait``. (`#405 `__) +- Thanks to our beloved contributors: @samschott, @taleinat, @altendky, @BoboTiG + +2.1.8 +~~~~~ + +2022-05-15 • `full history `__ + +- Fix adding failed emitters on observer schedule. (`#872 `__) +- [inotify] Fix hang when unscheduling watch on a path in an unmounted filesystem. (`#869 `__) +- [watchmedo] Fix broken parsing of ``--kill-after`` argument for the ``auto-restart`` command. (`#870 `__) +- [watchmedo] Fix broken parsing of boolean arguments. (`#887 `__) +- [watchmedo] Fix broken parsing of commands from ``auto-restart``, and ``shell-command``. (`#888 `__) +- [watchmedo] Support setting verbosity level via ``-q/--quiet`` and ``-v/--verbose`` arguments. (`#889 `__) +- Thanks to our beloved contributors: @taleinat, @kianmeng, @palfrey, @IlayRosenberg, @BoboTiG + +2.1.7 +~~~~~ + +2022-03-25 • `full history `__ + +- Eliminate timeout in waiting on event queue. (`#861 `__) +- [inotify] Fix ``not`` equality implementation for ``InotifyEvent``. (`#848 `__) +- [watchmedo] Fix calling commands from within a Python script. (`#879 `__) +- [watchmedo] ``PyYAML`` is loaded only when strictly necessary. Simple usages of ``watchmedo`` are possible without the module being installed. (`#847 `__) +- Thanks to our beloved contributors: @sattlerc, @JanzenLiu, @BoboTiG + +2.1.6 +~~~~~ + +2021-10-01 • `full history `__ + +- [bsd] Fixed returned paths in ``kqueue.py`` and restored the overall results of the test suite. (`#842 `__) +- [bsd] Updated FreeBSD CI support .(`#841 `__) +- [watchmedo] Removed the ``argh`` dependency in favor of the builtin ``argparse`` module. (`#836 `__) +- [watchmedo] Removed unexistant ``WindowsApiAsyncObserver`` references and ``--debug-force-winapi-async`` arguments. +- [watchmedo] Improved the help output. +- Thanks to our beloved contributors: @knobix, @AndreaRe9, @BoboTiG + +2.1.5 +~~~~~ + +2021-08-23 • `full history `__ + +- Fix regression introduced in 2.1.4 (reverted "Allow overriding or adding custom event handlers to event dispatch map. (`#814 `__)"). (`#830 `__) +- Convert regexes of type ``str`` to ``list``. (`831 `__) +- Thanks to our beloved contributors: @unique1o1, @BoboTiG + +2.1.4 +~~~~~ + +2021-08-19 • `full history `__ + +- [watchmedo] Fix usage of ``os.setsid()`` and ``os.killpg()`` Unix-only functions. (`#809 `__) +- [mac] Fix missing ``FileModifiedEvent`` on permission or ownership changes of a file. (`#815 `__) +- [mac] Convert absolute watch path in ``FSEeventsEmitter`` with ``os.path.realpath()``. (`#822 `__) +- Fix a possible ``AttributeError`` in ``SkipRepeatsQueue._put()``. (`#818 `__) +- Allow overriding or adding custom event handlers to event dispatch map. (`#814 `__) +- Fix tests on big endian platforms. (`#828 `__) +- Thanks to our beloved contributors: @replabrobin, @BoboTiG, @SamSchott, @AndreiB97, @NiklasRosenstein, @ikokollari, @mgorny + +2.1.3 +~~~~~ + +2021-06-26 • `full history `__ + +- Publish macOS ``arm64`` and ``universal2`` wheels. (`#740 `__) +- Thanks to our beloved contributors: @kainjow, @BoboTiG + +2.1.2 +~~~~~ + +2021-05-19 • `full history `__ + +- [mac] Fix relative path handling for non-recursive watch. (`#797 `__) +- [windows] On PyPy, events happening right after ``start()`` were missed. Add a workaround for that. (`#796 `__) +- Thanks to our beloved contributors: @oprypin, @CCP-Aporia, @BoboTiG + +2.1.1 +~~~~~ + +2021-05-10 • `full history `__ + +- [mac] Fix callback exceptions when the watcher is deleted but still receiving events (`#786 `__) +- Thanks to our beloved contributors: @rom1win, @BoboTiG, @CCP-Aporia + + +2.1.0 +~~~~~ + +2021-05-04 • `full history `__ + +- [inotify] Simplify ``libc`` loading (`#776 `__) +- [mac] Add support for non-recursive watches in ``FSEventsEmitter`` (`#779 `__) +- [watchmedo] Add support for ``--debug-force-*`` arguments to ``tricks`` (`#781 `__) +- Thanks to our beloved contributors: @CCP-Aporia, @aodj, @UnitedMarsupials, @BoboTiG + + +2.0.3 +~~~~~ + +2021-04-22 • `full history `__ + +- [mac] Use ``logger.debug()`` instead of ``logger.info()`` (`#774 `__) +- Updated documentation links (`#777 `__) +- Thanks to our beloved contributors: @globau, @imba-tjd, @BoboTiG + + +2.0.2 +~~~~~ + +2021-02-22 • `full history `__ + +- [mac] Add missing exception objects (`#766 `__) +- Thanks to our beloved contributors: @CCP-Aporia, @BoboTiG + + +2.0.1 +~~~~~ + +2021-02-17 • `full history `__ + +- [mac] Fix a segmentation fault when dealing with unicode paths (`#763 `__) +- Moved the CI from Travis-CI to GitHub Actions (`#764 `__) +- Thanks to our beloved contributors: @SamSchott, @BoboTiG + + +2.0.0 +~~~~~ + +2021-02-11 • `full history `__ + +- Avoid deprecated ``PyEval_InitThreads`` on Python 3.7+ (`#746 `__) +- [inotify] Add support for ``IN_CLOSE_WRITE`` events. A ``FileCloseEvent`` event will be fired. Note that ``IN_CLOSE_NOWRITE`` events are not handled to prevent much noise. (`#184 `__, `#245 `__, `#280 `__, `#313 `__, `#690 `__) +- [inotify] Allow to stop the emitter multiple times (`#760 `__) +- [mac] Support coalesced filesystem events (`#734 `__) +- [mac] Drop support for macOS 10.12 and earlier (`#750 `__) +- [mac] Fix an issue when renaming an item changes only the casing (`#750 `__) +- Thanks to our beloved contributors: @bstaletic, @lukassup, @ysard, @SamSchott, @CCP-Aporia, @BoboTiG + + +1.0.2 +~~~~~ + +2020-12-18 • `full history `__ + +- Wheels are published for GNU/Linux, macOS and Windows (`#739 `__) +- [mac] Fix missing ``event_id`` attribute in ``fsevents`` (`#721 `__) +- [mac] Return byte paths if a byte path was given in ``fsevents`` (`#726 `__) +- [mac] Add compatibility with old macOS versions (`#733 `__) +- Uniformize event for deletion of watched dir (`#727 `__) +- Thanks to our beloved contributors: @SamSchott, @CCP-Aporia, @di, @BoboTiG + + +1.0.1 +~~~~~ + +2020-12-10 • Fix version with good metadatas. + + +1.0.0 +~~~~~ + +2020-12-10 • `full history `__ + +- Versioning is now following the `semver `__ +- Drop support for Python 2.7, 3.4 and 3.5 +- [mac] Regression fixes for native ``fsevents`` (`#717 `__) +- [windows] ``winapi.BUFFER_SIZE`` now defaults to ``64000`` (instead of ``2048``) (`#700 `__) +- [windows] Introduced ``winapi.PATH_BUFFER_SIZE`` (defaults to ``2048``) to keep the old behavior with path-realted functions (`#700 `__) +- Use ``pathlib`` from the standard library, instead of pathtools (`#556 `__) +- Allow file paths on Unix that don't follow the file system encoding (`#703 `__) +- Removed the long-time deprecated ``events.LoggingFileSystemEventHandler`` class, use ``LoggingEventHandler`` instead +- Thanks to our beloved contributors: @SamSchott, @bstaletic, @BoboTiG, @CCP-Aporia + + +0.10.4 +~~~~~~ + +2020-11-21 • `full history `__ + +- Add ``logger`` parameter for the ``LoggingEventHandler`` (`#676 `__) +- Replace mutable default arguments with ``if None`` implementation (`#677 `__) +- Expand tests to Python 2.7 and 3.5-3.10 for GNU/Linux, macOS and Windows +- [mac] Performance improvements for the ``fsevents`` module (`#680 `__) +- [mac] Prevent compilation of ``watchdog_fsevents.c`` on non-macOS machines (`#687 `__) +- [watchmedo] Handle shutdown events from ``SIGTERM`` and ``SIGINT`` more reliably (`#693 `__) +- Thanks to our beloved contributors: @Sraw, @CCP-Aporia, @BoboTiG, @maybe-sybr + + +0.10.3 +~~~~~~ + +2020-06-25 • `full history `__ + +- Ensure ``ObservedWatch.path`` is a string (`#651 `__) +- [inotify] Allow to monitor single file (`#655 `__) +- [inotify] Prevent raising an exception when a file in a monitored folder has no permissions (`#669 `__, `#670 `__) +- Thanks to our beloved contributors: @brant-ruan, @rec, @andfoy, @BoboTiG + + +0.10.2 +~~~~~~ + +2020-02-08 • `full history `__ + +- Fixed the ``build_ext`` command on macOS Catalina (`#628 `__) +- Fixed the installation of macOS requirements on non-macOS OSes (`#635 `__) +- Refactored ``dispatch()`` method of ``FileSystemEventHandler``, + ``PatternMatchingEventHandler`` and ``RegexMatchingEventHandler`` +- [bsd] Improved tests support on non Windows/Linux platforms (`#633 `__, `#639 `__) +- [bsd] Added FreeBSD CI support (`#532 `__) +- [bsd] Restored full support (`#638 `__, `#641 `__) +- Thanks to our beloved contributors: @BoboTiG, @evilham, @danilobellini + + +0.10.1 +~~~~~~ + +2020-01-30 • `full history `__ + +- Fixed Python 2.7 to 3.6 installation when the OS locale is set to POSIX (`#615 `__) +- Fixed the ``build_ext`` command on macOS (`#618 `__, `#620 `__) +- Moved requirements to ``setup.cfg`` (`#617 `__) +- [mac] Removed old C code for Python 2.5 in the `fsevents` C implementation +- [snapshot] Added ``EmptyDirectorySnapshot`` (`#613 `__) +- Thanks to our beloved contributors: @Ajordat, @tehkirill, @BoboTiG + + +0.10.0 +~~~~~~ + +2020-01-26 • `full history `__ + +**Breaking Changes** + +- Dropped support for Python 2.6, 3.2 and 3.3 +- Emitters that failed to start are now removed +- [snapshot] Removed the deprecated ``walker_callback`` argument, + use ``stat`` instead +- [watchmedo] The utility is no more installed by default but via the extra + ``watchdog[watchmedo]`` + +**Other Changes** + +- Fixed several Python 3 warnings +- Identify synthesized events with ``is_synthetic`` attribute (`#369 `__) +- Use ``os.scandir()`` to improve memory usage (`#503 `__) +- [bsd] Fixed flavors of FreeBSD detection (`#529 `__) +- [bsd] Skip unprocessable socket files (`#509 `__) +- [inotify] Fixed events containing non-ASCII characters (`#516 `__) +- [inotify] Fixed the way ``OSError`` are re-raised (`#377 `__) +- [inotify] Fixed wrong source path after renaming a top level folder (`#515 `__) +- [inotify] Removed delay from non-move events (`#477 `__) +- [mac] Fixed a bug when calling ``FSEventsEmitter.stop()`` twice (`#466 `__) +- [mac] Support for unscheduling deleted watch (`#541 `__) +- [mac] Fixed missing field initializers and unused parameters in + ``watchdog_fsevents.c`` +- [snapshot] Don't walk directories without read permissions (`#408 `__) +- [snapshot] Fixed a race condition crash when a directory is swapped for a file (`#513 `__) +- [snasphot] Fixed an ``AttributeError`` about forgotten ``path_for_inode`` attr (`#436 `__) +- [snasphot] Added the ``ignore_device=False`` parameter to the ctor (`597 `__) +- [watchmedo] Fixed the path separator used (`#478 `__) +- [watchmedo] Fixed the use of ``yaml.load()`` for ``yaml.safe_load()`` (`#453 `__) +- [watchmedo] Handle all available signals (`#549 `__) +- [watchmedo] Added the ``--debug-force-polling`` argument (`#404 `__) +- [windows] Fixed issues when the observed directory is deleted (`#570 `__ and `#601 `__) +- [windows] ``WindowsApiEmitter`` made easier to subclass (`#344 `__) +- [windows] Use separate ctypes DLL instances +- [windows] Generate sub created events only if ``recursive=True`` (`#454 `__) +- Thanks to our beloved contributors: @BoboTiG, @LKleinNux, @rrzaripov, + @wildmichael, @TauPan, @segevfiner, @petrblahos, @QuantumEnergyE, + @jeffwidman, @kapsh, @nickoala, @petrblahos, @julianolf, @tonybaloney, + @mbakiev, @pR0Ps, javaguirre, @skurfer, @exarkun, @joshuaskelly, + @danilobellini, @Ajordat + + +0.9.0 +~~~~~ + +2018-08-28 • `full history `__ + +- Deleting the observed directory now emits a ``DirDeletedEvent`` event +- [bsd] Improved the platform detection (`#378 `__) +- [inotify] Fixed a crash when the root directory being watched by was deleted (`#374 `__) +- [inotify] Handle systems providing uClibc +- [linux] Fixed a possible ``DirDeletedEvent`` duplication when + deleting a directory +- [mac] Fixed unicode path handling ``fsevents2.py`` (`#298 `__) +- [watchmedo] Added the ``--debug-force-polling`` argument (`#336 `__) +- [windows] Fixed the ``FILE_LIST_DIRECTORY`` constant (`#376 `__) +- Thanks to our beloved contributors: @vulpeszerda, @hpk42, @tamland, @senden9, + @gorakhargosh, @nolsto, @mafrosis, @DonyorM, @anthrotype, @danilobellini, + @pierregr, @ShinNoNoir, @adrpar, @gforcada, @pR0Ps, @yegorich, @dhke + + +0.8.3 +~~~~~ + +2015-02-11 • `full history `__ + +- Fixed the use of the root logger (`#274 `__) +- [inotify] Refactored libc loading and improved error handling in + ``inotify_c.py`` +- [inotify] Fixed a possible unbound local error in ``inotify_c.py`` +- Thanks to our beloved contributors: @mmorearty, @tamland, @tony, + @gorakhargosh + + +0.8.2 +~~~~~ + +2014-10-29 • `full history `__ + +- Event emitters are no longer started on schedule if ``Observer`` is not + already running +- [mac] Fixed usued arguments to pass clang compilation (`#265 `__) +- [snapshot] Fixed a possible race condition crash on directory deletion (`#281 `__) +- [windows] Fixed an error when watching the same folder again (`#270 `__) +- Thanks to our beloved contributors: @tamland, @apetrone, @Falldog, + @theospears + + +0.8.1 +~~~~~ + +2014-07-28 • `full history `__ + +- Fixed ``anon_inode`` descriptors leakage (`#249 `__) +- [inotify] Fixed thread stop dead lock (`#250 `__) +- Thanks to our beloved contributors: @Witos, @adiroiban, @tamland + + +0.8.0 +~~~~~ + +2014-07-02 • `full history `__ + +- Fixed ``argh`` deprecation warnings (`#242 `__) +- [snapshot] Methods returning internal stats info were replaced by + ``mtime()``, ``inode()`` and ``path()`` methods +- [snapshot] Deprecated the ``walker_callback`` argument +- [watchmedo] Fixed ``auto-restart`` to terminate all children processes (`#225 `__) +- [watchmedo] Added the ``--no-parallel`` argument (`#227 `__) +- [windows] Fixed the value of ``INVALID_HANDLE_VALUE`` (`#123 `__) +- [windows] Fixed octal usages to work with Python 3 as well (`#223 `__) +- Thanks to our beloved contributors: @tamland, @Ormod, @berdario, @cro, + @BernieSumption, @pypingou, @gotcha, @tommorris, @frewsxcv diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD new file mode 100644 index 0000000000000000000000000000000000000000..4598143792734b94804e7892fd10dfa499fa7589 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/RECORD @@ -0,0 +1,63 @@ +../../Scripts/watchmedo.exe,sha256=RICeKB1RxE4--P6ZLEfz5qHnWxpHaF6spUryyO7amVQ,108362 +watchdog-6.0.0.dist-info/INSTALLER,sha256=zuuue4knoyJ-UwPPXg8fezS7VCrXJQrAP7zeNuwvFQg,4 +watchdog-6.0.0.dist-info/METADATA,sha256=QTGKr7vS5LXERw_7vGHrpQ_Gd5KkyE077i71PmmkoUo,45437 +watchdog-6.0.0.dist-info/RECORD,, +watchdog-6.0.0.dist-info/REQUESTED,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog-6.0.0.dist-info/WHEEL,sha256=YCfwYGOYMi5Jhw2fU4yNgwErybb2IX5PEwBKV4ZbdBo,91 +watchdog-6.0.0.dist-info/direct_url.json,sha256=voFfPwtVGS0GYQXiNjmG-f91TM2lHaUlu1gJMm6MygE,84 +watchdog-6.0.0.dist-info/entry_points.txt,sha256=qt_Oe2U5Zlfz7LNA3PHipn3_1zlfRTp9dk3wTS3Ivb8,66 +watchdog-6.0.0.dist-info/licenses/AUTHORS,sha256=JT4CdfYRf1V0Mg9RbNaaGK6LyP9pztEsJR6bQ-MfaG8,2928 +watchdog-6.0.0.dist-info/licenses/COPYING,sha256=OfCBgo22-UxwEj-k-zDBvOPiFaj97OU6SZkf4HamnAg,703 +watchdog-6.0.0.dist-info/licenses/LICENSE,sha256=z8d0m5b2O9McPEK1xHG_dWgUBT6EfBDz6wA0F7xSPTA,11358 +watchdog-6.0.0.dist-info/top_level.txt,sha256=OVdR7GkPGZako8sRtVuM0Nis-ZIElx3he3hKFPYnTGg,9 +watchdog/__init__.py,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog/__pycache__/__init__.cpython-314.pyc,, +watchdog/__pycache__/events.cpython-314.pyc,, +watchdog/__pycache__/version.cpython-314.pyc,, +watchdog/__pycache__/watchmedo.cpython-314.pyc,, +watchdog/events.py,sha256=ig4oCNcm-mSe6rK5LPsIUcMO3dfq9EKegfM9I4SwVv8,16323 +watchdog/observers/__init__.py,sha256=BmXKL1WXWnJP8-WRrhP4kmGK04gNADh1ifJezeZs4hs,3256 +watchdog/observers/__pycache__/__init__.cpython-314.pyc,, +watchdog/observers/__pycache__/api.cpython-314.pyc,, +watchdog/observers/__pycache__/fsevents.cpython-314.pyc,, +watchdog/observers/__pycache__/fsevents2.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc,, +watchdog/observers/__pycache__/inotify_c.cpython-314.pyc,, +watchdog/observers/__pycache__/kqueue.cpython-314.pyc,, +watchdog/observers/__pycache__/polling.cpython-314.pyc,, +watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc,, +watchdog/observers/__pycache__/winapi.cpython-314.pyc,, +watchdog/observers/api.py,sha256=tyPhqDhzh2pveEkCVRR2B51SaXlDsrcpl8W6oidQuUs,13802 +watchdog/observers/fsevents.py,sha256=6ho3sgBQt6hsq_1F6eJgtor5CjZV09TaoT01xeHNgd4,14284 +watchdog/observers/fsevents2.py,sha256=fZ8O7zomltBgvucDBlUHZIWKREFn4MKB30T5iEisPsc,9439 +watchdog/observers/inotify.py,sha256=i075APHIwIUdiFrfdocpbYsedUvh_u3AtLqU3bqlgFE,10649 +watchdog/observers/inotify_buffer.py,sha256=VWWuleFQRaJL_ZM0jbcAGjGdj1kZUWmUigC4WSbPmyQ,4434 +watchdog/observers/inotify_c.py,sha256=ys6NrVEbw2bPZQUkzshY5lGlfDZT4nz58Vmn4A49emU,21129 +watchdog/observers/kqueue.py,sha256=HYARzdF_Nlu72vTaIBbIvh5e_N7ROd33VDtZc1Ab2oc,24425 +watchdog/observers/polling.py,sha256=B8gyEtzkRiHmSSf8dcY_0P-Bu0U5i-VWQanBqIVxTs0,4932 +watchdog/observers/read_directory_changes.py,sha256=mKHZIfUopCAU0ae7oE9Ttkggk7LfTb8lwgcMJHmOW5E,4167 +watchdog/observers/winapi.py,sha256=q2nTZ2JYnbuEUiByTcSmpbw4iiKhtNQ6UQg9CWPIUxY,11635 +watchdog/py.typed,sha256=47DEQpj8HBSa-_TImW-5JCeuQeRkm5NMpJWZG3hSuFU,0 +watchdog/tricks/__init__.py,sha256=zLFpZfXN_A3jXlH00Ok0SpbtWxP2WwwsxG7w2PXkxP8,9492 +watchdog/tricks/__pycache__/__init__.cpython-314.pyc,, +watchdog/utils/__init__.py,sha256=9q7wEZW7yl81Db1CcLBQJ33xZ2YrGwyzsK2gzNCC-lE,3513 +watchdog/utils/__pycache__/__init__.cpython-314.pyc,, +watchdog/utils/__pycache__/bricks.cpython-314.pyc,, +watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc,, +watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc,, +watchdog/utils/__pycache__/echo.cpython-314.pyc,, +watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc,, +watchdog/utils/__pycache__/patterns.cpython-314.pyc,, +watchdog/utils/__pycache__/platform.cpython-314.pyc,, +watchdog/utils/__pycache__/process_watcher.cpython-314.pyc,, +watchdog/utils/bricks.py,sha256=cZCA4T9e1iWvr3yY4FOGuOzIpdP4c4Nhx0ipfgyhBno,2545 +watchdog/utils/delayed_queue.py,sha256=Xv-Rco10b62Vt4LnLEmZxlpr93MeBV2ZX-U2--nHS5A,2615 +watchdog/utils/dirsnapshot.py,sha256=SaGnxq0miZbxLZcpJcSOj5sE8ihunqjb5-m8ww9F1aA,14740 +watchdog/utils/echo.py,sha256=GALgUot9zXVAMxMwLN5CkHRIdjmio1X3vppVS14P-eM,2210 +watchdog/utils/event_debouncer.py,sha256=oVifdt50PjOiV4n-0W1OZOCNO4j689BRRVgCGrJvH0E,2079 +watchdog/utils/patterns.py,sha256=fjy8h_XaUuRkoh46uFLv37JzgjmmK2Vzt1ZVbMNa0cE,3672 +watchdog/utils/platform.py,sha256=VSN45Y2kA0NS1Nzlmr5SHB4Ct0xqK2KRly9jlx7DHSg,885 +watchdog/utils/process_watcher.py,sha256=qgLtEZLhYLjpL-GZawIEjV-p_PnMka_hBGH_1vxX-gk,925 +watchdog/version.py,sha256=guvQM7983CuZ2S52zEtdhsS_dkqhbY3mp-GQvVM4DR0,349 +watchdog/watchmedo.py,sha256=AMTUpNSlQmAqxf5EhtfKKh5eYiPZoDYgUm1Gf8xD3-g,25452 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL new file mode 100644 index 0000000000000000000000000000000000000000..1ef5583317a5e59140e3f1c85c2db91aec0961e8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL @@ -0,0 +1,5 @@ +Wheel-Version: 1.0 +Generator: setuptools (82.0.0) +Root-Is-Purelib: true +Tag: py3-none-any + diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json new file mode 100644 index 0000000000000000000000000000000000000000..211b61880cb74998c789c7049b4d1522948ba374 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json @@ -0,0 +1 @@ +{"dir_info": {}, "url": "file:///D:/bld/bld/rattler-build_watchdog_1772608066/work"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt new file mode 100644 index 0000000000000000000000000000000000000000..b05809e4e163ed58b9d01b5d5f5321486d19fe27 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt @@ -0,0 +1,2 @@ +[console_scripts] +watchmedo = watchdog.watchmedo:main [watchmedo] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS new file mode 100644 index 0000000000000000000000000000000000000000..8c3fed3232160b1d6e47313b0f3244b94e87ddcd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS @@ -0,0 +1,73 @@ +Original Project Lead: +---------------------- +Yesudeep Mangalapilly + +Current Project Lead: +--------------------- +Mickaël Schoentgen + +Contributors in alphabetical order: +----------------------------------- +Adrian Tejn Kern +Andrew Schaaf +Danilo de Jesus da Silva Bellini +David LaPalomento +dvogel +Filip Noetzel +Gary van der Merwe +gfxmonk +Gora Khargosh +Hannu Valtonen +Jesse Printz +Kurt McKee +Léa Klein +Luke McCarthy +Lukáš Lalinský +Malthe Borch +Martin Kreichgauer +Martin Kreichgauer +Mike Lundy +Nicholas Hairs +Raymond Hettinger +Roman Ovchinnikov +Rotem Yaari +Ryan Kelly +Senko Rasic +Senko Rašić +Shane Hathaway +Simon Pantzare +Simon Pantzare +Steven Samuel Cole +Stéphane Klein +Thomas Guest +Thomas Heller +Tim Cuthbertson +Todd Whiteman +Will McGugan +Yesudeep Mangalapilly +Yesudeep Mangalapilly + +We would like to thank these individuals for ideas: +--------------------------------------------------- +Tim Golden +Sebastien Martini + +Initially we used the flask theme for the documentation which was written by +---------------------------------------------------------------------------- +Armin Ronacher + + +Watchdog also includes open source libraries or adapted code +from the following projects: + +- MacFSEvents - https://github.com/malthe/macfsevents +- watch_directory.py - http://timgolden.me.uk/python/downloads/watch_directory.py +- pyinotify - https://github.com/seb-m/pyinotify +- fsmonitor - https://github.com/shaurz/fsmonitor +- echo - http://wordaligned.org/articles/echo +- Lukáš Lalinský's ordered set queue implementation: + https://stackoverflow.com/questions/1581895/how-check-if-a-task-is-already-in-python-queue +- Armin Ronacher's flask-sphinx-themes for the documentation: + https://github.com/mitsuhiko/flask-sphinx-themes +- pyfilesystem - https://github.com/PyFilesystem/pyfilesystem +- get_FILE_NOTIFY_INFORMATION - http://blog.gmane.org/gmane.comp.python.ctypes/month=20070901 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING new file mode 100644 index 0000000000000000000000000000000000000000..b84e0b3c8468ff4672c6f1c5a88cb28c3eb067d7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING @@ -0,0 +1,16 @@ +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly + +Licensed under the Apache License, Version 2.0 (the "License"); +you may not use this file except in compliance with the License. +You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + +Unless required by applicable law or agreed to in writing, software +distributed under the License is distributed on an "AS IS" BASIS, +WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +See the License for the specific language governing permissions and +limitations under the License. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d645695673349e3947e8e5ae42332d0ac3164cd7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt new file mode 100644 index 0000000000000000000000000000000000000000..e59495eee06b72aaf42ba877daa7f944ede675ce --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt @@ -0,0 +1 @@ +watchdog diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3169ad5dfdef965eeac37f42cab11abe76e0f5ff Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e63e33b5861b76f3e0b3abe9980132c67f1ca30a Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..fe1153bd1f875f44f313c92c0ed0fa61d7e958a1 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6f98750bcbbe56ee356a03f8b8aed528f6011dfc Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/events.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/events.py new file mode 100644 index 0000000000000000000000000000000000000000..db430235088d2b35fbb84303d1818bce2bb80f23 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/events.py @@ -0,0 +1,542 @@ +""":module: watchdog.events +:synopsis: File system events and event handlers. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Event Classes +------------- +.. autoclass:: FileSystemEvent + :members: + :show-inheritance: + :inherited-members: + +.. autoclass:: FileSystemMovedEvent + :members: + :show-inheritance: + +.. autoclass:: FileMovedEvent + :members: + :show-inheritance: + +.. autoclass:: DirMovedEvent + :members: + :show-inheritance: + +.. autoclass:: FileModifiedEvent + :members: + :show-inheritance: + +.. autoclass:: DirModifiedEvent + :members: + :show-inheritance: + +.. autoclass:: FileCreatedEvent + :members: + :show-inheritance: + +.. autoclass:: FileClosedEvent + :members: + :show-inheritance: + +.. autoclass:: FileClosedNoWriteEvent + :members: + :show-inheritance: + +.. autoclass:: FileOpenedEvent + :members: + :show-inheritance: + +.. autoclass:: DirCreatedEvent + :members: + :show-inheritance: + +.. autoclass:: FileDeletedEvent + :members: + :show-inheritance: + +.. autoclass:: DirDeletedEvent + :members: + :show-inheritance: + + +Event Handler Classes +--------------------- +.. autoclass:: FileSystemEventHandler + :members: + :show-inheritance: + +.. autoclass:: PatternMatchingEventHandler + :members: + :show-inheritance: + +.. autoclass:: RegexMatchingEventHandler + :members: + :show-inheritance: + +.. autoclass:: LoggingEventHandler + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import logging +import os.path +import re +from dataclasses import dataclass, field +from typing import TYPE_CHECKING + +from watchdog.utils.patterns import match_any_paths + +if TYPE_CHECKING: + from collections.abc import Generator + +EVENT_TYPE_MOVED = "moved" +EVENT_TYPE_DELETED = "deleted" +EVENT_TYPE_CREATED = "created" +EVENT_TYPE_MODIFIED = "modified" +EVENT_TYPE_CLOSED = "closed" +EVENT_TYPE_CLOSED_NO_WRITE = "closed_no_write" +EVENT_TYPE_OPENED = "opened" + + +@dataclass(unsafe_hash=True) +class FileSystemEvent: + """Immutable type that represents a file system event that is triggered + when a change occurs on the monitored file system. + + All FileSystemEvent objects are required to be immutable and hence + can be used as keys in dictionaries or be added to sets. + """ + + src_path: bytes | str + dest_path: bytes | str = "" + event_type: str = field(default="", init=False) + is_directory: bool = field(default=False, init=False) + + """ + True if event was synthesized; False otherwise. + These are events that weren't actually broadcast by the OS, but + are presumed to have happened based on other, actual events. + """ + is_synthetic: bool = field(default=False) + + +class FileSystemMovedEvent(FileSystemEvent): + """File system event representing any kind of file system movement.""" + + event_type = EVENT_TYPE_MOVED + + +# File events. + + +class FileDeletedEvent(FileSystemEvent): + """File system event representing file deletion on the file system.""" + + event_type = EVENT_TYPE_DELETED + + +class FileModifiedEvent(FileSystemEvent): + """File system event representing file modification on the file system.""" + + event_type = EVENT_TYPE_MODIFIED + + +class FileCreatedEvent(FileSystemEvent): + """File system event representing file creation on the file system.""" + + event_type = EVENT_TYPE_CREATED + + +class FileMovedEvent(FileSystemMovedEvent): + """File system event representing file movement on the file system.""" + + +class FileClosedEvent(FileSystemEvent): + """File system event representing file close on the file system.""" + + event_type = EVENT_TYPE_CLOSED + + +class FileClosedNoWriteEvent(FileSystemEvent): + """File system event representing an unmodified file close on the file system.""" + + event_type = EVENT_TYPE_CLOSED_NO_WRITE + + +class FileOpenedEvent(FileSystemEvent): + """File system event representing file close on the file system.""" + + event_type = EVENT_TYPE_OPENED + + +# Directory events. + + +class DirDeletedEvent(FileSystemEvent): + """File system event representing directory deletion on the file system.""" + + event_type = EVENT_TYPE_DELETED + is_directory = True + + +class DirModifiedEvent(FileSystemEvent): + """File system event representing directory modification on the file system.""" + + event_type = EVENT_TYPE_MODIFIED + is_directory = True + + +class DirCreatedEvent(FileSystemEvent): + """File system event representing directory creation on the file system.""" + + event_type = EVENT_TYPE_CREATED + is_directory = True + + +class DirMovedEvent(FileSystemMovedEvent): + """File system event representing directory movement on the file system.""" + + is_directory = True + + +class FileSystemEventHandler: + """Base file system event handler that you can override methods from.""" + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + self.on_any_event(event) + getattr(self, f"on_{event.event_type}")(event) + + def on_any_event(self, event: FileSystemEvent) -> None: + """Catch-all event handler. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + + def on_moved(self, event: DirMovedEvent | FileMovedEvent) -> None: + """Called when a file or a directory is moved or renamed. + + :param event: + Event representing file/directory movement. + :type event: + :class:`DirMovedEvent` or :class:`FileMovedEvent` + """ + + def on_created(self, event: DirCreatedEvent | FileCreatedEvent) -> None: + """Called when a file or directory is created. + + :param event: + Event representing file/directory creation. + :type event: + :class:`DirCreatedEvent` or :class:`FileCreatedEvent` + """ + + def on_deleted(self, event: DirDeletedEvent | FileDeletedEvent) -> None: + """Called when a file or directory is deleted. + + :param event: + Event representing file/directory deletion. + :type event: + :class:`DirDeletedEvent` or :class:`FileDeletedEvent` + """ + + def on_modified(self, event: DirModifiedEvent | FileModifiedEvent) -> None: + """Called when a file or directory is modified. + + :param event: + Event representing file/directory modification. + :type event: + :class:`DirModifiedEvent` or :class:`FileModifiedEvent` + """ + + def on_closed(self, event: FileClosedEvent) -> None: + """Called when a file opened for writing is closed. + + :param event: + Event representing file closing. + :type event: + :class:`FileClosedEvent` + """ + + def on_closed_no_write(self, event: FileClosedNoWriteEvent) -> None: + """Called when a file opened for reading is closed. + + :param event: + Event representing file closing. + :type event: + :class:`FileClosedNoWriteEvent` + """ + + def on_opened(self, event: FileOpenedEvent) -> None: + """Called when a file is opened. + + :param event: + Event representing file opening. + :type event: + :class:`FileOpenedEvent` + """ + + +class PatternMatchingEventHandler(FileSystemEventHandler): + """Matches given patterns with file paths associated with occurring events. + Uses pathlib's `PurePath.match()` method. `patterns` and `ignore_patterns` + are expected to be a list of strings. + """ + + def __init__( + self, + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + case_sensitive: bool = False, + ): + super().__init__() + + self._patterns = patterns + self._ignore_patterns = ignore_patterns + self._ignore_directories = ignore_directories + self._case_sensitive = case_sensitive + + @property + def patterns(self) -> list[str] | None: + """(Read-only) + Patterns to allow matching event paths. + """ + return self._patterns + + @property + def ignore_patterns(self) -> list[str] | None: + """(Read-only) + Patterns to ignore matching event paths. + """ + return self._ignore_patterns + + @property + def ignore_directories(self) -> bool: + """(Read-only) + ``True`` if directories should be ignored; ``False`` otherwise. + """ + return self._ignore_directories + + @property + def case_sensitive(self) -> bool: + """(Read-only) + ``True`` if path names should be matched sensitive to case; ``False`` + otherwise. + """ + return self._case_sensitive + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + if self.ignore_directories and event.is_directory: + return + + paths = [] + if hasattr(event, "dest_path"): + paths.append(os.fsdecode(event.dest_path)) + if event.src_path: + paths.append(os.fsdecode(event.src_path)) + + if match_any_paths( + paths, + included_patterns=self.patterns, + excluded_patterns=self.ignore_patterns, + case_sensitive=self.case_sensitive, + ): + super().dispatch(event) + + +class RegexMatchingEventHandler(FileSystemEventHandler): + """Matches given regexes with file paths associated with occurring events. + Uses the `re` module. + """ + + def __init__( + self, + *, + regexes: list[str] | None = None, + ignore_regexes: list[str] | None = None, + ignore_directories: bool = False, + case_sensitive: bool = False, + ): + super().__init__() + + if regexes is None: + regexes = [r".*"] + elif isinstance(regexes, str): + regexes = [regexes] + if ignore_regexes is None: + ignore_regexes = [] + if case_sensitive: + self._regexes = [re.compile(r) for r in regexes] + self._ignore_regexes = [re.compile(r) for r in ignore_regexes] + else: + self._regexes = [re.compile(r, re.IGNORECASE) for r in regexes] + self._ignore_regexes = [re.compile(r, re.IGNORECASE) for r in ignore_regexes] + self._ignore_directories = ignore_directories + self._case_sensitive = case_sensitive + + @property + def regexes(self) -> list[re.Pattern[str]]: + """(Read-only) + Regexes to allow matching event paths. + """ + return self._regexes + + @property + def ignore_regexes(self) -> list[re.Pattern[str]]: + """(Read-only) + Regexes to ignore matching event paths. + """ + return self._ignore_regexes + + @property + def ignore_directories(self) -> bool: + """(Read-only) + ``True`` if directories should be ignored; ``False`` otherwise. + """ + return self._ignore_directories + + @property + def case_sensitive(self) -> bool: + """(Read-only) + ``True`` if path names should be matched sensitive to case; ``False`` + otherwise. + """ + return self._case_sensitive + + def dispatch(self, event: FileSystemEvent) -> None: + """Dispatches events to the appropriate methods. + + :param event: + The event object representing the file system event. + :type event: + :class:`FileSystemEvent` + """ + if self.ignore_directories and event.is_directory: + return + + paths = [] + if hasattr(event, "dest_path"): + paths.append(os.fsdecode(event.dest_path)) + if event.src_path: + paths.append(os.fsdecode(event.src_path)) + + if any(r.match(p) for r in self.ignore_regexes for p in paths): + return + + if any(r.match(p) for r in self.regexes for p in paths): + super().dispatch(event) + + +class LoggingEventHandler(FileSystemEventHandler): + """Logs all the events captured.""" + + def __init__(self, *, logger: logging.Logger | None = None) -> None: + super().__init__() + self.logger = logger or logging.root + + def on_moved(self, event: DirMovedEvent | FileMovedEvent) -> None: + super().on_moved(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Moved %s: from %s to %s", what, event.src_path, event.dest_path) + + def on_created(self, event: DirCreatedEvent | FileCreatedEvent) -> None: + super().on_created(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Created %s: %s", what, event.src_path) + + def on_deleted(self, event: DirDeletedEvent | FileDeletedEvent) -> None: + super().on_deleted(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Deleted %s: %s", what, event.src_path) + + def on_modified(self, event: DirModifiedEvent | FileModifiedEvent) -> None: + super().on_modified(event) + + what = "directory" if event.is_directory else "file" + self.logger.info("Modified %s: %s", what, event.src_path) + + def on_closed(self, event: FileClosedEvent) -> None: + super().on_closed(event) + + self.logger.info("Closed modified file: %s", event.src_path) + + def on_closed_no_write(self, event: FileClosedNoWriteEvent) -> None: + super().on_closed_no_write(event) + + self.logger.info("Closed read file: %s", event.src_path) + + def on_opened(self, event: FileOpenedEvent) -> None: + super().on_opened(event) + + self.logger.info("Opened file: %s", event.src_path) + + +def generate_sub_moved_events( + src_dir_path: bytes | str, + dest_dir_path: bytes | str, +) -> Generator[DirMovedEvent | FileMovedEvent]: + """Generates an event list of :class:`DirMovedEvent` and + :class:`FileMovedEvent` objects for all the files and directories within + the given moved directory that were moved along with the directory. + + :param src_dir_path: + The source path of the moved directory. + :param dest_dir_path: + The destination path of the moved directory. + :returns: + An iterable of file system events of type :class:`DirMovedEvent` and + :class:`FileMovedEvent`. + """ + for root, directories, filenames in os.walk(dest_dir_path): # type: ignore[type-var] + for directory in directories: + full_path = os.path.join(root, directory) # type: ignore[call-overload] + renamed_path = full_path.replace(dest_dir_path, src_dir_path) if src_dir_path else "" + yield DirMovedEvent(renamed_path, full_path, is_synthetic=True) + for filename in filenames: + full_path = os.path.join(root, filename) # type: ignore[call-overload] + renamed_path = full_path.replace(dest_dir_path, src_dir_path) if src_dir_path else "" + yield FileMovedEvent(renamed_path, full_path, is_synthetic=True) + + +def generate_sub_created_events(src_dir_path: bytes | str) -> Generator[DirCreatedEvent | FileCreatedEvent]: + """Generates an event list of :class:`DirCreatedEvent` and + :class:`FileCreatedEvent` objects for all the files and directories within + the given moved directory that were moved along with the directory. + + :param src_dir_path: + The source path of the created directory. + :returns: + An iterable of file system events of type :class:`DirCreatedEvent` and + :class:`FileCreatedEvent`. + """ + for root, directories, filenames in os.walk(src_dir_path): # type: ignore[type-var] + for directory in directories: + full_path = os.path.join(root, directory) # type: ignore[call-overload] + yield DirCreatedEvent(full_path, is_synthetic=True) + for filename in filenames: + full_path = os.path.join(root, filename) # type: ignore[call-overload] + yield FileCreatedEvent(full_path, is_synthetic=True) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..ce3957418de5fbbd7bb4c731d6ef5031bab4abaa --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__init__.py @@ -0,0 +1,91 @@ +""":module: watchdog.observers +:synopsis: Observer that picks a native implementation if available. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +======= +.. autoclass:: Observer + :members: + :show-inheritance: + :inherited-members: + +Observer thread that schedules watching directories and dispatches +calls to event handlers. + +You can also import platform specific classes directly and use it instead +of :class:`Observer`. Here is a list of implemented observer classes.: + +============== ================================ ============================== +Class Platforms Note +============== ================================ ============================== +|Inotify| Linux 2.6.13+ ``inotify(7)`` based observer +|FSEvents| macOS FSEvents based observer +|Kqueue| macOS and BSD with kqueue(2) ``kqueue(2)`` based observer +|WinApi| Microsoft Windows Windows API-based observer +|Polling| Any fallback implementation +============== ================================ ============================== + +.. |Inotify| replace:: :class:`.inotify.InotifyObserver` +.. |FSEvents| replace:: :class:`.fsevents.FSEventsObserver` +.. |Kqueue| replace:: :class:`.kqueue.KqueueObserver` +.. |WinApi| replace:: :class:`.read_directory_changes.WindowsApiObserver` +.. |Polling| replace:: :class:`.polling.PollingObserver` + +""" + +from __future__ import annotations + +import contextlib +import warnings +from typing import TYPE_CHECKING, Protocol + +from watchdog.utils import UnsupportedLibcError, platform + +if TYPE_CHECKING: + from watchdog.observers.api import BaseObserver + + +class ObserverType(Protocol): + def __call__(self, *, timeout: float = ...) -> BaseObserver: ... + + +def _get_observer_cls() -> ObserverType: + if platform.is_linux(): + with contextlib.suppress(UnsupportedLibcError): + from watchdog.observers.inotify import InotifyObserver + + return InotifyObserver + elif platform.is_darwin(): + try: + from watchdog.observers.fsevents import FSEventsObserver + except Exception: + try: + from watchdog.observers.kqueue import KqueueObserver + except Exception: + warnings.warn("Failed to import fsevents and kqueue. Fall back to polling.", stacklevel=1) + else: + warnings.warn("Failed to import fsevents. Fall back to kqueue", stacklevel=1) + return KqueueObserver + else: + return FSEventsObserver + elif platform.is_windows(): + try: + from watchdog.observers.read_directory_changes import WindowsApiObserver + except Exception: + warnings.warn("Failed to import `read_directory_changes`. Fall back to polling.", stacklevel=1) + else: + return WindowsApiObserver + elif platform.is_bsd(): + from watchdog.observers.kqueue import KqueueObserver + + return KqueueObserver + + from watchdog.observers.polling import PollingObserver + + return PollingObserver + + +Observer = _get_observer_cls() + +__all__ = ["Observer"] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..176a41eeb385373640ecd611e921cf94562dcd0c Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5f6263803f86d166dbed1a8c08eb5dec58c99f01 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ea98312f6290ba409ccf4562113a0893348ef71 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2c9754344f84c1f53f41ab4a9a0d552d032ccfb6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3b7cbae6f1692f01620982182a07075883ef7623 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e9d6b2c7103883d9825dce8b036bab07be1b61e6 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6a0493dcddeb37a11fe3dc784a4561029e74a300 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..7f7a32549ed164b9e27980d21eae64a4e1f04612 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..00aa150e0d46d9dd2fb6f52c31ba478f91eb443f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..e9ab002a60ff054391d9d7e91f98c849343aa5a0 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/winapi.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/winapi.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..3877472c67b8dfb064e8da232ed78998737c7250 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/__pycache__/winapi.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/api.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/api.py new file mode 100644 index 0000000000000000000000000000000000000000..30cb21caff9c686e11c6420064d039f37eb1ff02 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/api.py @@ -0,0 +1,392 @@ +from __future__ import annotations + +import contextlib +import queue +import threading +from collections import defaultdict +from pathlib import Path +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread +from watchdog.utils.bricks import SkipRepeatsQueue + +if TYPE_CHECKING: + from watchdog.events import FileSystemEvent, FileSystemEventHandler + +DEFAULT_EMITTER_TIMEOUT = 1.0 # in seconds +DEFAULT_OBSERVER_TIMEOUT = 1.0 # in seconds + + +class EventQueue(SkipRepeatsQueue): + """Thread-safe event queue based on a special queue that skips adding + the same event (:class:`FileSystemEvent`) multiple times consecutively. + Thus avoiding dispatching multiple event handling + calls when multiple identical events are produced quicker than an observer + can consume them. + """ + + +class ObservedWatch: + """An scheduled watch. + + :param path: + Path string. + :param recursive: + ``True`` if watch is recursive; ``False`` otherwise. + :param event_filter: + Optional collection of :class:`watchdog.events.FileSystemEvent` to watch + """ + + def __init__(self, path: str | Path, *, recursive: bool, event_filter: list[type[FileSystemEvent]] | None = None): + self._path = str(path) if isinstance(path, Path) else path + self._is_recursive = recursive + self._event_filter = frozenset(event_filter) if event_filter is not None else None + + @property + def path(self) -> str: + """The path that this watch monitors.""" + return self._path + + @property + def is_recursive(self) -> bool: + """Determines whether subdirectories are watched for the path.""" + return self._is_recursive + + @property + def event_filter(self) -> frozenset[type[FileSystemEvent]] | None: + """Collection of event types watched for the path""" + return self._event_filter + + @property + def key(self) -> tuple[str, bool, frozenset[type[FileSystemEvent]] | None]: + return self.path, self.is_recursive, self.event_filter + + def __eq__(self, watch: object) -> bool: + if not isinstance(watch, ObservedWatch): + return NotImplemented + return self.key == watch.key + + def __ne__(self, watch: object) -> bool: + if not isinstance(watch, ObservedWatch): + return NotImplemented + return self.key != watch.key + + def __hash__(self) -> int: + return hash(self.key) + + def __repr__(self) -> str: + if self.event_filter is not None: + event_filter_str = "|".join(sorted(_cls.__name__ for _cls in self.event_filter)) + event_filter_str = f", event_filter={event_filter_str}" + else: + event_filter_str = "" + return f"<{type(self).__name__}: path={self.path!r}, is_recursive={self.is_recursive}{event_filter_str}>" + + +# Observer classes +class EventEmitter(BaseThread): + """Producer thread base class subclassed by event emitters + that generate events and populate a queue with them. + + :param event_queue: + The event queue to populate with generated events. + :type event_queue: + :class:`watchdog.events.EventQueue` + :param watch: + The watch to observe and produce events for. + :type watch: + :class:`ObservedWatch` + :param timeout: + Timeout (in seconds) between successive attempts at reading events. + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__() + self._event_queue = event_queue + self._watch = watch + self._timeout = timeout + self._event_filter = frozenset(event_filter) if event_filter is not None else None + + @property + def timeout(self) -> float: + """Blocking timeout for reading events.""" + return self._timeout + + @property + def watch(self) -> ObservedWatch: + """The watch associated with this emitter.""" + return self._watch + + def queue_event(self, event: FileSystemEvent) -> None: + """Queues a single event. + + :param event: + Event to be queued. + :type event: + An instance of :class:`watchdog.events.FileSystemEvent` + or a subclass. + """ + if self._event_filter is None or any(isinstance(event, cls) for cls in self._event_filter): + self._event_queue.put((event, self.watch)) + + def queue_events(self, timeout: float) -> None: + """Override this method to populate the event queue with events + per interval period. + + :param timeout: + Timeout (in seconds) between successive attempts at + reading events. + :type timeout: + ``float`` + """ + + def run(self) -> None: + while self.should_keep_running(): + self.queue_events(self.timeout) + + +class EventDispatcher(BaseThread): + """Consumer thread base class subclassed by event observer threads + that dispatch events from an event queue to appropriate event handlers. + + :param timeout: + Timeout value (in seconds) passed to emitters + constructions in the child class BaseObserver. + :type timeout: + ``float`` + """ + + stop_event = object() + """Event inserted into the queue to signal a requested stop.""" + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__() + self._event_queue = EventQueue() + self._timeout = timeout + + @property + def timeout(self) -> float: + """Timeout value to construct emitters with.""" + return self._timeout + + def stop(self) -> None: + BaseThread.stop(self) + with contextlib.suppress(queue.Full): + self.event_queue.put_nowait(EventDispatcher.stop_event) + + @property + def event_queue(self) -> EventQueue: + """The event queue which is populated with file system events + by emitters and from which events are dispatched by a dispatcher + thread. + """ + return self._event_queue + + def dispatch_events(self, event_queue: EventQueue) -> None: + """Override this method to consume events from an event queue, blocking + on the queue for the specified timeout before raising :class:`queue.Empty`. + + :param event_queue: + Event queue to populate with one set of events. + :type event_queue: + :class:`EventQueue` + :raises: + :class:`queue.Empty` + """ + + def run(self) -> None: + while self.should_keep_running(): + try: + self.dispatch_events(self.event_queue) + except queue.Empty: + continue + + +class BaseObserver(EventDispatcher): + """Base observer.""" + + def __init__(self, emitter_class: type[EventEmitter], *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(timeout=timeout) + self._emitter_class = emitter_class + self._lock = threading.RLock() + self._watches: set[ObservedWatch] = set() + self._handlers: defaultdict[ObservedWatch, set[FileSystemEventHandler]] = defaultdict(set) + self._emitters: set[EventEmitter] = set() + self._emitter_for_watch: dict[ObservedWatch, EventEmitter] = {} + + def _add_emitter(self, emitter: EventEmitter) -> None: + self._emitter_for_watch[emitter.watch] = emitter + self._emitters.add(emitter) + + def _remove_emitter(self, emitter: EventEmitter) -> None: + del self._emitter_for_watch[emitter.watch] + self._emitters.remove(emitter) + emitter.stop() + with contextlib.suppress(RuntimeError): + emitter.join() + + def _clear_emitters(self) -> None: + for emitter in self._emitters: + emitter.stop() + for emitter in self._emitters: + with contextlib.suppress(RuntimeError): + emitter.join() + self._emitters.clear() + self._emitter_for_watch.clear() + + def _add_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + self._handlers[watch].add(event_handler) + + def _remove_handlers_for_watch(self, watch: ObservedWatch) -> None: + del self._handlers[watch] + + @property + def emitters(self) -> set[EventEmitter]: + """Returns event emitter created by this observer.""" + return self._emitters + + def start(self) -> None: + for emitter in self._emitters.copy(): + try: + emitter.start() + except Exception: + self._remove_emitter(emitter) + raise + super().start() + + def schedule( + self, + event_handler: FileSystemEventHandler, + path: str, + *, + recursive: bool = False, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> ObservedWatch: + """Schedules watching a path and calls appropriate methods specified + in the given event handler in response to file system events. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param path: + Directory path that will be monitored. + :type path: + ``str`` + :param recursive: + ``True`` if events will be emitted for sub-directories + traversed recursively; ``False`` otherwise. + :type recursive: + ``bool`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + :return: + An :class:`ObservedWatch` object instance representing + a watch. + """ + with self._lock: + watch = ObservedWatch(path, recursive=recursive, event_filter=event_filter) + self._add_handler_for_watch(event_handler, watch) + + # If we don't have an emitter for this watch already, create it. + if watch not in self._emitter_for_watch: + emitter = self._emitter_class(self.event_queue, watch, timeout=self.timeout, event_filter=event_filter) + if self.is_alive(): + emitter.start() + self._add_emitter(emitter) + self._watches.add(watch) + return watch + + def add_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + """Adds a handler for the given watch. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param watch: + The watch to add a handler for. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + self._add_handler_for_watch(event_handler, watch) + + def remove_handler_for_watch(self, event_handler: FileSystemEventHandler, watch: ObservedWatch) -> None: + """Removes a handler for the given watch. + + :param event_handler: + An event handler instance that has appropriate event handling + methods which will be called by the observer in response to + file system events. + :type event_handler: + :class:`watchdog.events.FileSystemEventHandler` or a subclass + :param watch: + The watch to remove a handler for. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + self._handlers[watch].remove(event_handler) + + def unschedule(self, watch: ObservedWatch) -> None: + """Unschedules a watch. + + :param watch: + The watch to unschedule. + :type watch: + An instance of :class:`ObservedWatch` or a subclass of + :class:`ObservedWatch` + """ + with self._lock: + emitter = self._emitter_for_watch[watch] + del self._handlers[watch] + self._remove_emitter(emitter) + self._watches.remove(watch) + + def unschedule_all(self) -> None: + """Unschedules all watches and detaches all associated event handlers.""" + with self._lock: + self._handlers.clear() + self._clear_emitters() + self._watches.clear() + + def on_thread_stop(self) -> None: + self.unschedule_all() + + def dispatch_events(self, event_queue: EventQueue) -> None: + entry = event_queue.get(block=True) + if entry is EventDispatcher.stop_event: + return + + event, watch = entry + + with self._lock: + # To allow unschedule/stop and safe removal of event handlers + # within event handlers itself, check if the handler is still + # registered after every dispatch. + for handler in self._handlers[watch].copy(): + if handler in self._handlers[watch]: + handler.dispatch(event) + event_queue.task_done() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents.py new file mode 100644 index 0000000000000000000000000000000000000000..257e16e7b16c39751963781c1d37fc11b22489b5 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents.py @@ -0,0 +1,339 @@ +""":module: watchdog.observers.fsevents +:synopsis: FSEvents based emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS +""" + +from __future__ import annotations + +import logging +import os +import threading +import time +import unicodedata +from typing import TYPE_CHECKING + +import _watchdog_fsevents as _fsevents + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils.dirsnapshot import DirectorySnapshot + +if TYPE_CHECKING: + from watchdog.events import FileSystemEvent, FileSystemEventHandler + from watchdog.observers.api import EventQueue, ObservedWatch + + +logger = logging.getLogger("fsevents") + + +class FSEventsEmitter(EventEmitter): + """macOS FSEvents Emitter class. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :param suppress_history: + The FSEvents API may emit historic events up to 30 sec before the watch was + started. When ``suppress_history`` is ``True``, those events will be suppressed + by creating a directory snapshot of the watched path before starting the stream + as a reference to suppress old events. Warning: This may result in significant + memory usage in case of a large number of items in the watched path. + :type timeout: + ``float`` + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + suppress_history: bool = False, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._fs_view: set[int] = set() + self.suppress_history = suppress_history + self._start_time = 0.0 + self._starting_state: DirectorySnapshot | None = None + self._lock = threading.Lock() + self._absolute_watch_path = os.path.realpath(os.path.abspath(os.path.expanduser(self.watch.path))) + + def on_thread_stop(self) -> None: + _fsevents.remove_watch(self.watch) + _fsevents.stop(self) + + def queue_event(self, event: FileSystemEvent) -> None: + # fsevents defaults to be recursive, so if the watch was meant to be non-recursive then we need to drop + # all the events here which do not have a src_path / dest_path that matches the watched path + if self._watch.is_recursive or not self._is_recursive_event(event): + logger.debug("queue_event %s", event) + EventEmitter.queue_event(self, event) + else: + logger.debug("drop event %s", event) + + def _is_recursive_event(self, event: FileSystemEvent) -> bool: + src_path = event.src_path if event.is_directory else os.path.dirname(event.src_path) + if src_path == self._absolute_watch_path: + return False + + if isinstance(event, (FileMovedEvent, DirMovedEvent)): + # when moving something into the watch path we must always take the dirname, + # otherwise we miss out on `DirMovedEvent`s + dest_path = os.path.dirname(event.dest_path) + if dest_path == self._absolute_watch_path: + return False + + return True + + def _queue_created_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(dirname)) + + def _queue_deleted_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(dirname)) + + def _queue_modified_event(self, event: FileSystemEvent, src_path: bytes | str, dirname: bytes | str) -> None: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(src_path)) + + def _queue_renamed_event( + self, + src_event: FileSystemEvent, + src_path: bytes | str, + dst_path: bytes | str, + src_dirname: bytes | str, + dst_dirname: bytes | str, + ) -> None: + cls = DirMovedEvent if src_event.is_directory else FileMovedEvent + dst_path = self._encode_path(dst_path) + self.queue_event(cls(src_path, dst_path)) + self.queue_event(DirModifiedEvent(src_dirname)) + self.queue_event(DirModifiedEvent(dst_dirname)) + + def _is_historic_created_event(self, event: _fsevents.NativeEvent) -> bool: + # We only queue a created event if the item was created after we + # started the FSEventsStream. + + in_history = event.inode in self._fs_view + + if self._starting_state: + try: + old_inode = self._starting_state.inode(event.path)[0] + before_start = old_inode == event.inode + except KeyError: + before_start = False + else: + before_start = False + + return in_history or before_start + + @staticmethod + def _is_meta_mod(event: _fsevents.NativeEvent) -> bool: + """Returns True if the event indicates a change in metadata.""" + return event.is_inode_meta_mod or event.is_xattr_mod or event.is_owner_change + + def queue_events(self, timeout: float, events: list[_fsevents.NativeEvent]) -> None: # type: ignore[override] + if logger.getEffectiveLevel() <= logging.DEBUG: + for event in events: + flags = ", ".join(attr for attr in dir(event) if getattr(event, attr) is True) + logger.debug("%s: %s", event, flags) + + if time.monotonic() - self._start_time > 60: + # Event history is no longer needed, let's free some memory. + self._starting_state = None + + while events: + event = events.pop(0) + + src_path = self._encode_path(event.path) + src_dirname = os.path.dirname(src_path) + + try: + stat = os.stat(src_path) + except OSError: + stat = None + + exists = stat and stat.st_ino == event.inode + + # FSevents may coalesce multiple events for the same item + path into a + # single event. However, events are never coalesced for different items at + # the same path or for the same item at different paths. Therefore, the + # event chains "removed -> created" and "created -> renamed -> removed" will + # never emit a single native event and a deleted event *always* means that + # the item no longer existed at the end of the event chain. + + # Some events will have a spurious `is_created` flag set, coalesced from an + # already emitted and processed CreatedEvent. To filter those, we keep track + # of all inodes which we know to be already created. This is safer than + # keeping track of paths since paths are more likely to be reused than + # inodes. + + # Likewise, some events will have a spurious `is_modified`, + # `is_inode_meta_mod` or `is_xattr_mod` flag set. We currently do not + # suppress those but could do so if the item still exists by caching the + # stat result and verifying that it did change. + + if event.is_created and event.is_removed: + # Events will only be coalesced for the same item / inode. + # The sequence deleted -> created therefore cannot occur. + # Any combination with renamed cannot occur either. + + if not self._is_historic_created_event(event): + self._queue_created_event(event, src_path, src_dirname) + + self._fs_view.add(event.inode) + + if event.is_modified or self._is_meta_mod(event): + self._queue_modified_event(event, src_path, src_dirname) + + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + else: + if event.is_created and not self._is_historic_created_event(event): + self._queue_created_event(event, src_path, src_dirname) + + self._fs_view.add(event.inode) + + if event.is_modified or self._is_meta_mod(event): + self._queue_modified_event(event, src_path, src_dirname) + + if event.is_renamed: + # Check if we have a corresponding destination event in the watched path. + dst_event = next( + iter(e for e in events if e.is_renamed and e.inode == event.inode), + None, + ) + + if dst_event: + # Item was moved within the watched folder. + logger.debug("Destination event for rename is %s", dst_event) + + dst_path = self._encode_path(dst_event.path) + dst_dirname = os.path.dirname(dst_path) + + self._queue_renamed_event(event, src_path, dst_path, src_dirname, dst_dirname) + self._fs_view.add(event.inode) + + for sub_moved_event in generate_sub_moved_events(src_path, dst_path): + self.queue_event(sub_moved_event) + + # Process any coalesced flags for the dst_event. + + events.remove(dst_event) + + if dst_event.is_modified or self._is_meta_mod(dst_event): + self._queue_modified_event(dst_event, dst_path, dst_dirname) + + if dst_event.is_removed: + self._queue_deleted_event(dst_event, dst_path, dst_dirname) + self._fs_view.discard(dst_event.inode) + + elif exists: + # This is the destination event, item was moved into the watched + # folder. + self._queue_created_event(event, src_path, src_dirname) + self._fs_view.add(event.inode) + + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + + else: + # This is the source event, item was moved out of the watched + # folder. + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + # Skip further coalesced processing. + continue + + if event.is_removed: + # Won't occur together with renamed. + self._queue_deleted_event(event, src_path, src_dirname) + self._fs_view.discard(event.inode) + + if event.is_root_changed: + # This will be set if root or any of its parents is renamed or deleted. + # TODO: find out new path and generate DirMovedEvent? + self.queue_event(DirDeletedEvent(self.watch.path)) + logger.debug("Stopping because root path was changed") + self.stop() + + self._fs_view.clear() + + def events_callback(self, paths: list[bytes], inodes: list[int], flags: list[int], ids: list[int]) -> None: + """Callback passed to FSEventStreamCreate(), it will receive all + FS events and queue them. + """ + cls = _fsevents.NativeEvent + try: + events = [ + cls(path, inode, event_flags, event_id) + for path, inode, event_flags, event_id in zip(paths, inodes, flags, ids) + ] + with self._lock: + self.queue_events(self.timeout, events) + except Exception: + logger.exception("Unhandled exception in fsevents callback") + + def run(self) -> None: + self.pathnames = [self.watch.path] + self._start_time = time.monotonic() + try: + _fsevents.add_watch(self, self.watch, self.events_callback, self.pathnames) + _fsevents.read_events(self) + except Exception: + logger.exception("Unhandled exception in FSEventsEmitter") + + def on_thread_start(self) -> None: + if self.suppress_history: + watch_path = os.fsdecode(self.watch.path) if isinstance(self.watch.path, bytes) else self.watch.path + self._starting_state = DirectorySnapshot(watch_path) + + def _encode_path(self, path: bytes | str) -> bytes | str: + """Encode path only if bytes were passed to this emitter.""" + return os.fsencode(path) if isinstance(self.watch.path, bytes) else path + + +class FSEventsObserver(BaseObserver): + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(FSEventsEmitter, timeout=timeout) + + def schedule( + self, + event_handler: FileSystemEventHandler, + path: str, + *, + recursive: bool = False, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> ObservedWatch: + # Fix for issue #26: Trace/BPT error when given a unicode path + # string. https://github.com/gorakhargosh/watchdog/issues#issue/26 + if isinstance(path, str): + path = unicodedata.normalize("NFC", path) + + return super().schedule(event_handler, path, recursive=recursive, event_filter=event_filter) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents2.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents2.py new file mode 100644 index 0000000000000000000000000000000000000000..3d1f7e9b1eb7dd03bd58a52aa0728f2b590aaa0a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/fsevents2.py @@ -0,0 +1,253 @@ +""":module: watchdog.observers.fsevents2 +:synopsis: FSEvents based emitter implementation. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS +""" + +from __future__ import annotations + +import logging +import os +import queue +import unicodedata +import warnings +from threading import Thread +from typing import TYPE_CHECKING + +# pyobjc +import AppKit +from FSEvents import ( + CFRunLoopGetCurrent, + CFRunLoopRun, + CFRunLoopStop, + FSEventStreamCreate, + FSEventStreamInvalidate, + FSEventStreamRelease, + FSEventStreamScheduleWithRunLoop, + FSEventStreamStart, + FSEventStreamStop, + kCFAllocatorDefault, + kCFRunLoopDefaultMode, + kFSEventStreamCreateFlagFileEvents, + kFSEventStreamCreateFlagNoDefer, + kFSEventStreamEventFlagItemChangeOwner, + kFSEventStreamEventFlagItemCreated, + kFSEventStreamEventFlagItemFinderInfoMod, + kFSEventStreamEventFlagItemInodeMetaMod, + kFSEventStreamEventFlagItemIsDir, + kFSEventStreamEventFlagItemIsSymlink, + kFSEventStreamEventFlagItemModified, + kFSEventStreamEventFlagItemRemoved, + kFSEventStreamEventFlagItemRenamed, + kFSEventStreamEventFlagItemXattrMod, + kFSEventStreamEventIdSinceNow, +) + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + FileSystemEvent, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter + +if TYPE_CHECKING: + from typing import Callable + + from watchdog.observers.api import EventQueue, ObservedWatch + +logger = logging.getLogger(__name__) + +message = "watchdog.observers.fsevents2 is deprecated and will be removed in a future release." +warnings.warn(message, category=DeprecationWarning, stacklevel=1) +logger.warning(message) + + +class FSEventsQueue(Thread): + """Low level FSEvents client.""" + + def __init__(self, path: bytes | str) -> None: + Thread.__init__(self) + self._queue: queue.Queue[list[NativeEvent] | None] = queue.Queue() + self._run_loop = None + + if isinstance(path, bytes): + path = os.fsdecode(path) + self._path = unicodedata.normalize("NFC", path) + + context = None + latency = 1.0 + self._stream_ref = FSEventStreamCreate( + kCFAllocatorDefault, + self._callback, + context, + [self._path], + kFSEventStreamEventIdSinceNow, + latency, + kFSEventStreamCreateFlagNoDefer | kFSEventStreamCreateFlagFileEvents, + ) + if self._stream_ref is None: + error = "FSEvents. Could not create stream." + raise OSError(error) + + def run(self) -> None: + pool = AppKit.NSAutoreleasePool.alloc().init() + self._run_loop = CFRunLoopGetCurrent() + FSEventStreamScheduleWithRunLoop(self._stream_ref, self._run_loop, kCFRunLoopDefaultMode) + if not FSEventStreamStart(self._stream_ref): + FSEventStreamInvalidate(self._stream_ref) + FSEventStreamRelease(self._stream_ref) + error = "FSEvents. Could not start stream." + raise OSError(error) + + CFRunLoopRun() + FSEventStreamStop(self._stream_ref) + FSEventStreamInvalidate(self._stream_ref) + FSEventStreamRelease(self._stream_ref) + del pool + # Make sure waiting thread is notified + self._queue.put(None) + + def stop(self) -> None: + if self._run_loop is not None: + CFRunLoopStop(self._run_loop) + + def _callback( + self, + stream_ref: int, + client_callback_info: Callable, + num_events: int, + event_paths: list[bytes], + event_flags: list[int], + event_ids: list[int], + ) -> None: + events = [NativeEvent(path, flags, _id) for path, flags, _id in zip(event_paths, event_flags, event_ids)] + logger.debug("FSEvents callback. Got %d events:", num_events) + for e in events: + logger.debug(e) + self._queue.put(events) + + def read_events(self) -> list[NativeEvent] | None: + """Returns a list or one or more events, or None if there are no more + events to be read. + """ + return self._queue.get() if self.is_alive() else None + + +class NativeEvent: + def __init__(self, path: bytes, flags: int, event_id: int) -> None: + self.path = path + self.flags = flags + self.event_id = event_id + self.is_created = bool(flags & kFSEventStreamEventFlagItemCreated) + self.is_removed = bool(flags & kFSEventStreamEventFlagItemRemoved) + self.is_renamed = bool(flags & kFSEventStreamEventFlagItemRenamed) + self.is_modified = bool(flags & kFSEventStreamEventFlagItemModified) + self.is_change_owner = bool(flags & kFSEventStreamEventFlagItemChangeOwner) + self.is_inode_meta_mod = bool(flags & kFSEventStreamEventFlagItemInodeMetaMod) + self.is_finder_info_mod = bool(flags & kFSEventStreamEventFlagItemFinderInfoMod) + self.is_xattr_mod = bool(flags & kFSEventStreamEventFlagItemXattrMod) + self.is_symlink = bool(flags & kFSEventStreamEventFlagItemIsSymlink) + self.is_directory = bool(flags & kFSEventStreamEventFlagItemIsDir) + + @property + def _event_type(self) -> str: + if self.is_created: + return "Created" + if self.is_removed: + return "Removed" + if self.is_renamed: + return "Renamed" + if self.is_modified: + return "Modified" + if self.is_inode_meta_mod: + return "InodeMetaMod" + if self.is_xattr_mod: + return "XattrMod" + return "Unknown" + + def __repr__(self) -> str: + return ( + f"<{type(self).__name__}: path={self.path!r}, type={self._event_type}," + f" is_dir={self.is_directory}, flags={hex(self.flags)}, id={self.event_id}>" + ) + + +class FSEventsEmitter(EventEmitter): + """FSEvents based event emitter. Handles conversion of native events.""" + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ): + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._fsevents = FSEventsQueue(watch.path) + self._fsevents.start() + + def on_thread_stop(self) -> None: + self._fsevents.stop() + + def queue_events(self, timeout: float) -> None: + events = self._fsevents.read_events() + if events is None: + return + i = 0 + while i < len(events): + event = events[i] + + cls: type[FileSystemEvent] + # For some reason the create and remove flags are sometimes also + # set for rename and modify type events, so let those take + # precedence. + if event.is_renamed: + # Internal moves appears to always be consecutive in the same + # buffer and have IDs differ by exactly one (while others + # don't) making it possible to pair up the two events coming + # from a single move operation. (None of this is documented!) + # Otherwise, guess whether file was moved in or out. + # TODO: handle id wrapping + if i + 1 < len(events) and events[i + 1].is_renamed and events[i + 1].event_id == event.event_id + 1: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls(event.path, events[i + 1].path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + self.queue_event(DirModifiedEvent(os.path.dirname(events[i + 1].path))) + i += 1 + elif os.path.exists(event.path): + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + else: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + # TODO: generate events for tree + + elif event.is_modified or event.is_inode_meta_mod or event.is_xattr_mod: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(event.path)) + + elif event.is_created: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + + elif event.is_removed: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(event.path)) + self.queue_event(DirModifiedEvent(os.path.dirname(event.path))) + i += 1 + + +class FSEventsObserver2(BaseObserver): + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(FSEventsEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify.py new file mode 100644 index 0000000000000000000000000000000000000000..a07aee5cf4451d28e74f940a7f4fe72f02b72b9c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify.py @@ -0,0 +1,252 @@ +""":module: watchdog.observers.inotify +:synopsis: ``inotify(7)`` based emitter implementation. +:author: Sebastien Martini +:author: Luke McCarthy +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: Tim Cuthbertson +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: Linux 2.6.13+. + +.. ADMONITION:: About system requirements + + Recommended minimum kernel version: 2.6.25. + + Quote from the inotify(7) man page: + + "Inotify was merged into the 2.6.13 Linux kernel. The required library + interfaces were added to glibc in version 2.4. (IN_DONT_FOLLOW, + IN_MASK_ADD, and IN_ONLYDIR were only added in version 2.5.)" + + Therefore, you must ensure the system is running at least these versions + appropriate libraries and the kernel. + +.. ADMONITION:: About recursiveness, event order, and event coalescing + + Quote from the inotify(7) man page: + + If successive output inotify events produced on the inotify file + descriptor are identical (same wd, mask, cookie, and name) then they + are coalesced into a single event if the older event has not yet been + read (but see BUGS). + + The events returned by reading from an inotify file descriptor form + an ordered queue. Thus, for example, it is guaranteed that when + renaming from one directory to another, events will be produced in + the correct order on the inotify file descriptor. + + ... + + Inotify monitoring of directories is not recursive: to monitor + subdirectories under a directory, additional watches must be created. + + This emitter implementation therefore automatically adds watches for + sub-directories if running in recursive mode. + +Some extremely useful articles and documentation: + +.. _inotify FAQ: http://inotify.aiken.cz/?section=inotify&page=faq&lang=en +.. _intro to inotify: http://www.linuxjournal.com/article/8478 + +""" + +from __future__ import annotations + +import logging +import os +import threading +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileClosedEvent, + FileClosedNoWriteEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + FileOpenedEvent, + FileSystemEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.observers.inotify_buffer import InotifyBuffer +from watchdog.observers.inotify_c import InotifyConstants + +if TYPE_CHECKING: + from watchdog.observers.api import EventQueue, ObservedWatch + +logger = logging.getLogger(__name__) + + +class InotifyEmitter(EventEmitter): + """inotify(7)-based event emitter. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._lock = threading.Lock() + self._inotify: InotifyBuffer | None = None + + def on_thread_start(self) -> None: + path = os.fsencode(self.watch.path) + event_mask = self.get_event_mask_from_filter() + self._inotify = InotifyBuffer(path, recursive=self.watch.is_recursive, event_mask=event_mask) + + def on_thread_stop(self) -> None: + if self._inotify: + self._inotify.close() + self._inotify = None + + def queue_events(self, timeout: float, *, full_events: bool = False) -> None: + # If "full_events" is true, then the method will report unmatched move events as separate events + # This behavior is by default only called by a InotifyFullEmitter + if self._inotify is None: + logger.error("InotifyEmitter.queue_events() called when the thread is inactive") + return + with self._lock: + if self._inotify is None: + logger.error("InotifyEmitter.queue_events() called when the thread is inactive") + return + event = self._inotify.read_event() + if event is None: + return + + cls: type[FileSystemEvent] + if isinstance(event, tuple): + move_from, move_to = event + src_path = self._decode_path(move_from.src_path) + dest_path = self._decode_path(move_to.src_path) + cls = DirMovedEvent if move_from.is_directory else FileMovedEvent + self.queue_event(cls(src_path, dest_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + self.queue_event(DirModifiedEvent(os.path.dirname(dest_path))) + if move_from.is_directory and self.watch.is_recursive: + for sub_moved_event in generate_sub_moved_events(src_path, dest_path): + self.queue_event(sub_moved_event) + return + + src_path = self._decode_path(event.src_path) + if event.is_moved_to: + if full_events: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls("", src_path)) + else: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + if event.is_directory and self.watch.is_recursive: + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + elif event.is_attrib or event.is_modify: + cls = DirModifiedEvent if event.is_directory else FileModifiedEvent + self.queue_event(cls(src_path)) + elif event.is_delete or (event.is_moved_from and not full_events): + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_moved_from and full_events: + cls = DirMovedEvent if event.is_directory else FileMovedEvent + self.queue_event(cls(src_path, "")) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_create: + cls = DirCreatedEvent if event.is_directory else FileCreatedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_delete_self and src_path == self.watch.path: + cls = DirDeletedEvent if event.is_directory else FileDeletedEvent + self.queue_event(cls(src_path)) + self.stop() + elif not event.is_directory: + if event.is_open: + cls = FileOpenedEvent + self.queue_event(cls(src_path)) + elif event.is_close_write: + cls = FileClosedEvent + self.queue_event(cls(src_path)) + self.queue_event(DirModifiedEvent(os.path.dirname(src_path))) + elif event.is_close_nowrite: + cls = FileClosedNoWriteEvent + self.queue_event(cls(src_path)) + + def _decode_path(self, path: bytes | str) -> bytes | str: + """Decode path only if unicode string was passed to this emitter.""" + return path if isinstance(self.watch.path, bytes) else os.fsdecode(path) + + def get_event_mask_from_filter(self) -> int | None: + """Optimization: Only include events we are filtering in inotify call.""" + if self._event_filter is None: + return None + + # Always listen to delete self + event_mask = InotifyConstants.IN_DELETE_SELF + + for cls in self._event_filter: + if cls in {DirMovedEvent, FileMovedEvent}: + event_mask |= InotifyConstants.IN_MOVE + elif cls in {DirCreatedEvent, FileCreatedEvent}: + event_mask |= InotifyConstants.IN_MOVE | InotifyConstants.IN_CREATE + elif cls is DirModifiedEvent: + event_mask |= ( + InotifyConstants.IN_MOVE + | InotifyConstants.IN_ATTRIB + | InotifyConstants.IN_MODIFY + | InotifyConstants.IN_CREATE + | InotifyConstants.IN_CLOSE_WRITE + ) + elif cls is FileModifiedEvent: + event_mask |= InotifyConstants.IN_ATTRIB | InotifyConstants.IN_MODIFY + elif cls in {DirDeletedEvent, FileDeletedEvent}: + event_mask |= InotifyConstants.IN_DELETE + elif cls is FileClosedEvent: + event_mask |= InotifyConstants.IN_CLOSE_WRITE + elif cls is FileClosedNoWriteEvent: + event_mask |= InotifyConstants.IN_CLOSE_NOWRITE + elif cls is FileOpenedEvent: + event_mask |= InotifyConstants.IN_OPEN + + return event_mask + + +class InotifyFullEmitter(InotifyEmitter): + """inotify(7)-based event emitter. By default this class produces move events even if they are not matched + Such move events will have a ``None`` value for the unmatched part. + """ + + def queue_events(self, timeout: float, *, events: bool = True) -> None: # type: ignore[override] + super().queue_events(timeout, full_events=events) + + +class InotifyObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT, generate_full_events: bool = False) -> None: + cls = InotifyFullEmitter if generate_full_events else InotifyEmitter + super().__init__(cls, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_buffer.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_buffer.py new file mode 100644 index 0000000000000000000000000000000000000000..f542974a041ef5d27ea9c6cd4113a8827dfb68bd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_buffer.py @@ -0,0 +1,102 @@ +""":module: watchdog.observers.inotify_buffer +:synopsis: A wrapper for ``Inotify``. +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: linux +""" + +from __future__ import annotations + +import logging + +from watchdog.observers.inotify_c import Inotify, InotifyEvent +from watchdog.utils import BaseThread +from watchdog.utils.delayed_queue import DelayedQueue + +logger = logging.getLogger(__name__) + + +class InotifyBuffer(BaseThread): + """A wrapper for `Inotify` that holds events for `delay` seconds. During + this time, IN_MOVED_FROM and IN_MOVED_TO events are paired. + """ + + delay = 0.5 + + def __init__(self, path: bytes, *, recursive: bool = False, event_mask: int | None = None) -> None: + super().__init__() + # XXX: Remove quotes after Python 3.9 drop + self._queue = DelayedQueue["InotifyEvent | tuple[InotifyEvent, InotifyEvent]"](self.delay) + self._inotify = Inotify(path, recursive=recursive, event_mask=event_mask) + self.start() + + def read_event(self) -> InotifyEvent | tuple[InotifyEvent, InotifyEvent] | None: + """Returns a single event or a tuple of from/to events in case of a + paired move event. If this buffer has been closed, immediately return + None. + """ + return self._queue.get() + + def on_thread_stop(self) -> None: + self._inotify.close() + self._queue.close() + + def close(self) -> None: + self.stop() + self.join() + + def _group_events(self, event_list: list[InotifyEvent]) -> list[InotifyEvent | tuple[InotifyEvent, InotifyEvent]]: + """Group any matching move events""" + grouped: list[InotifyEvent | tuple[InotifyEvent, InotifyEvent]] = [] + for inotify_event in event_list: + logger.debug("in-event %s", inotify_event) + + def matching_from_event(event: InotifyEvent | tuple[InotifyEvent, InotifyEvent]) -> bool: + return not isinstance(event, tuple) and event.is_moved_from and event.cookie == inotify_event.cookie + + if inotify_event.is_moved_to: + # Check if move_from is already in the buffer + for index, event in enumerate(grouped): + if matching_from_event(event): + grouped[index] = (event, inotify_event) # type: ignore[assignment] + break + else: + # Check if move_from is in delayqueue already + from_event = self._queue.remove(matching_from_event) + if from_event is not None: + grouped.append((from_event, inotify_event)) # type: ignore[arg-type] + else: + logger.debug("could not find matching move_from event") + grouped.append(inotify_event) + else: + grouped.append(inotify_event) + return grouped + + def run(self) -> None: + """Read event from `inotify` and add them to `queue`. When reading a + IN_MOVE_TO event, remove the previous added matching IN_MOVE_FROM event + and add them back to the queue as a tuple. + """ + deleted_self = False + while self.should_keep_running() and not deleted_self: + inotify_events = self._inotify.read_events() + grouped_events = self._group_events(inotify_events) + for inotify_event in grouped_events: + if not isinstance(inotify_event, tuple) and inotify_event.is_ignored: + if inotify_event.src_path == self._inotify.path: + # Watch was removed explicitly (inotify_rm_watch(2)) or automatically (file + # was deleted, or filesystem was unmounted), stop watching for events + deleted_self = True + continue + + # Only add delay for unmatched move_from events + delay = not isinstance(inotify_event, tuple) and inotify_event.is_moved_from + self._queue.put(inotify_event, delay=delay) + + if ( + not isinstance(inotify_event, tuple) + and inotify_event.is_delete_self + and inotify_event.src_path == self._inotify.path + ): + # Deleted the watched directory, stop watching for events + deleted_self = True diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_c.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_c.py new file mode 100644 index 0000000000000000000000000000000000000000..33cbd25dda6eaf205c541e56cedf9ddf8d62cc4c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/inotify_c.py @@ -0,0 +1,605 @@ +from __future__ import annotations + +import contextlib +import ctypes +import ctypes.util +import errno +import os +import select +import struct +import threading +from ctypes import c_char_p, c_int, c_uint32 +from functools import reduce +from typing import TYPE_CHECKING + +from watchdog.utils import UnsupportedLibcError + +if TYPE_CHECKING: + from collections.abc import Generator + +libc = ctypes.CDLL(None) + +if not hasattr(libc, "inotify_init") or not hasattr(libc, "inotify_add_watch") or not hasattr(libc, "inotify_rm_watch"): + error = f"Unsupported libc version found: {libc._name}" # noqa:SLF001 + raise UnsupportedLibcError(error) + +inotify_add_watch = ctypes.CFUNCTYPE(c_int, c_int, c_char_p, c_uint32, use_errno=True)(("inotify_add_watch", libc)) + +inotify_rm_watch = ctypes.CFUNCTYPE(c_int, c_int, c_uint32, use_errno=True)(("inotify_rm_watch", libc)) + +inotify_init = ctypes.CFUNCTYPE(c_int, use_errno=True)(("inotify_init", libc)) + + +class InotifyConstants: + # User-space events + IN_ACCESS = 0x00000001 # File was accessed. + IN_MODIFY = 0x00000002 # File was modified. + IN_ATTRIB = 0x00000004 # Meta-data changed. + IN_CLOSE_WRITE = 0x00000008 # Writable file was closed. + IN_CLOSE_NOWRITE = 0x00000010 # Unwritable file closed. + IN_OPEN = 0x00000020 # File was opened. + IN_MOVED_FROM = 0x00000040 # File was moved from X. + IN_MOVED_TO = 0x00000080 # File was moved to Y. + IN_CREATE = 0x00000100 # Subfile was created. + IN_DELETE = 0x00000200 # Subfile was deleted. + IN_DELETE_SELF = 0x00000400 # Self was deleted. + IN_MOVE_SELF = 0x00000800 # Self was moved. + + # Helper user-space events. + IN_MOVE = IN_MOVED_FROM | IN_MOVED_TO # Moves. + + # Events sent by the kernel to a watch. + IN_UNMOUNT = 0x00002000 # Backing file system was unmounted. + IN_Q_OVERFLOW = 0x00004000 # Event queued overflowed. + IN_IGNORED = 0x00008000 # File was ignored. + + # Special flags. + IN_ONLYDIR = 0x01000000 # Only watch the path if it's a directory. + IN_DONT_FOLLOW = 0x02000000 # Do not follow a symbolic link. + IN_EXCL_UNLINK = 0x04000000 # Exclude events on unlinked objects + IN_MASK_ADD = 0x20000000 # Add to the mask of an existing watch. + IN_ISDIR = 0x40000000 # Event occurred against directory. + IN_ONESHOT = 0x80000000 # Only send event once. + + # All user-space events. + IN_ALL_EVENTS = reduce( + lambda x, y: x | y, + [ + IN_ACCESS, + IN_MODIFY, + IN_ATTRIB, + IN_CLOSE_WRITE, + IN_CLOSE_NOWRITE, + IN_OPEN, + IN_MOVED_FROM, + IN_MOVED_TO, + IN_DELETE, + IN_CREATE, + IN_DELETE_SELF, + IN_MOVE_SELF, + ], + ) + + # Flags for ``inotify_init1`` + IN_CLOEXEC = 0x02000000 + IN_NONBLOCK = 0x00004000 + + +# Watchdog's API cares only about these events. +WATCHDOG_ALL_EVENTS = reduce( + lambda x, y: x | y, + [ + InotifyConstants.IN_MODIFY, + InotifyConstants.IN_ATTRIB, + InotifyConstants.IN_MOVED_FROM, + InotifyConstants.IN_MOVED_TO, + InotifyConstants.IN_CREATE, + InotifyConstants.IN_DELETE, + InotifyConstants.IN_DELETE_SELF, + InotifyConstants.IN_DONT_FOLLOW, + InotifyConstants.IN_CLOSE_WRITE, + InotifyConstants.IN_CLOSE_NOWRITE, + InotifyConstants.IN_OPEN, + ], +) + + +class InotifyEventStruct(ctypes.Structure): + """Structure representation of the inotify_event structure + (used in buffer size calculations):: + + struct inotify_event { + __s32 wd; /* watch descriptor */ + __u32 mask; /* watch mask */ + __u32 cookie; /* cookie to synchronize two events */ + __u32 len; /* length (including nulls) of name */ + char name[0]; /* stub for possible name */ + }; + """ + + _fields_ = ( + ("wd", c_int), + ("mask", c_uint32), + ("cookie", c_uint32), + ("len", c_uint32), + ("name", c_char_p), + ) + + +EVENT_SIZE = ctypes.sizeof(InotifyEventStruct) +DEFAULT_NUM_EVENTS = 2048 +DEFAULT_EVENT_BUFFER_SIZE = DEFAULT_NUM_EVENTS * (EVENT_SIZE + 16) + + +class Inotify: + """Linux inotify(7) API wrapper class. + + :param path: + The directory path for which we want an inotify object. + :type path: + :class:`bytes` + :param recursive: + ``True`` if subdirectories should be monitored; ``False`` otherwise. + """ + + def __init__(self, path: bytes, *, recursive: bool = False, event_mask: int | None = None) -> None: + # The file descriptor associated with the inotify instance. + inotify_fd = inotify_init() + if inotify_fd == -1: + Inotify._raise_error() + self._inotify_fd = inotify_fd + self._lock = threading.Lock() + self._closed = False + self._is_reading = True + self._kill_r, self._kill_w = os.pipe() + + # _check_inotify_fd will return true if we can read _inotify_fd without blocking + if hasattr(select, "poll"): + self._poller = select.poll() + self._poller.register(self._inotify_fd, select.POLLIN) + self._poller.register(self._kill_r, select.POLLIN) + + def do_poll() -> bool: + return any(fd == self._inotify_fd for fd, _ in self._poller.poll()) + + self._check_inotify_fd = do_poll + else: + + def do_select() -> bool: + result = select.select([self._inotify_fd, self._kill_r], [], []) + return self._inotify_fd in result[0] + + self._check_inotify_fd = do_select + + # Stores the watch descriptor for a given path. + self._wd_for_path: dict[bytes, int] = {} + self._path_for_wd: dict[int, bytes] = {} + + self._path = path + # Default to all events + if event_mask is None: + event_mask = WATCHDOG_ALL_EVENTS + self._event_mask = event_mask + self._is_recursive = recursive + if os.path.isdir(path): + self._add_dir_watch(path, event_mask, recursive=recursive) + else: + self._add_watch(path, event_mask) + self._moved_from_events: dict[int, InotifyEvent] = {} + + @property + def event_mask(self) -> int: + """The event mask for this inotify instance.""" + return self._event_mask + + @property + def path(self) -> bytes: + """The path associated with the inotify instance.""" + return self._path + + @property + def is_recursive(self) -> bool: + """Whether we are watching directories recursively.""" + return self._is_recursive + + @property + def fd(self) -> int: + """The file descriptor associated with the inotify instance.""" + return self._inotify_fd + + def clear_move_records(self) -> None: + """Clear cached records of MOVED_FROM events""" + self._moved_from_events = {} + + def source_for_move(self, destination_event: InotifyEvent) -> bytes | None: + """The source path corresponding to the given MOVED_TO event. + + If the source path is outside the monitored directories, None + is returned instead. + """ + if destination_event.cookie in self._moved_from_events: + return self._moved_from_events[destination_event.cookie].src_path + + return None + + def remember_move_from_event(self, event: InotifyEvent) -> None: + """Save this event as the source event for future MOVED_TO events to + reference. + """ + self._moved_from_events[event.cookie] = event + + def add_watch(self, path: bytes) -> None: + """Adds a watch for the given path. + + :param path: + Path to begin monitoring. + """ + with self._lock: + self._add_watch(path, self._event_mask) + + def remove_watch(self, path: bytes) -> None: + """Removes a watch for the given path. + + :param path: + Path string for which the watch will be removed. + """ + with self._lock: + wd = self._wd_for_path.pop(path) + del self._path_for_wd[wd] + if inotify_rm_watch(self._inotify_fd, wd) == -1: + Inotify._raise_error() + + def close(self) -> None: + """Closes the inotify instance and removes all associated watches.""" + with self._lock: + if not self._closed: + self._closed = True + + if self._path in self._wd_for_path: + wd = self._wd_for_path[self._path] + inotify_rm_watch(self._inotify_fd, wd) + + if self._is_reading: + # inotify_rm_watch() should write data to _inotify_fd and wake + # the thread, but writing to the kill channel will gaurentee this + os.write(self._kill_w, b"!") + else: + self._close_resources() + + def read_events(self, *, event_buffer_size: int = DEFAULT_EVENT_BUFFER_SIZE) -> list[InotifyEvent]: + """Reads events from inotify and yields them.""" + # HACK: We need to traverse the directory path + # recursively and simulate events for newly + # created subdirectories/files. This will handle + # mkdir -p foobar/blah/bar; touch foobar/afile + + def _recursive_simulate(src_path: bytes) -> list[InotifyEvent]: + events = [] + for root, dirnames, filenames in os.walk(src_path): + for dirname in dirnames: + with contextlib.suppress(OSError): + full_path = os.path.join(root, dirname) + wd_dir = self._add_watch(full_path, self._event_mask) + e = InotifyEvent( + wd_dir, + InotifyConstants.IN_CREATE | InotifyConstants.IN_ISDIR, + 0, + dirname, + full_path, + ) + events.append(e) + for filename in filenames: + full_path = os.path.join(root, filename) + wd_parent_dir = self._wd_for_path[os.path.dirname(full_path)] + e = InotifyEvent( + wd_parent_dir, + InotifyConstants.IN_CREATE, + 0, + filename, + full_path, + ) + events.append(e) + return events + + event_buffer = b"" + while True: + try: + with self._lock: + if self._closed: + return [] + + self._is_reading = True + + if self._check_inotify_fd(): + event_buffer = os.read(self._inotify_fd, event_buffer_size) + + with self._lock: + self._is_reading = False + + if self._closed: + self._close_resources() + return [] + except OSError as e: + if e.errno == errno.EINTR: + continue + + if e.errno == errno.EBADF: + return [] + + raise + break + + with self._lock: + event_list = [] + for wd, mask, cookie, name in Inotify._parse_event_buffer(event_buffer): + if wd == -1: + continue + wd_path = self._path_for_wd[wd] + src_path = os.path.join(wd_path, name) if name else wd_path # avoid trailing slash + inotify_event = InotifyEvent(wd, mask, cookie, name, src_path) + + if inotify_event.is_moved_from: + self.remember_move_from_event(inotify_event) + elif inotify_event.is_moved_to: + move_src_path = self.source_for_move(inotify_event) + if move_src_path in self._wd_for_path: + moved_wd = self._wd_for_path[move_src_path] + del self._wd_for_path[move_src_path] + self._wd_for_path[inotify_event.src_path] = moved_wd + self._path_for_wd[moved_wd] = inotify_event.src_path + if self.is_recursive: + for _path in self._wd_for_path.copy(): + if _path.startswith(move_src_path + os.path.sep.encode()): + moved_wd = self._wd_for_path.pop(_path) + _move_to_path = _path.replace(move_src_path, inotify_event.src_path) + self._wd_for_path[_move_to_path] = moved_wd + self._path_for_wd[moved_wd] = _move_to_path + src_path = os.path.join(wd_path, name) + inotify_event = InotifyEvent(wd, mask, cookie, name, src_path) + + if inotify_event.is_ignored: + # Clean up book-keeping for deleted watches. + path = self._path_for_wd.pop(wd) + if self._wd_for_path[path] == wd: + del self._wd_for_path[path] + + event_list.append(inotify_event) + + if self.is_recursive and inotify_event.is_directory and inotify_event.is_create: + # TODO: When a directory from another part of the + # filesystem is moved into a watched directory, this + # will not generate events for the directory tree. + # We need to coalesce IN_MOVED_TO events and those + # IN_MOVED_TO events which don't pair up with + # IN_MOVED_FROM events should be marked IN_CREATE + # instead relative to this directory. + try: + self._add_watch(src_path, self._event_mask) + except OSError: + continue + + event_list.extend(_recursive_simulate(src_path)) + + return event_list + + def _close_resources(self) -> None: + os.close(self._inotify_fd) + os.close(self._kill_r) + os.close(self._kill_w) + + # Non-synchronized methods. + def _add_dir_watch(self, path: bytes, mask: int, *, recursive: bool) -> None: + """Adds a watch (optionally recursively) for the given directory path + to monitor events specified by the mask. + + :param path: + Path to monitor + :param recursive: + ``True`` to monitor recursively. + :param mask: + Event bit mask. + """ + if not os.path.isdir(path): + raise OSError(errno.ENOTDIR, os.strerror(errno.ENOTDIR), path) + self._add_watch(path, mask) + if recursive: + for root, dirnames, _ in os.walk(path): + for dirname in dirnames: + full_path = os.path.join(root, dirname) + if os.path.islink(full_path): + continue + self._add_watch(full_path, mask) + + def _add_watch(self, path: bytes, mask: int) -> int: + """Adds a watch for the given path to monitor events specified by the + mask. + + :param path: + Path to monitor + :param mask: + Event bit mask. + """ + wd = inotify_add_watch(self._inotify_fd, path, mask) + if wd == -1: + Inotify._raise_error() + self._wd_for_path[path] = wd + self._path_for_wd[wd] = path + return wd + + @staticmethod + def _raise_error() -> None: + """Raises errors for inotify failures.""" + err = ctypes.get_errno() + + if err == errno.ENOSPC: + raise OSError(errno.ENOSPC, "inotify watch limit reached") + + if err == errno.EMFILE: + raise OSError(errno.EMFILE, "inotify instance limit reached") + + if err != errno.EACCES: + raise OSError(err, os.strerror(err)) + + @staticmethod + def _parse_event_buffer(event_buffer: bytes) -> Generator[tuple[int, int, int, bytes]]: + """Parses an event buffer of ``inotify_event`` structs returned by + inotify:: + + struct inotify_event { + __s32 wd; /* watch descriptor */ + __u32 mask; /* watch mask */ + __u32 cookie; /* cookie to synchronize two events */ + __u32 len; /* length (including nulls) of name */ + char name[0]; /* stub for possible name */ + }; + + The ``cookie`` member of this struct is used to pair two related + events, for example, it pairs an IN_MOVED_FROM event with an + IN_MOVED_TO event. + """ + i = 0 + while i + 16 <= len(event_buffer): + wd, mask, cookie, length = struct.unpack_from("iIII", event_buffer, i) + name = event_buffer[i + 16 : i + 16 + length].rstrip(b"\0") + i += 16 + length + yield wd, mask, cookie, name + + +class InotifyEvent: + """Inotify event struct wrapper. + + :param wd: + Watch descriptor + :param mask: + Event mask + :param cookie: + Event cookie + :param name: + Base name of the event source path. + :param src_path: + Full event source path. + """ + + def __init__(self, wd: int, mask: int, cookie: int, name: bytes, src_path: bytes) -> None: + self._wd = wd + self._mask = mask + self._cookie = cookie + self._name = name + self._src_path = src_path + + @property + def src_path(self) -> bytes: + return self._src_path + + @property + def wd(self) -> int: + return self._wd + + @property + def mask(self) -> int: + return self._mask + + @property + def cookie(self) -> int: + return self._cookie + + @property + def name(self) -> bytes: + return self._name + + @property + def is_modify(self) -> bool: + return self._mask & InotifyConstants.IN_MODIFY > 0 + + @property + def is_close_write(self) -> bool: + return self._mask & InotifyConstants.IN_CLOSE_WRITE > 0 + + @property + def is_close_nowrite(self) -> bool: + return self._mask & InotifyConstants.IN_CLOSE_NOWRITE > 0 + + @property + def is_open(self) -> bool: + return self._mask & InotifyConstants.IN_OPEN > 0 + + @property + def is_access(self) -> bool: + return self._mask & InotifyConstants.IN_ACCESS > 0 + + @property + def is_delete(self) -> bool: + return self._mask & InotifyConstants.IN_DELETE > 0 + + @property + def is_delete_self(self) -> bool: + return self._mask & InotifyConstants.IN_DELETE_SELF > 0 + + @property + def is_create(self) -> bool: + return self._mask & InotifyConstants.IN_CREATE > 0 + + @property + def is_moved_from(self) -> bool: + return self._mask & InotifyConstants.IN_MOVED_FROM > 0 + + @property + def is_moved_to(self) -> bool: + return self._mask & InotifyConstants.IN_MOVED_TO > 0 + + @property + def is_move(self) -> bool: + return self._mask & InotifyConstants.IN_MOVE > 0 + + @property + def is_move_self(self) -> bool: + return self._mask & InotifyConstants.IN_MOVE_SELF > 0 + + @property + def is_attrib(self) -> bool: + return self._mask & InotifyConstants.IN_ATTRIB > 0 + + @property + def is_ignored(self) -> bool: + return self._mask & InotifyConstants.IN_IGNORED > 0 + + @property + def is_directory(self) -> bool: + # It looks like the kernel does not provide this information for + # IN_DELETE_SELF and IN_MOVE_SELF. In this case, assume it's a dir. + # See also: https://github.com/seb-m/pyinotify/blob/2c7e8f8/python2/pyinotify.py#L897 + return self.is_delete_self or self.is_move_self or self._mask & InotifyConstants.IN_ISDIR > 0 + + @property + def key(self) -> tuple[bytes, int, int, int, bytes]: + return self._src_path, self._wd, self._mask, self._cookie, self._name + + def __eq__(self, inotify_event: object) -> bool: + if not isinstance(inotify_event, InotifyEvent): + return NotImplemented + return self.key == inotify_event.key + + def __ne__(self, inotify_event: object) -> bool: + if not isinstance(inotify_event, InotifyEvent): + return NotImplemented + return self.key != inotify_event.key + + def __hash__(self) -> int: + return hash(self.key) + + @staticmethod + def _get_mask_string(mask: int) -> str: + masks = [] + for c in dir(InotifyConstants): + if c.startswith("IN_") and c not in {"IN_ALL_EVENTS", "IN_MOVE"}: + c_val = getattr(InotifyConstants, c) + if mask & c_val: + masks.append(c) + return "|".join(masks) + + def __repr__(self) -> str: + return ( + f"<{type(self).__name__}: src_path={self.src_path!r}, wd={self.wd}," + f" mask={self._get_mask_string(self.mask)}, cookie={self.cookie}," + f" name={os.fsdecode(self.name)!r}>" + ) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/kqueue.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/kqueue.py new file mode 100644 index 0000000000000000000000000000000000000000..2f9d0c6ffa3c3fda21803bbf38ea853e75a12332 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/kqueue.py @@ -0,0 +1,655 @@ +""":module: watchdog.observers.kqueue +:synopsis: ``kqueue(2)`` based emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: macOS and BSD with kqueue(2). + +.. WARNING:: kqueue is a very heavyweight way to monitor file systems. + Each kqueue-detected directory modification triggers + a full directory scan. Traversing the entire directory tree + and opening file descriptors for all files will create + performance problems. We need to find a way to re-scan + only those directories which report changes and do a diff + between two sub-DirectorySnapshots perhaps. + +.. ADMONITION:: About OS X performance guidelines + + Quote from the `macOS File System Performance Guidelines`_: + + "When you only want to track changes on a file or directory, be sure to + open it using the ``O_EVTONLY`` flag. This flag prevents the file or + directory from being marked as open or in use. This is important + if you are tracking files on a removable volume and the user tries to + unmount the volume. With this flag in place, the system knows it can + dismiss the volume. If you had opened the files or directories without + this flag, the volume would be marked as busy and would not be + unmounted." + + ``O_EVTONLY`` is defined as ``0x8000`` in the OS X header files. + More information here: http://www.mlsite.net/blog/?p=2312 + +Classes +------- +.. autoclass:: KqueueEmitter + :members: + :show-inheritance: + +Collections and Utility Classes +------------------------------- +.. autoclass:: KeventDescriptor + :members: + :show-inheritance: + +.. autoclass:: KeventDescriptorSet + :members: + :show-inheritance: + +.. _macOS File System Performance Guidelines: + http://developer.apple.com/library/ios/#documentation/Performance/Conceptual/FileSystem/Articles/TrackingChanges.html#//apple_ref/doc/uid/20001993-CJBJFIDD + +""" + + +# The `select` module varies between platforms. +# mypy may complain about missing module attributes depending on which platform it's running on. +# The comment below disables mypy's attribute check. +# mypy: disable-error-code="attr-defined, name-defined" + +from __future__ import annotations + +import contextlib +import errno +import os +import os.path +import select +import threading +from stat import S_ISDIR +from typing import TYPE_CHECKING + +from watchdog.events import ( + EVENT_TYPE_CREATED, + EVENT_TYPE_DELETED, + EVENT_TYPE_MOVED, + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils import platform +from watchdog.utils.dirsnapshot import DirectorySnapshot + +if TYPE_CHECKING: + from collections.abc import Generator + from typing import Callable + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + +# Maximum number of events to process. +MAX_EVENTS = 4096 + +# O_EVTONLY value from the header files for OS X only. +O_EVTONLY = 0x8000 + +# Pre-calculated values for the kevent filter, flags, and fflags attributes. +WATCHDOG_OS_OPEN_FLAGS = O_EVTONLY if platform.is_darwin() else os.O_RDONLY | os.O_NONBLOCK +WATCHDOG_KQ_FILTER = select.KQ_FILTER_VNODE +WATCHDOG_KQ_EV_FLAGS = select.KQ_EV_ADD | select.KQ_EV_ENABLE | select.KQ_EV_CLEAR +WATCHDOG_KQ_FFLAGS = ( + select.KQ_NOTE_DELETE + | select.KQ_NOTE_WRITE + | select.KQ_NOTE_EXTEND + | select.KQ_NOTE_ATTRIB + | select.KQ_NOTE_LINK + | select.KQ_NOTE_RENAME + | select.KQ_NOTE_REVOKE +) + + +def absolute_path(path: bytes | str) -> bytes | str: + return os.path.abspath(os.path.normpath(path)) + + +# Flag tests. + + +def is_deleted(kev: select.kevent) -> bool: + """Determines whether the given kevent represents deletion.""" + return kev.fflags & select.KQ_NOTE_DELETE > 0 + + +def is_modified(kev: select.kevent) -> bool: + """Determines whether the given kevent represents modification.""" + fflags = kev.fflags + return (fflags & select.KQ_NOTE_EXTEND > 0) or (fflags & select.KQ_NOTE_WRITE > 0) + + +def is_attrib_modified(kev: select.kevent) -> bool: + """Determines whether the given kevent represents attribute modification.""" + return kev.fflags & select.KQ_NOTE_ATTRIB > 0 + + +def is_renamed(kev: select.kevent) -> bool: + """Determines whether the given kevent represents movement.""" + return kev.fflags & select.KQ_NOTE_RENAME > 0 + + +class KeventDescriptorSet: + """Thread-safe kevent descriptor collection.""" + + def __init__(self) -> None: + self._descriptors: set[KeventDescriptor] = set() + self._descriptor_for_path: dict[bytes | str, KeventDescriptor] = {} + self._descriptor_for_fd: dict[int, KeventDescriptor] = {} + self._kevents: list[select.kevent] = [] + self._lock = threading.Lock() + + @property + def kevents(self) -> list[select.kevent]: + """List of kevents monitored.""" + with self._lock: + return self._kevents + + @property + def paths(self) -> list[bytes | str]: + """List of paths for which kevents have been created.""" + with self._lock: + return list(self._descriptor_for_path.keys()) + + def get_for_fd(self, fd: int) -> KeventDescriptor: + """Given a file descriptor, returns the kevent descriptor object + for it. + + :param fd: + OS file descriptor. + :type fd: + ``int`` + :returns: + A :class:`KeventDescriptor` object. + """ + with self._lock: + return self._descriptor_for_fd[fd] + + def get(self, path: bytes | str) -> KeventDescriptor: + """Obtains a :class:`KeventDescriptor` object for the specified path. + + :param path: + Path for which the descriptor will be obtained. + """ + with self._lock: + path = absolute_path(path) + return self._get(path) + + def __contains__(self, path: bytes | str) -> bool: + """Determines whether a :class:`KeventDescriptor has been registered + for the specified path. + + :param path: + Path for which the descriptor will be obtained. + """ + with self._lock: + path = absolute_path(path) + return self._has_path(path) + + def add(self, path: bytes | str, *, is_directory: bool) -> None: + """Adds a :class:`KeventDescriptor` to the collection for the given + path. + + :param path: + The path for which a :class:`KeventDescriptor` object will be + added. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + with self._lock: + path = absolute_path(path) + if not self._has_path(path): + self._add_descriptor(KeventDescriptor(path, is_directory=is_directory)) + + def remove(self, path: bytes | str) -> None: + """Removes the :class:`KeventDescriptor` object for the given path + if it already exists. + + :param path: + Path for which the :class:`KeventDescriptor` object will be + removed. + """ + with self._lock: + path = absolute_path(path) + if self._has_path(path): + self._remove_descriptor(self._get(path)) + + def clear(self) -> None: + """Clears the collection and closes all open descriptors.""" + with self._lock: + for descriptor in self._descriptors: + descriptor.close() + self._descriptors.clear() + self._descriptor_for_fd.clear() + self._descriptor_for_path.clear() + self._kevents = [] + + # Thread-unsafe methods. Locking is provided at a higher level. + def _get(self, path: bytes | str) -> KeventDescriptor: + """Returns a kevent descriptor for a given path.""" + return self._descriptor_for_path[path] + + def _has_path(self, path: bytes | str) -> bool: + """Determines whether a :class:`KeventDescriptor` for the specified + path exists already in the collection. + """ + return path in self._descriptor_for_path + + def _add_descriptor(self, descriptor: KeventDescriptor) -> None: + """Adds a descriptor to the collection. + + :param descriptor: + An instance of :class:`KeventDescriptor` to be added. + """ + self._descriptors.add(descriptor) + self._kevents.append(descriptor.kevent) + self._descriptor_for_path[descriptor.path] = descriptor + self._descriptor_for_fd[descriptor.fd] = descriptor + + def _remove_descriptor(self, descriptor: KeventDescriptor) -> None: + """Removes a descriptor from the collection. + + :param descriptor: + An instance of :class:`KeventDescriptor` to be removed. + """ + self._descriptors.remove(descriptor) + del self._descriptor_for_fd[descriptor.fd] + del self._descriptor_for_path[descriptor.path] + self._kevents.remove(descriptor.kevent) + descriptor.close() + + +class KeventDescriptor: + """A kevent descriptor convenience data structure to keep together: + + * kevent + * directory status + * path + * file descriptor + + :param path: + Path string for which a kevent descriptor will be created. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + + def __init__(self, path: bytes | str, *, is_directory: bool) -> None: + self._path = absolute_path(path) + self._is_directory = is_directory + self._fd = os.open(path, WATCHDOG_OS_OPEN_FLAGS) + self._kev = select.kevent( + self._fd, + filter=WATCHDOG_KQ_FILTER, + flags=WATCHDOG_KQ_EV_FLAGS, + fflags=WATCHDOG_KQ_FFLAGS, + ) + + @property + def fd(self) -> int: + """OS file descriptor for the kevent descriptor.""" + return self._fd + + @property + def path(self) -> bytes | str: + """The path associated with the kevent descriptor.""" + return self._path + + @property + def kevent(self) -> select.kevent: + """The kevent object associated with the kevent descriptor.""" + return self._kev + + @property + def is_directory(self) -> bool: + """Determines whether the kevent descriptor refers to a directory. + + :returns: + ``True`` or ``False`` + """ + return self._is_directory + + def close(self) -> None: + """Closes the file descriptor associated with a kevent descriptor.""" + with contextlib.suppress(OSError): + os.close(self.fd) + + @property + def key(self) -> tuple[bytes | str, bool]: + return (self.path, self.is_directory) + + def __eq__(self, descriptor: object) -> bool: + if not isinstance(descriptor, KeventDescriptor): + return NotImplemented + return self.key == descriptor.key + + def __ne__(self, descriptor: object) -> bool: + if not isinstance(descriptor, KeventDescriptor): + return NotImplemented + return self.key != descriptor.key + + def __hash__(self) -> int: + return hash(self.key) + + def __repr__(self) -> str: + return f"<{type(self).__name__}: path={self.path!r}, is_directory={self.is_directory}>" + + +class KqueueEmitter(EventEmitter): + """kqueue(2)-based event emitter. + + .. ADMONITION:: About ``kqueue(2)`` behavior and this implementation + + ``kqueue(2)`` monitors file system events only for + open descriptors, which means, this emitter does a lot of + book-keeping behind the scenes to keep track of open + descriptors for every entry in the monitored directory tree. + + This also means the number of maximum open file descriptors + on your system must be increased **manually**. + Usually, issuing a call to ``ulimit`` should suffice:: + + ulimit -n 1024 + + Ensure that you pick a number that is larger than the + number of files you expect to be monitored. + + ``kqueue(2)`` does not provide enough information about the + following things: + + * The destination path of a file or directory that is renamed. + * Creation of a file or directory within a directory; in this + case, ``kqueue(2)`` only indicates a modified event on the + parent directory. + + Therefore, this emitter takes a snapshot of the directory + tree when ``kqueue(2)`` detects a change on the file system + to be able to determine the above information. + + :param event_queue: + The event queue to fill with events. + :param watch: + A watch object representing the directory to monitor. + :type watch: + :class:`watchdog.observers.api.ObservedWatch` + :param timeout: + Read events blocking timeout (in seconds). + :type timeout: + ``float`` + :param event_filter: + Collection of event types to emit, or None for no filtering (default). + :type event_filter: + Iterable[:class:`watchdog.events.FileSystemEvent`] | None + :param stat: stat function. See ``os.stat`` for details. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + stat: Callable[[str], os.stat_result] = os.stat, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + + self._kq = select.kqueue() + self._lock = threading.RLock() + + # A collection of KeventDescriptor. + self._descriptors = KeventDescriptorSet() + + def custom_stat(path: str, cls: KqueueEmitter = self) -> os.stat_result: + stat_info = stat(path) + cls._register_kevent(path, is_directory=S_ISDIR(stat_info.st_mode)) + return stat_info + + self._snapshot = DirectorySnapshot(watch.path, recursive=watch.is_recursive, stat=custom_stat) + + def _register_kevent(self, path: bytes | str, *, is_directory: bool) -> None: + """Registers a kevent descriptor for the given path. + + :param path: + Path for which a kevent descriptor will be created. + :param is_directory: + ``True`` if the path refers to a directory; ``False`` otherwise. + :type is_directory: + ``bool`` + """ + try: + self._descriptors.add(path, is_directory=is_directory) + except OSError as e: + if e.errno == errno.ENOENT: + # Probably dealing with a temporary file that was created + # and then quickly deleted before we could open + # a descriptor for it. Therefore, simply queue a sequence + # of created and deleted events for the path. + + # TODO: We could simply ignore these files. + # Locked files cause the python process to die with + # a bus error when we handle temporary files. + # eg. .git/index.lock when running tig operations. + # I don't fully understand this at the moment. + pass + elif e.errno == errno.EOPNOTSUPP: + # Probably dealing with the socket or special file + # mounted through a file system that does not support + # access to it (e.g. NFS). On BSD systems look at + # EOPNOTSUPP in man 2 open. + pass + else: + # All other errors are propagated. + raise + + def _unregister_kevent(self, path: bytes | str) -> None: + """Convenience function to close the kevent descriptor for a + specified kqueue-monitored path. + + :param path: + Path for which the kevent descriptor will be closed. + """ + self._descriptors.remove(path) + + def queue_event(self, event: FileSystemEvent) -> None: + """Handles queueing a single event object. + + :param event: + An instance of :class:`watchdog.events.FileSystemEvent` + or a subclass. + """ + # Handles all the book keeping for queued events. + # We do not need to fire moved/deleted events for all subitems in + # a directory tree here, because this function is called by kqueue + # for all those events anyway. + EventEmitter.queue_event(self, event) + if event.event_type == EVENT_TYPE_CREATED: + self._register_kevent(event.src_path, is_directory=event.is_directory) + elif event.event_type == EVENT_TYPE_MOVED: + self._unregister_kevent(event.src_path) + self._register_kevent(event.dest_path, is_directory=event.is_directory) + elif event.event_type == EVENT_TYPE_DELETED: + self._unregister_kevent(event.src_path) + + def _gen_kqueue_events( + self, kev: select.kevent, ref_snapshot: DirectorySnapshot, new_snapshot: DirectorySnapshot + ) -> Generator[FileSystemEvent]: + """Generate events from the kevent list returned from the call to + :meth:`select.kqueue.control`. + + .. NOTE:: kqueue only tells us about deletions, file modifications, + attribute modifications. The other events, namely, + file creation, directory modification, file rename, + directory rename, directory creation, etc. are + determined by comparing directory snapshots. + """ + descriptor = self._descriptors.get_for_fd(kev.ident) + src_path = descriptor.path + + if is_renamed(kev): + # Kqueue does not specify the destination names for renames + # to, so we have to process these using the a snapshot + # of the directory. + yield from self._gen_renamed_events( + src_path, + ref_snapshot, + new_snapshot, + is_directory=descriptor.is_directory, + ) + elif is_attrib_modified(kev): + if descriptor.is_directory: + yield DirModifiedEvent(src_path) + else: + yield FileModifiedEvent(src_path) + elif is_modified(kev): + if descriptor.is_directory: + if self.watch.is_recursive or self.watch.path == src_path: + # When a directory is modified, it may be due to + # sub-file/directory renames or new file/directory + # creation. We determine all this by comparing + # snapshots later. + yield DirModifiedEvent(src_path) + else: + yield FileModifiedEvent(src_path) + elif is_deleted(kev): + if descriptor.is_directory: + yield DirDeletedEvent(src_path) + else: + yield FileDeletedEvent(src_path) + + def _parent_dir_modified(self, src_path: bytes | str) -> DirModifiedEvent: + """Helper to generate a DirModifiedEvent on the parent of src_path.""" + return DirModifiedEvent(os.path.dirname(src_path)) + + def _gen_renamed_events( + self, + src_path: bytes | str, + ref_snapshot: DirectorySnapshot, + new_snapshot: DirectorySnapshot, + *, + is_directory: bool, + ) -> Generator[FileSystemEvent]: + """Compares information from two directory snapshots (one taken before + the rename operation and another taken right after) to determine the + destination path of the file system object renamed, and yields + the appropriate events to be queued. + """ + try: + f_inode = ref_snapshot.inode(src_path) + except KeyError: + # Probably caught a temporary file/directory that was renamed + # and deleted. Fires a sequence of created and deleted events + # for the path. + if is_directory: + yield DirCreatedEvent(src_path) + yield DirDeletedEvent(src_path) + else: + yield FileCreatedEvent(src_path) + yield FileDeletedEvent(src_path) + # We don't process any further and bail out assuming + # the event represents deletion/creation instead of movement. + return + + dest_path = new_snapshot.path(f_inode) + if dest_path is not None: + dest_path = absolute_path(dest_path) + if is_directory: + yield DirMovedEvent(src_path, dest_path) + else: + yield FileMovedEvent(src_path, dest_path) + yield self._parent_dir_modified(src_path) + yield self._parent_dir_modified(dest_path) + if is_directory and self.watch.is_recursive: + # TODO: Do we need to fire moved events for the items + # inside the directory tree? Does kqueue does this + # all by itself? Check this and then enable this code + # only if it doesn't already. + # A: It doesn't. So I've enabled this block. + yield from generate_sub_moved_events(src_path, dest_path) + else: + # If the new snapshot does not have an inode for the + # old path, we haven't found the new name. Therefore, + # we mark it as deleted and remove unregister the path. + if is_directory: + yield DirDeletedEvent(src_path) + else: + yield FileDeletedEvent(src_path) + yield self._parent_dir_modified(src_path) + + def _read_events(self, timeout: float) -> list[select.kevent]: + """Reads events from a call to the blocking + :meth:`select.kqueue.control()` method. + + :param timeout: + Blocking timeout for reading events. + :type timeout: + ``float`` (seconds) + """ + return self._kq.control(self._descriptors.kevents, MAX_EVENTS, timeout) + + def queue_events(self, timeout: float) -> None: + """Queues events by reading them from a call to the blocking + :meth:`select.kqueue.control()` method. + + :param timeout: + Blocking timeout for reading events. + :type timeout: + ``float`` (seconds) + """ + with self._lock: + try: + event_list = self._read_events(timeout) + # TODO: investigate why order appears to be reversed + event_list.reverse() + + # Take a fresh snapshot of the directory and update the + # saved snapshot. + new_snapshot = DirectorySnapshot(self.watch.path, recursive=self.watch.is_recursive) + ref_snapshot = self._snapshot + self._snapshot = new_snapshot + diff_events = new_snapshot - ref_snapshot + + # Process events + for directory_created in diff_events.dirs_created: + self.queue_event(DirCreatedEvent(directory_created)) + for file_created in diff_events.files_created: + self.queue_event(FileCreatedEvent(file_created)) + for file_modified in diff_events.files_modified: + self.queue_event(FileModifiedEvent(file_modified)) + + for kev in event_list: + for event in self._gen_kqueue_events(kev, ref_snapshot, new_snapshot): + self.queue_event(event) + + except OSError as e: + if e.errno != errno.EBADF: + raise + + def on_thread_stop(self) -> None: + # Clean up. + with self._lock: + self._descriptors.clear() + self._kq.close() + + +class KqueueObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(KqueueEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/polling.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/polling.py new file mode 100644 index 0000000000000000000000000000000000000000..5c94e525902e41f52b6362a87172b848e0778f1c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/polling.py @@ -0,0 +1,142 @@ +""":module: watchdog.observers.polling +:synopsis: Polling emitter implementation. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: PollingObserver + :members: + :show-inheritance: + +.. autoclass:: PollingObserverVFS + :members: + :show-inheritance: + :special-members: +""" + +from __future__ import annotations + +import os +import threading +from functools import partial +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.utils.dirsnapshot import DirectorySnapshot, DirectorySnapshotDiff, EmptyDirectorySnapshot + +if TYPE_CHECKING: + from collections.abc import Iterator + from typing import Callable + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + + +class PollingEmitter(EventEmitter): + """Platform-independent emitter that polls a directory to detect file + system changes. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._snapshot: DirectorySnapshot = EmptyDirectorySnapshot() + self._lock = threading.Lock() + self._take_snapshot: Callable[[], DirectorySnapshot] = lambda: DirectorySnapshot( + self.watch.path, + recursive=self.watch.is_recursive, + stat=stat, + listdir=listdir, + ) + + def on_thread_start(self) -> None: + self._snapshot = self._take_snapshot() + + def queue_events(self, timeout: float) -> None: + # We don't want to hit the disk continuously. + # timeout behaves like an interval for polling emitters. + if self.stopped_event.wait(timeout): + return + + with self._lock: + if not self.should_keep_running(): + return + + # Get event diff between fresh snapshot and previous snapshot. + # Update snapshot. + try: + new_snapshot = self._take_snapshot() + except OSError: + self.queue_event(DirDeletedEvent(self.watch.path)) + self.stop() + return + + events = DirectorySnapshotDiff(self._snapshot, new_snapshot) + self._snapshot = new_snapshot + + # Files. + for src_path in events.files_deleted: + self.queue_event(FileDeletedEvent(src_path)) + for src_path in events.files_modified: + self.queue_event(FileModifiedEvent(src_path)) + for src_path in events.files_created: + self.queue_event(FileCreatedEvent(src_path)) + for src_path, dest_path in events.files_moved: + self.queue_event(FileMovedEvent(src_path, dest_path)) + + # Directories. + for src_path in events.dirs_deleted: + self.queue_event(DirDeletedEvent(src_path)) + for src_path in events.dirs_modified: + self.queue_event(DirModifiedEvent(src_path)) + for src_path in events.dirs_created: + self.queue_event(DirCreatedEvent(src_path)) + for src_path, dest_path in events.dirs_moved: + self.queue_event(DirMovedEvent(src_path, dest_path)) + + +class PollingObserver(BaseObserver): + """Platform-independent observer that polls a directory to detect file + system changes. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(PollingEmitter, timeout=timeout) + + +class PollingObserverVFS(BaseObserver): + """File system independent observer that polls a directory to detect changes.""" + + def __init__( + self, + stat: Callable[[str], os.stat_result], + listdir: Callable[[str | None], Iterator[os.DirEntry]], + *, + polling_interval: int = 1, + ) -> None: + """:param stat: stat function. See ``os.stat`` for details. + :param listdir: listdir function. See ``os.scandir`` for details. + :type polling_interval: int + :param polling_interval: interval in seconds between polling the file system. + """ + emitter_cls = partial(PollingEmitter, stat=stat, listdir=listdir) + super().__init__(emitter_cls, timeout=polling_interval) # type: ignore[arg-type] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/read_directory_changes.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/read_directory_changes.py new file mode 100644 index 0000000000000000000000000000000000000000..4faa9450b29c4626153cb48fd6fd120dbd9a4ccc --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/read_directory_changes.py @@ -0,0 +1,109 @@ +from __future__ import annotations + +import os.path +import platform +import threading +from typing import TYPE_CHECKING + +from watchdog.events import ( + DirCreatedEvent, + DirDeletedEvent, + DirModifiedEvent, + DirMovedEvent, + FileCreatedEvent, + FileDeletedEvent, + FileModifiedEvent, + FileMovedEvent, + generate_sub_created_events, + generate_sub_moved_events, +) +from watchdog.observers.api import DEFAULT_EMITTER_TIMEOUT, DEFAULT_OBSERVER_TIMEOUT, BaseObserver, EventEmitter +from watchdog.observers.winapi import close_directory_handle, get_directory_handle, read_events + +if TYPE_CHECKING: + from ctypes.wintypes import HANDLE + + from watchdog.events import FileSystemEvent + from watchdog.observers.api import EventQueue, ObservedWatch + from watchdog.observers.winapi import WinAPINativeEvent + + +class WindowsApiEmitter(EventEmitter): + """Windows API-based emitter that uses ReadDirectoryChangesW + to detect file system changes for a watch. + """ + + def __init__( + self, + event_queue: EventQueue, + watch: ObservedWatch, + *, + timeout: float = DEFAULT_EMITTER_TIMEOUT, + event_filter: list[type[FileSystemEvent]] | None = None, + ) -> None: + super().__init__(event_queue, watch, timeout=timeout, event_filter=event_filter) + self._lock = threading.Lock() + self._whandle: HANDLE | None = None + + def on_thread_start(self) -> None: + self._whandle = get_directory_handle(self.watch.path) + + if platform.python_implementation() == "PyPy": + + def start(self) -> None: + """PyPy needs some time before receiving events, see #792.""" + from time import sleep + + super().start() + sleep(0.01) + + def on_thread_stop(self) -> None: + if self._whandle: + close_directory_handle(self._whandle) + + def _read_events(self) -> list[WinAPINativeEvent]: + if not self._whandle: + return [] + return read_events(self._whandle, self.watch.path, recursive=self.watch.is_recursive) + + def queue_events(self, timeout: float) -> None: + winapi_events = self._read_events() + with self._lock: + last_renamed_src_path = "" + for winapi_event in winapi_events: + src_path = os.path.join(self.watch.path, winapi_event.src_path) + + if winapi_event.is_renamed_old: + last_renamed_src_path = src_path + elif winapi_event.is_renamed_new: + dest_path = src_path + src_path = last_renamed_src_path + if os.path.isdir(dest_path): + self.queue_event(DirMovedEvent(src_path, dest_path)) + if self.watch.is_recursive: + for sub_moved_event in generate_sub_moved_events(src_path, dest_path): + self.queue_event(sub_moved_event) + else: + self.queue_event(FileMovedEvent(src_path, dest_path)) + elif winapi_event.is_modified: + self.queue_event((DirModifiedEvent if os.path.isdir(src_path) else FileModifiedEvent)(src_path)) + elif winapi_event.is_added: + isdir = os.path.isdir(src_path) + self.queue_event((DirCreatedEvent if isdir else FileCreatedEvent)(src_path)) + if isdir and self.watch.is_recursive: + for sub_created_event in generate_sub_created_events(src_path): + self.queue_event(sub_created_event) + elif winapi_event.is_removed: + self.queue_event(FileDeletedEvent(src_path)) + elif winapi_event.is_removed_self: + self.queue_event(DirDeletedEvent(self.watch.path)) + self.stop() + + +class WindowsApiObserver(BaseObserver): + """Observer thread that schedules watching directories and dispatches + calls to event handlers. + """ + + def __init__(self, *, timeout: float = DEFAULT_OBSERVER_TIMEOUT) -> None: + super().__init__(WindowsApiEmitter, timeout=timeout) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/winapi.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/winapi.py new file mode 100644 index 0000000000000000000000000000000000000000..1247e1f874ee9c6e3784977d9f8c47f63e3e6b4a --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/observers/winapi.py @@ -0,0 +1,382 @@ +""":module: watchdog.observers.winapi +:synopsis: Windows API-Python interface (removes dependency on ``pywin32``). +:author: theller@ctypes.org (Thomas Heller) +:author: will@willmcgugan.com (Will McGugan) +:author: ryan@rfk.id.au (Ryan Kelly) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:platforms: windows +""" + +from __future__ import annotations + +import contextlib +import ctypes +from ctypes.wintypes import BOOL, DWORD, HANDLE, LPCWSTR, LPVOID, LPWSTR +from dataclasses import dataclass +from functools import reduce +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any + +# Invalid handle value. +INVALID_HANDLE_VALUE = ctypes.c_void_p(-1).value + +# File notification constants. +FILE_NOTIFY_CHANGE_FILE_NAME = 0x01 +FILE_NOTIFY_CHANGE_DIR_NAME = 0x02 +FILE_NOTIFY_CHANGE_ATTRIBUTES = 0x04 +FILE_NOTIFY_CHANGE_SIZE = 0x08 +FILE_NOTIFY_CHANGE_LAST_WRITE = 0x010 +FILE_NOTIFY_CHANGE_LAST_ACCESS = 0x020 +FILE_NOTIFY_CHANGE_CREATION = 0x040 +FILE_NOTIFY_CHANGE_SECURITY = 0x0100 + +FILE_FLAG_BACKUP_SEMANTICS = 0x02000000 +FILE_FLAG_OVERLAPPED = 0x40000000 +FILE_LIST_DIRECTORY = 1 +FILE_SHARE_READ = 0x01 +FILE_SHARE_WRITE = 0x02 +FILE_SHARE_DELETE = 0x04 +OPEN_EXISTING = 3 + +VOLUME_NAME_NT = 0x02 + +# File action constants. +FILE_ACTION_CREATED = 1 +FILE_ACTION_DELETED = 2 +FILE_ACTION_MODIFIED = 3 +FILE_ACTION_RENAMED_OLD_NAME = 4 +FILE_ACTION_RENAMED_NEW_NAME = 5 +FILE_ACTION_DELETED_SELF = 0xFFFE +FILE_ACTION_OVERFLOW = 0xFFFF + +# Aliases +FILE_ACTION_ADDED = FILE_ACTION_CREATED +FILE_ACTION_REMOVED = FILE_ACTION_DELETED +FILE_ACTION_REMOVED_SELF = FILE_ACTION_DELETED_SELF + +THREAD_TERMINATE = 0x0001 + +# IO waiting constants. +WAIT_ABANDONED = 0x00000080 +WAIT_IO_COMPLETION = 0x000000C0 +WAIT_OBJECT_0 = 0x00000000 +WAIT_TIMEOUT = 0x00000102 + +# Error codes +ERROR_OPERATION_ABORTED = 995 + + +class OVERLAPPED(ctypes.Structure): + _fields_ = ( + ("Internal", LPVOID), + ("InternalHigh", LPVOID), + ("Offset", DWORD), + ("OffsetHigh", DWORD), + ("Pointer", LPVOID), + ("hEvent", HANDLE), + ) + + +def _errcheck_bool(value: Any | None, func: Any, args: Any) -> Any: + if not value: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +def _errcheck_handle(value: Any | None, func: Any, args: Any) -> Any: + if not value: + raise ctypes.WinError() # type: ignore[attr-defined] + if value == INVALID_HANDLE_VALUE: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +def _errcheck_dword(value: Any | None, func: Any, args: Any) -> Any: + if value == 0xFFFFFFFF: + raise ctypes.WinError() # type: ignore[attr-defined] + return args + + +kernel32 = ctypes.WinDLL("kernel32") # type: ignore[attr-defined] + +ReadDirectoryChangesW = kernel32.ReadDirectoryChangesW +ReadDirectoryChangesW.restype = BOOL +ReadDirectoryChangesW.errcheck = _errcheck_bool +ReadDirectoryChangesW.argtypes = ( + HANDLE, # hDirectory + LPVOID, # lpBuffer + DWORD, # nBufferLength + BOOL, # bWatchSubtree + DWORD, # dwNotifyFilter + ctypes.POINTER(DWORD), # lpBytesReturned + ctypes.POINTER(OVERLAPPED), # lpOverlapped + LPVOID, # FileIOCompletionRoutine # lpCompletionRoutine +) + +CreateFileW = kernel32.CreateFileW +CreateFileW.restype = HANDLE +CreateFileW.errcheck = _errcheck_handle +CreateFileW.argtypes = ( + LPCWSTR, # lpFileName + DWORD, # dwDesiredAccess + DWORD, # dwShareMode + LPVOID, # lpSecurityAttributes + DWORD, # dwCreationDisposition + DWORD, # dwFlagsAndAttributes + HANDLE, # hTemplateFile +) + +CloseHandle = kernel32.CloseHandle +CloseHandle.restype = BOOL +CloseHandle.argtypes = (HANDLE,) # hObject + +CancelIoEx = kernel32.CancelIoEx +CancelIoEx.restype = BOOL +CancelIoEx.errcheck = _errcheck_bool +CancelIoEx.argtypes = ( + HANDLE, # hObject + ctypes.POINTER(OVERLAPPED), # lpOverlapped +) + +CreateEvent = kernel32.CreateEventW +CreateEvent.restype = HANDLE +CreateEvent.errcheck = _errcheck_handle +CreateEvent.argtypes = ( + LPVOID, # lpEventAttributes + BOOL, # bManualReset + BOOL, # bInitialState + LPCWSTR, # lpName +) + +SetEvent = kernel32.SetEvent +SetEvent.restype = BOOL +SetEvent.errcheck = _errcheck_bool +SetEvent.argtypes = (HANDLE,) # hEvent + +WaitForSingleObjectEx = kernel32.WaitForSingleObjectEx +WaitForSingleObjectEx.restype = DWORD +WaitForSingleObjectEx.errcheck = _errcheck_dword +WaitForSingleObjectEx.argtypes = ( + HANDLE, # hObject + DWORD, # dwMilliseconds + BOOL, # bAlertable +) + +CreateIoCompletionPort = kernel32.CreateIoCompletionPort +CreateIoCompletionPort.restype = HANDLE +CreateIoCompletionPort.errcheck = _errcheck_handle +CreateIoCompletionPort.argtypes = ( + HANDLE, # FileHandle + HANDLE, # ExistingCompletionPort + LPVOID, # CompletionKey + DWORD, # NumberOfConcurrentThreads +) + +GetQueuedCompletionStatus = kernel32.GetQueuedCompletionStatus +GetQueuedCompletionStatus.restype = BOOL +GetQueuedCompletionStatus.errcheck = _errcheck_bool +GetQueuedCompletionStatus.argtypes = ( + HANDLE, # CompletionPort + LPVOID, # lpNumberOfBytesTransferred + LPVOID, # lpCompletionKey + ctypes.POINTER(OVERLAPPED), # lpOverlapped + DWORD, # dwMilliseconds +) + +PostQueuedCompletionStatus = kernel32.PostQueuedCompletionStatus +PostQueuedCompletionStatus.restype = BOOL +PostQueuedCompletionStatus.errcheck = _errcheck_bool +PostQueuedCompletionStatus.argtypes = ( + HANDLE, # CompletionPort + DWORD, # lpNumberOfBytesTransferred + DWORD, # lpCompletionKey + ctypes.POINTER(OVERLAPPED), # lpOverlapped +) + + +GetFinalPathNameByHandleW = kernel32.GetFinalPathNameByHandleW +GetFinalPathNameByHandleW.restype = DWORD +GetFinalPathNameByHandleW.errcheck = _errcheck_dword +GetFinalPathNameByHandleW.argtypes = ( + HANDLE, # hFile + LPWSTR, # lpszFilePath + DWORD, # cchFilePath + DWORD, # DWORD +) + + +class FileNotifyInformation(ctypes.Structure): + _fields_ = ( + ("NextEntryOffset", DWORD), + ("Action", DWORD), + ("FileNameLength", DWORD), + ("FileName", (ctypes.c_char * 1)), + ) + + +LPFNI = ctypes.POINTER(FileNotifyInformation) + + +# We don't need to recalculate these flags every time a call is made to +# the win32 API functions. +WATCHDOG_FILE_FLAGS = FILE_FLAG_BACKUP_SEMANTICS +WATCHDOG_FILE_SHARE_FLAGS = reduce( + lambda x, y: x | y, + [ + FILE_SHARE_READ, + FILE_SHARE_WRITE, + FILE_SHARE_DELETE, + ], +) +WATCHDOG_FILE_NOTIFY_FLAGS = reduce( + lambda x, y: x | y, + [ + FILE_NOTIFY_CHANGE_FILE_NAME, + FILE_NOTIFY_CHANGE_DIR_NAME, + FILE_NOTIFY_CHANGE_ATTRIBUTES, + FILE_NOTIFY_CHANGE_SIZE, + FILE_NOTIFY_CHANGE_LAST_WRITE, + FILE_NOTIFY_CHANGE_SECURITY, + FILE_NOTIFY_CHANGE_LAST_ACCESS, + FILE_NOTIFY_CHANGE_CREATION, + ], +) + +# ReadDirectoryChangesW buffer length. +# To handle cases with lot of changes, this seems the highest safest value we can use. +# Note: it will fail with ERROR_INVALID_PARAMETER when it is greater than 64 KB and +# the application is monitoring a directory over the network. +# This is due to a packet size limitation with the underlying file sharing protocols. +# https://docs.microsoft.com/en-us/windows/win32/api/winbase/nf-winbase-readdirectorychangesw#remarks +BUFFER_SIZE = 64000 + +# Buffer length for path-related stuff. +# Introduced to keep the old behavior when we bumped BUFFER_SIZE from 2048 to 64000 in v1.0.0. +PATH_BUFFER_SIZE = 2048 + + +def _parse_event_buffer(read_buffer: bytes, n_bytes: int) -> list[tuple[int, str]]: + results = [] + while n_bytes > 0: + fni = ctypes.cast(read_buffer, LPFNI)[0] # type: ignore[arg-type] + ptr = ctypes.addressof(fni) + FileNotifyInformation.FileName.offset + filename = ctypes.string_at(ptr, fni.FileNameLength) + results.append((fni.Action, filename.decode("utf-16"))) + num_to_skip = fni.NextEntryOffset + if num_to_skip <= 0: + break + read_buffer = read_buffer[num_to_skip:] + n_bytes -= num_to_skip # num_to_skip is long. n_bytes should be long too. + return results + + +def _is_observed_path_deleted(handle: HANDLE, path: str) -> bool: + # Comparison of observed path and actual path, returned by + # GetFinalPathNameByHandleW. If directory moved to the trash bin, or + # deleted, actual path will not be equal to observed path. + buff = ctypes.create_unicode_buffer(PATH_BUFFER_SIZE) + GetFinalPathNameByHandleW(handle, buff, PATH_BUFFER_SIZE, VOLUME_NAME_NT) + return buff.value != path + + +def _generate_observed_path_deleted_event() -> tuple[bytes, int]: + # Create synthetic event for notify that observed directory is deleted + path = ctypes.create_unicode_buffer(".") + event = FileNotifyInformation(0, FILE_ACTION_DELETED_SELF, len(path), path.value.encode("utf-8")) + event_size = ctypes.sizeof(event) + buff = ctypes.create_string_buffer(PATH_BUFFER_SIZE) + ctypes.memmove(buff, ctypes.addressof(event), event_size) + return buff.raw, event_size + + +def get_directory_handle(path: str) -> HANDLE: + """Returns a Windows handle to the specified directory path.""" + return CreateFileW( + path, + FILE_LIST_DIRECTORY, + WATCHDOG_FILE_SHARE_FLAGS, + None, + OPEN_EXISTING, + WATCHDOG_FILE_FLAGS, + None, + ) + + +def close_directory_handle(handle: HANDLE) -> None: + try: + CancelIoEx(handle, None) # force ReadDirectoryChangesW to return + CloseHandle(handle) + except OSError: + with contextlib.suppress(Exception): + CloseHandle(handle) + + +def read_directory_changes(handle: HANDLE, path: str, *, recursive: bool) -> tuple[bytes, int]: + """Read changes to the directory using the specified directory handle. + + https://timgolden.me.uk/pywin32-docs/win32file__ReadDirectoryChangesW_meth.html + """ + event_buffer = ctypes.create_string_buffer(BUFFER_SIZE) + nbytes = DWORD() + try: + ReadDirectoryChangesW( + handle, + ctypes.byref(event_buffer), + len(event_buffer), + recursive, + WATCHDOG_FILE_NOTIFY_FLAGS, + ctypes.byref(nbytes), + None, + None, + ) + except OSError as e: + if e.winerror == ERROR_OPERATION_ABORTED: # type: ignore[attr-defined] + return event_buffer.raw, 0 + + # Handle the case when the root path is deleted + if _is_observed_path_deleted(handle, path): + return _generate_observed_path_deleted_event() + + raise + + return event_buffer.raw, int(nbytes.value) + + +@dataclass(unsafe_hash=True) +class WinAPINativeEvent: + action: int + src_path: str + + @property + def is_added(self) -> bool: + return self.action == FILE_ACTION_CREATED + + @property + def is_removed(self) -> bool: + return self.action == FILE_ACTION_REMOVED + + @property + def is_modified(self) -> bool: + return self.action == FILE_ACTION_MODIFIED + + @property + def is_renamed_old(self) -> bool: + return self.action == FILE_ACTION_RENAMED_OLD_NAME + + @property + def is_renamed_new(self) -> bool: + return self.action == FILE_ACTION_RENAMED_NEW_NAME + + @property + def is_removed_self(self) -> bool: + return self.action == FILE_ACTION_REMOVED_SELF + + +def read_events(handle: HANDLE, path: str, *, recursive: bool) -> list[WinAPINativeEvent]: + buf, nbytes = read_directory_changes(handle, path, recursive=recursive) + events = _parse_event_buffer(buf, nbytes) + return [WinAPINativeEvent(action, src_path) for action, src_path in events] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/py.typed b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/py.typed new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..b993b6d2c17dccf08d2e3e6a8c60bd7b8bf6e324 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__init__.py @@ -0,0 +1,293 @@ +""":module: watchdog.tricks +:synopsis: Utility event handlers. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: Trick + :members: + :show-inheritance: + +.. autoclass:: LoggerTrick + :members: + :show-inheritance: + +.. autoclass:: ShellCommandTrick + :members: + :show-inheritance: + +.. autoclass:: AutoRestartTrick + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import contextlib +import functools +import logging +import os +import signal +import subprocess +import threading +import time + +from watchdog.events import EVENT_TYPE_CLOSED_NO_WRITE, EVENT_TYPE_OPENED, FileSystemEvent, PatternMatchingEventHandler +from watchdog.utils import echo, platform +from watchdog.utils.event_debouncer import EventDebouncer +from watchdog.utils.process_watcher import ProcessWatcher + +logger = logging.getLogger(__name__) +echo_events = functools.partial(echo.echo, write=lambda msg: logger.info(msg)) + + +class Trick(PatternMatchingEventHandler): + """Your tricks should subclass this class.""" + + def __repr__(self) -> str: + return f"<{type(self).__name__}>" + + @classmethod + def generate_yaml(cls) -> str: + return f"""- {cls.__module__}.{cls.__name__}: + args: + - argument1 + - argument2 + kwargs: + patterns: + - "*.py" + - "*.js" + ignore_patterns: + - "version.py" + ignore_directories: false +""" + + +class LoggerTrick(Trick): + """A simple trick that does only logs events.""" + + @echo_events + def on_any_event(self, event: FileSystemEvent) -> None: + pass + + +class ShellCommandTrick(Trick): + """Executes shell commands in response to matched events.""" + + def __init__( + self, + shell_command: str, + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + wait_for_process: bool = False, + drop_during_process: bool = False, + ): + super().__init__( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=ignore_directories, + ) + self.shell_command = shell_command + self.wait_for_process = wait_for_process + self.drop_during_process = drop_during_process + + self.process: subprocess.Popen[bytes] | None = None + self._process_watchers: set[ProcessWatcher] = set() + + def on_any_event(self, event: FileSystemEvent) -> None: + if event.event_type in {EVENT_TYPE_OPENED, EVENT_TYPE_CLOSED_NO_WRITE}: + # FIXME: see issue #949, and find a way to better handle that scenario + return + + from string import Template + + if self.drop_during_process and self.is_process_running(): + return + + object_type = "directory" if event.is_directory else "file" + context = { + "watch_src_path": event.src_path, + "watch_dest_path": "", + "watch_event_type": event.event_type, + "watch_object": object_type, + } + + if self.shell_command is None: + if hasattr(event, "dest_path"): + context["dest_path"] = event.dest_path + command = 'echo "${watch_event_type} ${watch_object} from ${watch_src_path} to ${watch_dest_path}"' + else: + command = 'echo "${watch_event_type} ${watch_object} ${watch_src_path}"' + else: + if hasattr(event, "dest_path"): + context["watch_dest_path"] = event.dest_path + command = self.shell_command + + command = Template(command).safe_substitute(**context) + self.process = subprocess.Popen(command, shell=True) + if self.wait_for_process: + self.process.wait() + else: + process_watcher = ProcessWatcher(self.process, None) + self._process_watchers.add(process_watcher) + process_watcher.process_termination_callback = functools.partial( + self._process_watchers.discard, + process_watcher, + ) + process_watcher.start() + + def is_process_running(self) -> bool: + return bool(self._process_watchers or (self.process is not None and self.process.poll() is None)) + + +class AutoRestartTrick(Trick): + """Starts a long-running subprocess and restarts it on matched events. + + The command parameter is a list of command arguments, such as + `['bin/myserver', '-c', 'etc/myconfig.ini']`. + + Call `start()` after creating the Trick. Call `stop()` when stopping + the process. + """ + + def __init__( + self, + command: list[str], + *, + patterns: list[str] | None = None, + ignore_patterns: list[str] | None = None, + ignore_directories: bool = False, + stop_signal: signal.Signals | int = signal.SIGINT, + kill_after: int = 10, + debounce_interval_seconds: int = 0, + restart_on_command_exit: bool = True, + ): + if kill_after < 0: + error = "kill_after must be non-negative." + raise ValueError(error) + if debounce_interval_seconds < 0: + error = "debounce_interval_seconds must be non-negative." + raise ValueError(error) + + super().__init__( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=ignore_directories, + ) + + self.command = command + self.stop_signal = stop_signal.value if isinstance(stop_signal, signal.Signals) else stop_signal + self.kill_after = kill_after + self.debounce_interval_seconds = debounce_interval_seconds + self.restart_on_command_exit = restart_on_command_exit + + self.process: subprocess.Popen[bytes] | None = None + self.process_watcher: ProcessWatcher | None = None + self.event_debouncer: EventDebouncer | None = None + self.restart_count = 0 + + self._is_process_stopping = False + self._is_trick_stopping = False + self._stopping_lock = threading.RLock() + + def start(self) -> None: + if self.debounce_interval_seconds: + self.event_debouncer = EventDebouncer( + debounce_interval_seconds=self.debounce_interval_seconds, + events_callback=lambda events: self._restart_process(), + ) + self.event_debouncer.start() + self._start_process() + + def stop(self) -> None: + # Ensure the body of the function is only run once. + with self._stopping_lock: + if self._is_trick_stopping: + return + self._is_trick_stopping = True + + process_watcher = self.process_watcher + if self.event_debouncer is not None: + self.event_debouncer.stop() + self._stop_process() + + # Don't leak threads: Wait for background threads to stop. + if self.event_debouncer is not None: + self.event_debouncer.join() + if process_watcher is not None: + process_watcher.join() + + def _start_process(self) -> None: + if self._is_trick_stopping: + return + + # windows doesn't have setsid + self.process = subprocess.Popen(self.command, preexec_fn=getattr(os, "setsid", None)) + if self.restart_on_command_exit: + self.process_watcher = ProcessWatcher(self.process, self._restart_process) + self.process_watcher.start() + + def _stop_process(self) -> None: + # Ensure the body of the function is not run in parallel in different threads. + with self._stopping_lock: + if self._is_process_stopping: + return + self._is_process_stopping = True + + try: + if self.process_watcher is not None: + self.process_watcher.stop() + self.process_watcher = None + + if self.process is not None: + try: + kill_process(self.process.pid, self.stop_signal) + except OSError: + # Process is already gone + pass + else: + kill_time = time.time() + self.kill_after + while time.time() < kill_time: + if self.process.poll() is not None: + break + time.sleep(0.25) + else: + # Process is already gone + with contextlib.suppress(OSError): + kill_process(self.process.pid, 9) + self.process = None + finally: + self._is_process_stopping = False + + @echo_events + def on_any_event(self, event: FileSystemEvent) -> None: + if event.event_type in {EVENT_TYPE_OPENED, EVENT_TYPE_CLOSED_NO_WRITE}: + # FIXME: see issue #949, and find a way to better handle that scenario + return + + if self.event_debouncer is not None: + self.event_debouncer.handle_event(event) + else: + self._restart_process() + + def _restart_process(self) -> None: + if self._is_trick_stopping: + return + self._stop_process() + self._start_process() + self.restart_count += 1 + + +if platform.is_windows(): + + def kill_process(pid: int, stop_signal: int) -> None: + os.kill(pid, stop_signal) + +else: + + def kill_process(pid: int, stop_signal: int) -> None: + os.killpg(os.getpgid(pid), stop_signal) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8f1775e2f3ea89d003e8e30f73157fdbcaa652ee Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__init__.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..637d98885c5267896033ba4aed1d5d45f774c92b --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__init__.py @@ -0,0 +1,122 @@ +""":module: watchdog.utils +:synopsis: Utility classes and functions. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +------- +.. autoclass:: BaseThread + :members: + :show-inheritance: + :inherited-members: + +""" + +from __future__ import annotations + +import sys +import threading +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from types import ModuleType + + from watchdog.tricks import Trick + + +class UnsupportedLibcError(Exception): + pass + + +class WatchdogShutdownError(Exception): + """Semantic exception used to signal an external shutdown event.""" + + +class BaseThread(threading.Thread): + """Convenience class for creating stoppable threads.""" + + def __init__(self) -> None: + threading.Thread.__init__(self) + if hasattr(self, "daemon"): + self.daemon = True + else: + self.setDaemon(True) + self._stopped_event = threading.Event() + + @property + def stopped_event(self) -> threading.Event: + return self._stopped_event + + def should_keep_running(self) -> bool: + """Determines whether the thread should continue running.""" + return not self._stopped_event.is_set() + + def on_thread_stop(self) -> None: + """Override this method instead of :meth:`stop()`. + :meth:`stop()` calls this method. + + This method is called immediately after the thread is signaled to stop. + """ + + def stop(self) -> None: + """Signals the thread to stop.""" + self._stopped_event.set() + self.on_thread_stop() + + def on_thread_start(self) -> None: + """Override this method instead of :meth:`start()`. :meth:`start()` + calls this method. + + This method is called right before this thread is started and this + object's run() method is invoked. + """ + + def start(self) -> None: + self.on_thread_start() + threading.Thread.start(self) + + +def load_module(module_name: str) -> ModuleType: + """Imports a module given its name and returns a handle to it.""" + try: + __import__(module_name) + except ImportError as e: + error = f"No module named {module_name}" + raise ImportError(error) from e + return sys.modules[module_name] + + +def load_class(dotted_path: str) -> type[Trick]: + """Loads and returns a class definition provided a dotted path + specification the last part of the dotted path is the class name + and there is at least one module name preceding the class name. + + Notes + ----- + You will need to ensure that the module you are trying to load + exists in the Python path. + + Examples + -------- + - module.name.ClassName # Provided module.name is in the Python path. + - module.ClassName # Provided module is in the Python path. + + What won't work: + - ClassName + - modle.name.ClassName # Typo in module name. + - module.name.ClasNam # Typo in classname. + + """ + dotted_path_split = dotted_path.split(".") + if len(dotted_path_split) <= 1: + error = f"Dotted module path {dotted_path} must contain a module name and a classname" + raise ValueError(error) + klass_name = dotted_path_split[-1] + module_name = ".".join(dotted_path_split[:-1]) + + module = load_module(module_name) + if hasattr(module, klass_name): + return getattr(module, klass_name) + + error = f"Module {module_name} does not have class attribute {klass_name}" + raise AttributeError(error) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..afcd483c07d4c1e1d652a497879fe5fed0f48eef Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8ac81c905a7ae76d7b11c788843b7b7b329845fc Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..041a96856f53fda07e6ef8dafd80a1b9c419cf73 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..6be912e453f987fdfe7521d255f0f1306d55639e Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..2a3f9b7c3b1c84c3ca798b6d0b6ae019d7025fec Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..f2f495ad87ad94a80db777344b0025a2dcfbbc52 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d0e3291e2ac0039bef591bd4ca363d1077360133 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..d28ec0dfbf2c27a200f70471995c1749c8fbdaf5 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bc5d1619cb5df0a5562cc1706b98f53ee6c43216 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/bricks.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/bricks.py new file mode 100644 index 0000000000000000000000000000000000000000..6aca8e425fe83c688bc2e9020ebf3a594598d09c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/bricks.py @@ -0,0 +1,90 @@ +"""Utility collections or "bricks". + +:module: watchdog.utils.bricks +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: lalinsky@gmail.com (Lukáš Lalinský) +:author: python@rcn.com (Raymond Hettinger) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +Classes +======= +.. autoclass:: OrderedSetQueue + :members: + :show-inheritance: + :inherited-members: + +.. autoclass:: OrderedSet + +""" + +from __future__ import annotations + +import queue +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any + + +class SkipRepeatsQueue(queue.Queue): + """Thread-safe implementation of an special queue where a + put of the last-item put'd will be dropped. + + The implementation leverages locking already implemented in the base class + redefining only the primitives. + + Queued items must be immutable and hashable so that they can be used + as dictionary keys. You must implement **only read-only properties** and + the :meth:`Item.__hash__()`, :meth:`Item.__eq__()`, and + :meth:`Item.__ne__()` methods for items to be hashable. + + An example implementation follows:: + + class Item: + def __init__(self, a, b): + self._a = a + self._b = b + + @property + def a(self): + return self._a + + @property + def b(self): + return self._b + + def _key(self): + return (self._a, self._b) + + def __eq__(self, item): + return self._key() == item._key() + + def __ne__(self, item): + return self._key() != item._key() + + def __hash__(self): + return hash(self._key()) + + based on the OrderedSetQueue below + """ + + def _init(self, maxsize: int) -> None: + super()._init(maxsize) + self._last_item = None + + def put(self, item: Any, block: bool = True, timeout: float | None = None) -> None: # noqa: FBT001,FBT002 + """This method will be used by `eventlet`, when enabled, so we cannot use force proper keyword-only + arguments nor touch the signature. Also, the `timeout` argument will be ignored in that case. + """ + if self._last_item is None or item != self._last_item: + super().put(item, block, timeout) + + def _put(self, item: Any) -> None: + super()._put(item) + self._last_item = item + + def _get(self) -> Any: + item = super()._get() + if item is self._last_item: + self._last_item = None + return item diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/delayed_queue.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/delayed_queue.py new file mode 100644 index 0000000000000000000000000000000000000000..e85fa6348536c08a2a4ba59fab4ddee09e501071 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/delayed_queue.py @@ -0,0 +1,77 @@ +""":module: watchdog.utils.delayed_queue +:author: thomas.amland@gmail.com (Thomas Amland) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" + +from __future__ import annotations + +import threading +import time +from collections import deque +from typing import Callable, Generic, TypeVar + +T = TypeVar("T") + + +class DelayedQueue(Generic[T]): + def __init__(self, delay: float) -> None: + self.delay_sec = delay + self._lock = threading.Lock() + self._not_empty = threading.Condition(self._lock) + self._queue: deque[tuple[T, float, bool]] = deque() + self._closed = False + + def put(self, element: T, *, delay: bool = False) -> None: + """Add element to queue.""" + self._lock.acquire() + self._queue.append((element, time.time(), delay)) + self._not_empty.notify() + self._lock.release() + + def close(self) -> None: + """Close queue, indicating no more items will be added.""" + self._closed = True + # Interrupt the blocking _not_empty.wait() call in get + self._not_empty.acquire() + self._not_empty.notify() + self._not_empty.release() + + def get(self) -> T | None: + """Remove and return an element from the queue, or this queue has been + closed raise the Closed exception. + """ + while True: + # wait for element to be added to queue + self._not_empty.acquire() + while len(self._queue) == 0 and not self._closed: + self._not_empty.wait() + + if self._closed: + self._not_empty.release() + return None + head, insert_time, delay = self._queue[0] + self._not_empty.release() + + # wait for delay if required + if delay: + time_left = insert_time + self.delay_sec - time.time() + while time_left > 0: + time.sleep(time_left) + time_left = insert_time + self.delay_sec - time.time() + + # return element if it's still in the queue + with self._lock: + if len(self._queue) > 0 and self._queue[0][0] is head: + self._queue.popleft() + return head + + def remove(self, predicate: Callable[[T], bool]) -> T | None: + """Remove and return the first items for which predicate is True, + ignoring delay. + """ + with self._lock: + for i, (elem, *_) in enumerate(self._queue): + if predicate(elem): + del self._queue[i] + return elem + return None diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/dirsnapshot.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/dirsnapshot.py new file mode 100644 index 0000000000000000000000000000000000000000..ff69b0b35e677a8873d2e8d28f2857100f8f4c36 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/dirsnapshot.py @@ -0,0 +1,424 @@ +""":module: watchdog.utils.dirsnapshot +:synopsis: Directory snapshots and comparison. +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) + +.. ADMONITION:: Where are the moved events? They "disappeared" + + This implementation does not take partition boundaries + into consideration. It will only work when the directory + tree is entirely on the same file system. More specifically, + any part of the code that depends on inode numbers can + break if partition boundaries are crossed. In these cases, + the snapshot diff will represent file/directory movement as + created and deleted events. + +Classes +------- +.. autoclass:: DirectorySnapshot + :members: + :show-inheritance: + +.. autoclass:: DirectorySnapshotDiff + :members: + :show-inheritance: + +.. autoclass:: EmptyDirectorySnapshot + :members: + :show-inheritance: + +""" + +from __future__ import annotations + +import contextlib +import errno +import os +from stat import S_ISDIR +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from collections.abc import Iterator + from typing import Any, Callable + + +class DirectorySnapshotDiff: + """Compares two directory snapshots and creates an object that represents + the difference between the two snapshots. + + :param ref: + The reference directory snapshot. + :type ref: + :class:`DirectorySnapshot` + :param snapshot: + The directory snapshot which will be compared + with the reference snapshot. + :type snapshot: + :class:`DirectorySnapshot` + :param ignore_device: + A boolean indicating whether to ignore the device id or not. + By default, a file may be uniquely identified by a combination of its first + inode and its device id. The problem is that the device id may (or may not) + change between system boots. This problem would cause the DirectorySnapshotDiff + to think a file has been deleted and created again but it would be the + exact same file. + Set to True only if you are sure you will always use the same device. + :type ignore_device: + :class:`bool` + """ + + def __init__( + self, + ref: DirectorySnapshot, + snapshot: DirectorySnapshot, + *, + ignore_device: bool = False, + ) -> None: + created = snapshot.paths - ref.paths + deleted = ref.paths - snapshot.paths + + if ignore_device: + + def get_inode(directory: DirectorySnapshot, full_path: bytes | str) -> int | tuple[int, int]: + return directory.inode(full_path)[0] + + else: + + def get_inode(directory: DirectorySnapshot, full_path: bytes | str) -> int | tuple[int, int]: + return directory.inode(full_path) + + # check that all unchanged paths have the same inode + for path in ref.paths & snapshot.paths: + if get_inode(ref, path) != get_inode(snapshot, path): + created.add(path) + deleted.add(path) + + # find moved paths + moved: set[tuple[bytes | str, bytes | str]] = set() + for path in set(deleted): + inode = ref.inode(path) + new_path = snapshot.path(inode) + if new_path: + # file is not deleted but moved + deleted.remove(path) + moved.add((path, new_path)) + + for path in set(created): + inode = snapshot.inode(path) + old_path = ref.path(inode) + if old_path: + created.remove(path) + moved.add((old_path, path)) + + # find modified paths + # first check paths that have not moved + modified: set[bytes | str] = set() + for path in ref.paths & snapshot.paths: + if get_inode(ref, path) == get_inode(snapshot, path) and ( + ref.mtime(path) != snapshot.mtime(path) or ref.size(path) != snapshot.size(path) + ): + modified.add(path) + + for old_path, new_path in moved: + if ref.mtime(old_path) != snapshot.mtime(new_path) or ref.size(old_path) != snapshot.size(new_path): + modified.add(old_path) + + self._dirs_created = [path for path in created if snapshot.isdir(path)] + self._dirs_deleted = [path for path in deleted if ref.isdir(path)] + self._dirs_modified = [path for path in modified if ref.isdir(path)] + self._dirs_moved = [(frm, to) for (frm, to) in moved if ref.isdir(frm)] + + self._files_created = list(created - set(self._dirs_created)) + self._files_deleted = list(deleted - set(self._dirs_deleted)) + self._files_modified = list(modified - set(self._dirs_modified)) + self._files_moved = list(moved - set(self._dirs_moved)) + + def __str__(self) -> str: + return self.__repr__() + + def __repr__(self) -> str: + fmt = ( + "<{0} files(created={1}, deleted={2}, modified={3}, moved={4})," + " folders(created={5}, deleted={6}, modified={7}, moved={8})>" + ) + return fmt.format( + type(self).__name__, + len(self._files_created), + len(self._files_deleted), + len(self._files_modified), + len(self._files_moved), + len(self._dirs_created), + len(self._dirs_deleted), + len(self._dirs_modified), + len(self._dirs_moved), + ) + + @property + def files_created(self) -> list[bytes | str]: + """List of files that were created.""" + return self._files_created + + @property + def files_deleted(self) -> list[bytes | str]: + """List of files that were deleted.""" + return self._files_deleted + + @property + def files_modified(self) -> list[bytes | str]: + """List of files that were modified.""" + return self._files_modified + + @property + def files_moved(self) -> list[tuple[bytes | str, bytes | str]]: + """List of files that were moved. + + Each event is a two-tuple the first item of which is the path + that has been renamed to the second item in the tuple. + """ + return self._files_moved + + @property + def dirs_modified(self) -> list[bytes | str]: + """List of directories that were modified.""" + return self._dirs_modified + + @property + def dirs_moved(self) -> list[tuple[bytes | str, bytes | str]]: + """List of directories that were moved. + + Each event is a two-tuple the first item of which is the path + that has been renamed to the second item in the tuple. + """ + return self._dirs_moved + + @property + def dirs_deleted(self) -> list[bytes | str]: + """List of directories that were deleted.""" + return self._dirs_deleted + + @property + def dirs_created(self) -> list[bytes | str]: + """List of directories that were created.""" + return self._dirs_created + + class ContextManager: + """Context manager that creates two directory snapshots and a + diff object that represents the difference between the two snapshots. + + :param path: + The directory path for which a snapshot should be taken. + :type path: + ``str`` + :param recursive: + ``True`` if the entire directory tree should be included in the + snapshot; ``False`` otherwise. + :type recursive: + ``bool`` + :param stat: + Use custom stat function that returns a stat structure for path. + Currently only st_dev, st_ino, st_mode and st_mtime are needed. + + A function taking a ``path`` as argument which will be called + for every entry in the directory tree. + :param listdir: + Use custom listdir function. For details see ``os.scandir``. + :param ignore_device: + A boolean indicating whether to ignore the device id or not. + By default, a file may be uniquely identified by a combination of its first + inode and its device id. The problem is that the device id may (or may not) + change between system boots. This problem would cause the DirectorySnapshotDiff + to think a file has been deleted and created again but it would be the + exact same file. + Set to True only if you are sure you will always use the same device. + :type ignore_device: + :class:`bool` + """ + + def __init__( + self, + path: str, + *, + recursive: bool = True, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ignore_device: bool = False, + ) -> None: + self.path = path + self.recursive = recursive + self.stat = stat + self.listdir = listdir + self.ignore_device = ignore_device + + def __enter__(self) -> None: + self.pre_snapshot = self.get_snapshot() + + def __exit__(self, *args: object) -> None: + self.post_snapshot = self.get_snapshot() + self.diff = DirectorySnapshotDiff( + self.pre_snapshot, + self.post_snapshot, + ignore_device=self.ignore_device, + ) + + def get_snapshot(self) -> DirectorySnapshot: + return DirectorySnapshot( + path=self.path, + recursive=self.recursive, + stat=self.stat, + listdir=self.listdir, + ) + + +class DirectorySnapshot: + """A snapshot of stat information of files in a directory. + + :param path: + The directory path for which a snapshot should be taken. + :type path: + ``str`` + :param recursive: + ``True`` if the entire directory tree should be included in the + snapshot; ``False`` otherwise. + :type recursive: + ``bool`` + :param stat: + Use custom stat function that returns a stat structure for path. + Currently only st_dev, st_ino, st_mode and st_mtime are needed. + + A function taking a ``path`` as argument which will be called + for every entry in the directory tree. + :param listdir: + Use custom listdir function. For details see ``os.scandir``. + """ + + def __init__( + self, + path: str, + *, + recursive: bool = True, + stat: Callable[[str], os.stat_result] = os.stat, + listdir: Callable[[str | None], Iterator[os.DirEntry]] = os.scandir, + ) -> None: + self.recursive = recursive + self.stat = stat + self.listdir = listdir + + self._stat_info: dict[bytes | str, os.stat_result] = {} + self._inode_to_path: dict[tuple[int, int], bytes | str] = {} + + st = self.stat(path) + self._stat_info[path] = st + self._inode_to_path[(st.st_ino, st.st_dev)] = path + + for p, st in self.walk(path): + i = (st.st_ino, st.st_dev) + self._inode_to_path[i] = p + self._stat_info[p] = st + + def walk(self, root: str) -> Iterator[tuple[str, os.stat_result]]: + try: + paths = [os.path.join(root, entry.name) for entry in self.listdir(root)] + except OSError as e: + # Directory may have been deleted between finding it in the directory + # list of its parent and trying to delete its contents. If this + # happens we treat it as empty. Likewise if the directory was replaced + # with a file of the same name (less likely, but possible). + if e.errno in (errno.ENOENT, errno.ENOTDIR, errno.EINVAL): + return + else: + raise + + entries = [] + for p in paths: + with contextlib.suppress(OSError): + entry = (p, self.stat(p)) + entries.append(entry) + yield entry + + if self.recursive: + for path, st in entries: + with contextlib.suppress(PermissionError): + if S_ISDIR(st.st_mode): + yield from self.walk(path) + + @property + def paths(self) -> set[bytes | str]: + """Set of file/directory paths in the snapshot.""" + return set(self._stat_info.keys()) + + def path(self, uid: tuple[int, int]) -> bytes | str | None: + """Returns path for id. None if id is unknown to this snapshot.""" + return self._inode_to_path.get(uid) + + def inode(self, path: bytes | str) -> tuple[int, int]: + """Returns an id for path.""" + st = self._stat_info[path] + return (st.st_ino, st.st_dev) + + def isdir(self, path: bytes | str) -> bool: + return S_ISDIR(self._stat_info[path].st_mode) + + def mtime(self, path: bytes | str) -> float: + return self._stat_info[path].st_mtime + + def size(self, path: bytes | str) -> int: + return self._stat_info[path].st_size + + def stat_info(self, path: bytes | str) -> os.stat_result: + """Returns a stat information object for the specified path from + the snapshot. + + Attached information is subject to change. Do not use unless + you specify `stat` in constructor. Use :func:`inode`, :func:`mtime`, + :func:`isdir` instead. + + :param path: + The path for which stat information should be obtained + from a snapshot. + """ + return self._stat_info[path] + + def __sub__(self, previous_dirsnap: DirectorySnapshot) -> DirectorySnapshotDiff: + """Allow subtracting a DirectorySnapshot object instance from + another. + + :returns: + A :class:`DirectorySnapshotDiff` object. + """ + return DirectorySnapshotDiff(previous_dirsnap, self) + + def __str__(self) -> str: + return self.__repr__() + + def __repr__(self) -> str: + return str(self._stat_info) + + +class EmptyDirectorySnapshot(DirectorySnapshot): + """Class to implement an empty snapshot. This is used together with + DirectorySnapshot and DirectorySnapshotDiff in order to get all the files/folders + in the directory as created. + """ + + def __init__(self) -> None: + pass + + @staticmethod + def path(_: Any) -> None: + """Mock up method to return the path of the received inode. As the snapshot + is intended to be empty, it always returns None. + + :returns: + None. + """ + return + + @property + def paths(self) -> set: + """Mock up method to return a set of file/directory paths in the snapshot. As + the snapshot is intended to be empty, it always returns an empty set. + + :returns: + An empty set. + """ + return set() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/echo.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/echo.py new file mode 100644 index 0000000000000000000000000000000000000000..4ff9217d341584b2d2bc119506b6789a6a58593d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/echo.py @@ -0,0 +1,68 @@ +# echo.py: Tracing function calls using Python decorators. +# +# Written by Thomas Guest +# Please see http://wordaligned.org/articles/echo +# +# Place into the public domain. + +"""Echo calls made to functions in a module. + +"Echoing" a function call means printing out the name of the function +and the values of its arguments before making the call (which is more +commonly referred to as "tracing", but Python already has a trace module). + +Alternatively, echo.echo can be used to decorate functions. Calls to the +decorated function will be echoed. + +Example: +------- + + @echo.echo + def my_function(args): + pass + +""" + +from __future__ import annotations + +import functools +import sys +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from typing import Any, Callable + + +def format_arg_value(arg_val: tuple[str, tuple[Any, ...]]) -> str: + """Return a string representing a (name, value) pair.""" + arg, val = arg_val + return f"{arg}={val!r}" + + +def echo(fn: Callable, write: Callable[[str], int | None] = sys.stdout.write) -> Callable: + """Echo calls to a function. + + Returns a decorated version of the input function which "echoes" calls + made to it by writing out the function's name and the arguments it was + called with. + """ + # Unpack function's arg count, arg names, arg defaults + code = fn.__code__ + argcount = code.co_argcount + argnames = code.co_varnames[:argcount] + fn_defaults: tuple[Any] = fn.__defaults__ or () + argdefs = dict(list(zip(argnames[-len(fn_defaults) :], fn_defaults))) + + @functools.wraps(fn) + def wrapped(*v: Any, **k: Any) -> Callable: + # Collect function arguments by chaining together positional, + # defaulted, extra positional and keyword arguments. + positional = list(map(format_arg_value, list(zip(argnames, v)))) + defaulted = [format_arg_value((a, argdefs[a])) for a in argnames[len(v) :] if a not in k] + nameless = list(map(repr, v[argcount:])) + keyword = list(map(format_arg_value, list(k.items()))) + args = positional + defaulted + nameless + keyword + write(f"{fn.__name__}({', '.join(args)})\n") + return fn(*v, **k) + + return wrapped diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/event_debouncer.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/event_debouncer.py new file mode 100644 index 0000000000000000000000000000000000000000..d9569733354904f057b29535a842521f0628db14 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/event_debouncer.py @@ -0,0 +1,66 @@ +from __future__ import annotations + +import logging +import threading +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread + +if TYPE_CHECKING: + from typing import Callable + + from watchdog.events import FileSystemEvent + +logger = logging.getLogger(__name__) + + +class EventDebouncer(BaseThread): + """Background thread for debouncing event handling. + + When an event is received, wait until the configured debounce interval + passes before calling the callback. If additional events are received + before the interval passes, reset the timer and keep waiting. When the + debouncing interval passes, the callback will be called with a list of + events in the order in which they were received. + """ + + def __init__( + self, + debounce_interval_seconds: int, + events_callback: Callable[[list[FileSystemEvent]], None], + ) -> None: + super().__init__() + self.debounce_interval_seconds = debounce_interval_seconds + self.events_callback = events_callback + + self._events: list[FileSystemEvent] = [] + self._cond = threading.Condition() + + def handle_event(self, event: FileSystemEvent) -> None: + with self._cond: + self._events.append(event) + self._cond.notify() + + def stop(self) -> None: + with self._cond: + super().stop() + self._cond.notify() + + def run(self) -> None: + with self._cond: + while True: + # Wait for first event (or shutdown). + self._cond.wait() + + if self.debounce_interval_seconds: + # Wait for additional events (or shutdown) until the debounce interval passes. + while self.should_keep_running(): + if not self._cond.wait(timeout=self.debounce_interval_seconds): + break + + if not self.should_keep_running(): + break + + events = self._events + self._events = [] + self.events_callback(events) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/patterns.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/patterns.py new file mode 100644 index 0000000000000000000000000000000000000000..95b479ae6be56e13aa020b28a42813e90d6a3797 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/patterns.py @@ -0,0 +1,99 @@ +""":module: watchdog.utils.patterns +:synopsis: Common wildcard searching/filtering functionality for files. +:author: boris.staletic@gmail.com (Boris Staletic) +:author: yesudeep@gmail.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +""" + +from __future__ import annotations + +# Non-pure path objects are only allowed on their respective OS's. +# Thus, these utilities require "pure" path objects that don't access the filesystem. +# Since pathlib doesn't have a `case_sensitive` parameter, we have to approximate it +# by converting input paths to `PureWindowsPath` and `PurePosixPath` where: +# - `PureWindowsPath` is always case-insensitive. +# - `PurePosixPath` is always case-sensitive. +# Reference: https://docs.python.org/3/library/pathlib.html#pathlib.PurePath.match +from pathlib import PurePosixPath, PureWindowsPath +from typing import TYPE_CHECKING + +if TYPE_CHECKING: + from collections.abc import Iterator + + +def _match_path( + raw_path: str, + included_patterns: set[str], + excluded_patterns: set[str], + *, + case_sensitive: bool, +) -> bool: + """Internal function same as :func:`match_path` but does not check arguments.""" + path: PurePosixPath | PureWindowsPath + if case_sensitive: + path = PurePosixPath(raw_path) + else: + included_patterns = {pattern.lower() for pattern in included_patterns} + excluded_patterns = {pattern.lower() for pattern in excluded_patterns} + path = PureWindowsPath(raw_path) + + common_patterns = included_patterns & excluded_patterns + if common_patterns: + error = f"conflicting patterns `{common_patterns}` included and excluded" + raise ValueError(error) + + return any(path.match(p) for p in included_patterns) and not any(path.match(p) for p in excluded_patterns) + + +def filter_paths( + paths: list[str], + *, + included_patterns: list[str] | None = None, + excluded_patterns: list[str] | None = None, + case_sensitive: bool = True, +) -> Iterator[str]: + """Filters from a set of paths based on acceptable patterns and + ignorable patterns. + :param paths: + A list of path names that will be filtered based on matching and + ignored patterns. + :param included_patterns: + Allow filenames matching wildcard patterns specified in this list. + If no pattern list is specified, ["*"] is used as the default pattern, + which matches all files. + :param excluded_patterns: + Ignores filenames matching wildcard patterns specified in this list. + If no pattern list is specified, no files are ignored. + :param case_sensitive: + ``True`` if matching should be case-sensitive; ``False`` otherwise. + :returns: + A list of pathnames that matched the allowable patterns and passed + through the ignored patterns. + """ + included = set(["*"] if included_patterns is None else included_patterns) + excluded = set([] if excluded_patterns is None else excluded_patterns) + + for path in paths: + if _match_path(path, included, excluded, case_sensitive=case_sensitive): + yield path + + +def match_any_paths( + paths: list[str], + *, + included_patterns: list[str] | None = None, + excluded_patterns: list[str] | None = None, + case_sensitive: bool = True, +) -> bool: + """Matches from a set of paths based on acceptable patterns and + ignorable patterns. + See ``filter_paths()`` for signature details. + """ + return any( + filter_paths( + paths, + included_patterns=included_patterns, + excluded_patterns=excluded_patterns, + case_sensitive=case_sensitive, + ), + ) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/platform.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/platform.py new file mode 100644 index 0000000000000000000000000000000000000000..3c11d152c0302ad28794c3a415ab43b3ecf8a8d2 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/platform.py @@ -0,0 +1,44 @@ +from __future__ import annotations + +import sys + +PLATFORM_WINDOWS = "windows" +PLATFORM_LINUX = "linux" +PLATFORM_BSD = "bsd" +PLATFORM_DARWIN = "darwin" +PLATFORM_UNKNOWN = "unknown" + + +def get_platform_name() -> str: + if sys.platform.startswith("win"): + return PLATFORM_WINDOWS + + if sys.platform.startswith("darwin"): + return PLATFORM_DARWIN + + if sys.platform.startswith("linux"): + return PLATFORM_LINUX + + if sys.platform.startswith(("dragonfly", "freebsd", "netbsd", "openbsd", "bsd")): + return PLATFORM_BSD + + return PLATFORM_UNKNOWN + + +__platform__ = get_platform_name() + + +def is_linux() -> bool: + return __platform__ == PLATFORM_LINUX + + +def is_bsd() -> bool: + return __platform__ == PLATFORM_BSD + + +def is_darwin() -> bool: + return __platform__ == PLATFORM_DARWIN + + +def is_windows() -> bool: + return __platform__ == PLATFORM_WINDOWS diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/process_watcher.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/process_watcher.py new file mode 100644 index 0000000000000000000000000000000000000000..f500266a5bbd688c436bd7fcd6091cd78dfded6f --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/utils/process_watcher.py @@ -0,0 +1,30 @@ +from __future__ import annotations + +import logging +from typing import TYPE_CHECKING + +from watchdog.utils import BaseThread + +if TYPE_CHECKING: + import subprocess + from typing import Callable + +logger = logging.getLogger(__name__) + + +class ProcessWatcher(BaseThread): + def __init__(self, popen_obj: subprocess.Popen, process_termination_callback: Callable[[], None] | None) -> None: + super().__init__() + self.popen_obj = popen_obj + self.process_termination_callback = process_termination_callback + + def run(self) -> None: + while self.popen_obj.poll() is None: + if self.stopped_event.wait(timeout=0.1): + return + + try: + if not self.stopped_event.is_set() and self.process_termination_callback: + self.process_termination_callback() + except Exception: + logger.exception("Error calling process termination callback") diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/version.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/version.py new file mode 100644 index 0000000000000000000000000000000000000000..8e1876f6a2bc12c11999a2299d8b03b9332d1098 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/version.py @@ -0,0 +1,11 @@ +from __future__ import annotations + +# When updating this version number, please update the +# ``docs/source/global.rst.inc`` file as well. +VERSION_MAJOR = 6 +VERSION_MINOR = 0 +VERSION_BUILD = 0 +VERSION_INFO = (VERSION_MAJOR, VERSION_MINOR, VERSION_BUILD) +VERSION_STRING = f"{VERSION_MAJOR}.{VERSION_MINOR}.{VERSION_BUILD}" + +__version__ = VERSION_INFO diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/watchmedo.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/watchmedo.py new file mode 100644 index 0000000000000000000000000000000000000000..e7879563c96b71ab428f942e8f4cce435cdb5a4e --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Lib/site-packages/watchdog/watchmedo.py @@ -0,0 +1,807 @@ +""":module: watchdog.watchmedo +:author: yesudeep@google.com (Yesudeep Mangalapilly) +:author: contact@tiger-222.fr (Mickaël Schoentgen) +:synopsis: ``watchmedo`` shell script utility. +""" + +from __future__ import annotations + +import errno +import logging +import os +import os.path +import sys +import time +from argparse import ArgumentParser, RawDescriptionHelpFormatter +from io import StringIO +from textwrap import dedent +from typing import TYPE_CHECKING, Any + +from watchdog.utils import WatchdogShutdownError, load_class, platform +from watchdog.version import VERSION_STRING + +if TYPE_CHECKING: + from argparse import Namespace, _SubParsersAction + from typing import Callable + + from watchdog.events import FileSystemEventHandler + from watchdog.observers import ObserverType + from watchdog.observers.api import BaseObserver + + +logging.basicConfig(level=logging.INFO) + +CONFIG_KEY_TRICKS = "tricks" +CONFIG_KEY_PYTHON_PATH = "python-path" + + +class HelpFormatter(RawDescriptionHelpFormatter): + """A nicer help formatter. + + Help for arguments can be indented and contain new lines. + It will be de-dented and arguments in the help + will be separated by a blank line for better readability. + + Source: https://github.com/httpie/httpie/blob/2423f89/httpie/cli/argparser.py#L31 + """ + + def __init__(self, *args: Any, max_help_position: int = 6, **kwargs: Any) -> None: + # A smaller indent for args help. + kwargs["max_help_position"] = max_help_position + super().__init__(*args, **kwargs) + + def __repr__(self) -> str: + return f"<{type(self).__name__}>" + + def _split_lines(self, text: str, width: int) -> list[str]: + text = dedent(text).strip() + "\n\n" + return text.splitlines() + + +epilog = """\ +Copyright 2018-2024 Mickaël Schoentgen & contributors +Copyright 2014-2018 Thomas Amland & contributors +Copyright 2012-2014 Google, Inc. +Copyright 2011-2012 Yesudeep Mangalapilly + +Licensed under the terms of the Apache license, version 2.0. Please see +LICENSE in the source code for more information.""" + +cli = ArgumentParser(epilog=epilog, formatter_class=HelpFormatter) +cli.add_argument("--version", action="version", version=VERSION_STRING) +subparsers = cli.add_subparsers(dest="top_command") +command_parsers = {} + +Argument = tuple[list[str], Any] + + +def argument(*name_or_flags: str, **kwargs: Any) -> Argument: + """Convenience function to properly format arguments to pass to the + command decorator. + """ + return list(name_or_flags), kwargs + + +def command( + args: list[Argument], + *, + parent: _SubParsersAction[ArgumentParser] = subparsers, + cmd_aliases: list[str] | None = None, +) -> Callable: + """Decorator to define a new command in a sanity-preserving way. + The function will be stored in the ``func`` variable when the parser + parses arguments so that it can be called directly like so:: + + >>> args = cli.parse_args() + >>> args.func(args) + + """ + + def decorator(func: Callable) -> Callable: + name = func.__name__.replace("_", "-") + desc = dedent(func.__doc__ or "") + parser = parent.add_parser(name, aliases=cmd_aliases or [], description=desc, formatter_class=HelpFormatter) + command_parsers[name] = parser + verbosity_group = parser.add_mutually_exclusive_group() + verbosity_group.add_argument("-q", "--quiet", dest="verbosity", action="append_const", const=-1) + verbosity_group.add_argument("-v", "--verbose", dest="verbosity", action="append_const", const=1) + for name_or_flags, kwargs in args: + parser.add_argument(*name_or_flags, **kwargs) + parser.set_defaults(func=func) + return func + + return decorator + + +def path_split(pathname_spec: str, *, separator: str = os.pathsep) -> list[str]: + """Splits a pathname specification separated by an OS-dependent separator. + + :param pathname_spec: + The pathname specification. + :param separator: + (OS Dependent) `:` on Unix and `;` on Windows or user-specified. + """ + return pathname_spec.split(separator) + + +def add_to_sys_path(pathnames: list[str], *, index: int = 0) -> None: + """Adds specified paths at specified index into the sys.path list. + + :param paths: + A list of paths to add to the sys.path + :param index: + (Default 0) The index in the sys.path list where the paths will be + added. + """ + for pathname in pathnames[::-1]: + sys.path.insert(index, pathname) + + +def load_config(tricks_file_pathname: str) -> dict: + """Loads the YAML configuration from the specified file. + + :param tricks_file_path: + The path to the tricks configuration file. + :returns: + A dictionary of configuration information. + """ + import yaml + + with open(tricks_file_pathname, "rb") as f: + return yaml.safe_load(f.read()) + + +def parse_patterns( + patterns_spec: str, ignore_patterns_spec: str, *, separator: str = ";" +) -> tuple[list[str], list[str]]: + """Parses pattern argument specs and returns a two-tuple of + (patterns, ignore_patterns). + """ + patterns = patterns_spec.split(separator) + ignore_patterns = ignore_patterns_spec.split(separator) + if ignore_patterns == [""]: + ignore_patterns = [] + return patterns, ignore_patterns + + +def observe_with( + observer: BaseObserver, + event_handler: FileSystemEventHandler, + pathnames: list[str], + *, + recursive: bool, +) -> None: + """Single observer thread with a scheduled path and event handler. + + :param observer: + The observer thread. + :param event_handler: + Event handler which will be called in response to file system events. + :param pathnames: + A list of pathnames to monitor. + :param recursive: + ``True`` if recursive; ``False`` otherwise. + """ + for pathname in set(pathnames): + observer.schedule(event_handler, pathname, recursive=recursive) + observer.start() + try: + while True: + time.sleep(1) + except WatchdogShutdownError: + observer.stop() + observer.join() + + +def schedule_tricks(observer: BaseObserver, tricks: list[dict], pathname: str, *, recursive: bool) -> None: + """Schedules tricks with the specified observer and for the given watch + path. + + :param observer: + The observer thread into which to schedule the trick and watch. + :param tricks: + A list of tricks. + :param pathname: + A path name which should be watched. + :param recursive: + ``True`` if recursive; ``False`` otherwise. + """ + for trick in tricks: + for name, value in trick.items(): + trick_cls = load_class(name) + handler = trick_cls(**value) + trick_pathname = getattr(handler, "source_directory", None) or pathname + observer.schedule(handler, trick_pathname, recursive=recursive) + + +@command( + [ + argument("files", nargs="*", help="perform tricks from given file"), + argument( + "--python-path", + default=".", + help=f"Paths separated by {os.pathsep!r} to add to the Python path.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout (in seconds).", + ), + argument( + "--recursive", + action="store_true", + default=True, + help="Recursively monitor paths (defaults to True).", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--debug-force-kqueue", + action="store_true", + help="[debug] Forces BSD kqueue(2).", + ), + argument( + "--debug-force-winapi", + action="store_true", + help="[debug] Forces Windows API.", + ), + argument( + "--debug-force-fsevents", + action="store_true", + help="[debug] Forces macOS FSEvents.", + ), + argument( + "--debug-force-inotify", + action="store_true", + help="[debug] Forces Linux inotify(7).", + ), + ], + cmd_aliases=["tricks"], +) +def tricks_from(args: Namespace) -> None: + """Command to execute tricks from a tricks configuration file.""" + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + elif args.debug_force_kqueue: + from watchdog.observers.kqueue import KqueueObserver + + observer_cls = KqueueObserver + elif (not TYPE_CHECKING and args.debug_force_winapi) or (TYPE_CHECKING and platform.is_windows()): + from watchdog.observers.read_directory_changes import WindowsApiObserver + + observer_cls = WindowsApiObserver + elif args.debug_force_inotify: + from watchdog.observers.inotify import InotifyObserver + + observer_cls = InotifyObserver + elif args.debug_force_fsevents: + from watchdog.observers.fsevents import FSEventsObserver + + observer_cls = FSEventsObserver + else: + # Automatically picks the most appropriate observer for the platform + # on which it is running. + from watchdog.observers import Observer + + observer_cls = Observer + + add_to_sys_path(path_split(args.python_path)) + observers = [] + for tricks_file in args.files: + observer = observer_cls(timeout=args.timeout) + + if not os.path.exists(tricks_file): + raise OSError(errno.ENOENT, os.strerror(errno.ENOENT), tricks_file) + + config = load_config(tricks_file) + + try: + tricks = config[CONFIG_KEY_TRICKS] + except KeyError as e: + error = f"No {CONFIG_KEY_TRICKS!r} key specified in {tricks_file!r}." + raise KeyError(error) from e + + if CONFIG_KEY_PYTHON_PATH in config: + add_to_sys_path(config[CONFIG_KEY_PYTHON_PATH]) + + dir_path = os.path.dirname(tricks_file) or os.path.relpath(os.getcwd()) + schedule_tricks(observer, tricks, dir_path, recursive=args.recursive) + observer.start() + observers.append(observer) + + try: + while True: + time.sleep(1) + except WatchdogShutdownError: + for o in observers: + o.unschedule_all() + o.stop() + for o in observers: + o.join() + + +@command( + [ + argument( + "trick_paths", + nargs="*", + help="Dotted paths for all the tricks you want to generate.", + ), + argument( + "--python-path", + default=".", + help=f"Paths separated by {os.pathsep!r} to add to the Python path.", + ), + argument( + "--append-to-file", + default=None, + help=""" + Appends the generated tricks YAML to a file. + If not specified, prints to standard output.""", + ), + argument( + "-a", + "--append-only", + dest="append_only", + action="store_true", + help=""" + If --append-to-file is not specified, produces output for + appending instead of a complete tricks YAML file.""", + ), + ], + cmd_aliases=["generate-tricks-yaml"], +) +def tricks_generate_yaml(args: Namespace) -> None: + """Command to generate Yaml configuration for tricks named on the command line.""" + import yaml + + python_paths = path_split(args.python_path) + add_to_sys_path(python_paths) + output = StringIO() + + for trick_path in args.trick_paths: + trick_cls = load_class(trick_path) + output.write(trick_cls.generate_yaml()) + + content = output.getvalue() + output.close() + + header = yaml.dump({CONFIG_KEY_PYTHON_PATH: python_paths}) + header += f"{CONFIG_KEY_TRICKS}:\n" + if args.append_to_file is None: + # Output to standard output. + if not args.append_only: + content = header + content + sys.stdout.write(content) + else: + if not os.path.exists(args.append_to_file): + content = header + content + with open(args.append_to_file, "a", encoding="utf-8") as file: + file.write(content) + + +@command( + [ + argument( + "directories", + nargs="*", + default=".", + help="Directories to watch. (default: '.').", + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--debug-force-kqueue", + action="store_true", + help="[debug] Forces BSD kqueue(2).", + ), + argument( + "--debug-force-winapi", + action="store_true", + help="[debug] Forces Windows API.", + ), + argument( + "--debug-force-fsevents", + action="store_true", + help="[debug] Forces macOS FSEvents.", + ), + argument( + "--debug-force-inotify", + action="store_true", + help="[debug] Forces Linux inotify(7).", + ), + ], +) +def log(args: Namespace) -> None: + """Command to log file system events to the console.""" + from watchdog.tricks import LoggerTrick + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + handler = LoggerTrick( + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + ) + + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + elif args.debug_force_kqueue: + from watchdog.observers.kqueue import KqueueObserver + + observer_cls = KqueueObserver + elif (not TYPE_CHECKING and args.debug_force_winapi) or (TYPE_CHECKING and platform.is_windows()): + from watchdog.observers.read_directory_changes import WindowsApiObserver + + observer_cls = WindowsApiObserver + elif args.debug_force_inotify: + from watchdog.observers.inotify import InotifyObserver + + observer_cls = InotifyObserver + elif args.debug_force_fsevents: + from watchdog.observers.fsevents import FSEventsObserver + + observer_cls = FSEventsObserver + else: + # Automatically picks the most appropriate observer for the platform + # on which it is running. + from watchdog.observers import Observer + + observer_cls = Observer + + observer = observer_cls(timeout=args.timeout) + observe_with(observer, handler, args.directories, recursive=args.recursive) + + +@command( + [ + argument("directories", nargs="*", default=".", help="Directories to watch."), + argument( + "-c", + "--command", + dest="command", + default=None, + help=""" + Shell command executed in response to matching events. + These interpolation variables are available to your command string: + + ${watch_src_path} - event source path + ${watch_dest_path} - event destination path (for moved events) + ${watch_event_type} - event type + ${watch_object} - 'file' or 'directory' + + Note: + Please ensure you do not use double quotes (") to quote + your command string. That will force your shell to + interpolate before the command is processed by this + command. + + Example: + + --command='echo "${watch_src_path}"' + """, + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + default=False, + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument( + "-w", + "--wait", + dest="wait_for_process", + action="store_true", + help="Wait for process to finish to avoid multiple simultaneous instances.", + ), + argument( + "-W", + "--drop", + dest="drop_during_process", + action="store_true", + help="Ignore events that occur while command is still being" + " executed to avoid multiple simultaneous instances.", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + ], +) +def shell_command(args: Namespace) -> None: + """Command to execute shell commands in response to file system events.""" + from watchdog.tricks import ShellCommandTrick + + if not args.command: + args.command = None + + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + else: + from watchdog.observers import Observer + + observer_cls = Observer + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + handler = ShellCommandTrick( + args.command, + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + wait_for_process=args.wait_for_process, + drop_during_process=args.drop_during_process, + ) + observer = observer_cls(timeout=args.timeout) + observe_with(observer, handler, args.directories, recursive=args.recursive) + + +@command( + [ + argument("command", help="Long-running command to run in a subprocess."), + argument( + "command_args", + metavar="arg", + nargs="*", + help=""" + Command arguments. + + Note: Use -- before the command arguments, otherwise watchmedo will + try to interpret them. + """, + ), + argument( + "-d", + "--directory", + dest="directories", + metavar="DIRECTORY", + action="append", + help="Directory to watch. Use another -d or --directory option for each directory.", + ), + argument( + "-p", + "--pattern", + "--patterns", + dest="patterns", + default="*", + help="Matches event paths with these patterns (separated by ;).", + ), + argument( + "-i", + "--ignore-pattern", + "--ignore-patterns", + dest="ignore_patterns", + default="", + help="Ignores event paths with these patterns (separated by ;).", + ), + argument( + "-D", + "--ignore-directories", + dest="ignore_directories", + default=False, + action="store_true", + help="Ignores events for directories.", + ), + argument( + "-R", + "--recursive", + dest="recursive", + action="store_true", + help="Monitors the directories recursively.", + ), + argument( + "--interval", + "--timeout", + dest="timeout", + default=1.0, + type=float, + help="Use this as the polling interval/blocking timeout.", + ), + argument( + "--signal", + dest="signal", + default="SIGINT", + help="Stop the subprocess with this signal (default SIGINT).", + ), + argument("--debug-force-polling", action="store_true", help="[debug] Forces polling."), + argument( + "--kill-after", + dest="kill_after", + default=10.0, + type=float, + help="When stopping, kill the subprocess after the specified timeout in seconds (default 10.0).", + ), + argument( + "--debounce-interval", + dest="debounce_interval", + default=0.0, + type=float, + help="After a file change, Wait until the specified interval (in " + "seconds) passes with no file changes, and only then restart.", + ), + argument( + "--no-restart-on-command-exit", + dest="restart_on_command_exit", + default=True, + action="store_false", + help="Don't auto-restart the command after it exits.", + ), + ], +) +def auto_restart(args: Namespace) -> None: + """Command to start a long-running subprocess and restart it on matched events.""" + observer_cls: ObserverType + if args.debug_force_polling: + from watchdog.observers.polling import PollingObserver + + observer_cls = PollingObserver + else: + from watchdog.observers import Observer + + observer_cls = Observer + + import signal + + from watchdog.tricks import AutoRestartTrick + + if not args.directories: + args.directories = ["."] + + # Allow either signal name or number. + stop_signal = getattr(signal, args.signal) if args.signal.startswith("SIG") else int(args.signal) + + # Handle termination signals by raising a semantic exception which will + # allow us to gracefully unwind and stop the observer + termination_signals = {signal.SIGTERM, signal.SIGINT} + + if hasattr(signal, "SIGHUP"): + termination_signals.add(signal.SIGHUP) + + def handler_termination_signal(_signum: signal._SIGNUM, _frame: object) -> None: + # Neuter all signals so that we don't attempt a double shutdown + for signum in termination_signals: + signal.signal(signum, signal.SIG_IGN) + raise WatchdogShutdownError + + for signum in termination_signals: + signal.signal(signum, handler_termination_signal) + + patterns, ignore_patterns = parse_patterns(args.patterns, args.ignore_patterns) + command = [args.command] + command.extend(args.command_args) + handler = AutoRestartTrick( + command, + patterns=patterns, + ignore_patterns=ignore_patterns, + ignore_directories=args.ignore_directories, + stop_signal=stop_signal, + kill_after=args.kill_after, + debounce_interval_seconds=args.debounce_interval, + restart_on_command_exit=args.restart_on_command_exit, + ) + handler.start() + observer = observer_cls(timeout=args.timeout) + try: + observe_with(observer, handler, args.directories, recursive=args.recursive) + except WatchdogShutdownError: + pass + finally: + handler.stop() + + +class LogLevelError(Exception): + pass + + +def _get_log_level_from_args(args: Namespace) -> str: + verbosity = sum(args.verbosity or []) + if verbosity < -1: + error = "-q/--quiet may be specified only once." + raise LogLevelError(error) + if verbosity > 2: + error = "-v/--verbose may be specified up to 2 times." + raise LogLevelError(error) + return ["ERROR", "WARNING", "INFO", "DEBUG"][1 + verbosity] + + +def main() -> int: + """Entry-point function.""" + args = cli.parse_args() + if args.top_command is None: + cli.print_help() + return 1 + + try: + log_level = _get_log_level_from_args(args) + except LogLevelError as exc: + print(f"Error: {exc.args[0]}", file=sys.stderr) # noqa:T201 + command_parsers[args.top_command].print_help() + return 1 + logging.getLogger("watchdog").setLevel(log_level) + + try: + args.func(args) + except KeyboardInterrupt: + return 130 + + return 0 + + +if __name__ == "__main__": + sys.exit(main()) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo-script.py b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo-script.py new file mode 100644 index 0000000000000000000000000000000000000000..456a3be503ce7865ac883b18e38f1cb7a84ce04d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo-script.py @@ -0,0 +1,10 @@ + +# -*- coding: utf-8 -*- +import re +import sys + +from watchdog.watchmedo import main + +if __name__ == '__main__': + sys.argv[0] = re.sub(r'(-script\.pyw?|\.exe)?$', '', sys.argv[0]) + sys.exit(main()) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo.exe b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo.exe new file mode 100644 index 0000000000000000000000000000000000000000..675e6bf3743f3d3011c238657e7128ee9960ef7f Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/Scripts/watchmedo.exe differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/about.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..2ffc664a8d077fcb0a128af5ae0412d19bdeacc3 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/about.json @@ -0,0 +1,23 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/" + ], + "dev_url": "http://github.com/gorakhargosh/watchdog", + "doc_url": "http://pythonhosted.org/watchdog", + "extra": { + "flow_run_id": "azure_20260304.1.1", + "recipe-maintainers": [ + "goanpeca", + "rlaverde", + "ccordoba12", + "andfoy", + "tschoonj", + "xhochy" + ], + "remote_url": "https://github.com/conda-forge/watchdog-feedstock", + "sha": "612f795087c956b7e06a05cbfc96126f1510e425" + }, + "home": "http://github.com/gorakhargosh/watchdog", + "license": "Apache-2.0", + "summary": "Filesystem events monitoring" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/hash_input.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..154cf30a1ae324f2cef47cf2f60959a1fd4a23a5 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/hash_input.json @@ -0,0 +1 @@ +{"build_platform": "win-64", "channel_sources": "conda-forge", "channel_targets": "conda-forge main", "python": "3.14.* *_cp314t", "target_platform": "win-64"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/index.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..456b353efe2f8c1ae7c2c53499881660075916d9 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/index.json @@ -0,0 +1,16 @@ +{ + "arch": "x86_64", + "build": "py314he37c773_3", + "build_number": 3, + "depends": [ + "python", + "pyyaml >=3.10", + "python_abi 3.14.* *_cp314t" + ], + "license": "Apache-2.0", + "name": "watchdog", + "platform": "win", + "subdir": "win-64", + "timestamp": 1772608066218, + "version": "6.0.0" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/licenses/LICENSE b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..d645695673349e3947e8e5ae42332d0ac3164cd7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/licenses/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/paths.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..255221bd3f4e745adf8a71f0de5f8ccd5e7d4a53 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/paths.json @@ -0,0 +1,389 @@ +{ + "paths": [ + { + "_path": "Lib/site-packages/watchdog/__init__.py", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "0dc6bace7b51e7098d0d28507efc7b4d562e54ae9326319e1b1d26baf49d41a7", + "size_in_bytes": 188 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/events.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "29ad23dd450ff2de0657fc7cd3067c8a86fe527181998c2ac05111dbc581b7ce", + "size_in_bytes": 27245 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/version.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "5ab8c34a0645bf2c501c76da255085e58c38e3056b823c8d87cb64ea82c00278", + "size_in_bytes": 429 + }, + { + "_path": "Lib/site-packages/watchdog/__pycache__/watchmedo.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "f501680df0ab1ea0f5cb8515a9613d4378f92fdbfa287eb0a8526297b0490d2e", + "size_in_bytes": 29494 + }, + { + "_path": "Lib/site-packages/watchdog/events.py", + "path_type": "hardlink", + "sha256": "8a0e2808d726fa649eeab2b92cfb0851c30eddd7eaf4429e81f33d2384b056ff", + "size_in_bytes": 16323 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__init__.py", + "path_type": "hardlink", + "sha256": "0665ca2f55975a724ff3e591ae13f892618ad3880d00387589f25ecde66ce21b", + "size_in_bytes": 3256 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "d62b9d5200246475e7f19de3f82cc30abf531d58ee1bb07e2160517d146eba79", + "size_in_bytes": 4589 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/api.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "3141126f9fe414b4853d9a77b7e3c38fbcc9384aec5196e64869a938c6c9d31d", + "size_in_bytes": 25585 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/fsevents.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "37ee8ee060bc4328e005ee175868bc76bf16bf932b56d08623238f0394936195", + "size_in_bytes": 19825 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/fsevents2.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "406a9db785a88466c567e7ed2754cbae7b3cf8b41cb56e25325ca91f88837f2c", + "size_in_bytes": 15533 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "e4858300c5389ab1095d00371ae6feb0282beb31284ab59ec7213bd70c450827", + "size_in_bytes": 15440 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify_buffer.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "68e206c674576f840adb1744c9d4579ae3c22792c8f497f5be6f2bcd3f89ca09", + "size_in_bytes": 6641 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/inotify_c.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "2c7b7d4c0aee98d89d6ed94ecb0af37a5ffb391267ae7cdda5bc6221454602a4", + "size_in_bytes": 34992 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/kqueue.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "3360c9bb23f37010fa566fb6b5a866a94085c76f65e75d1bc4e7f421e60df287", + "size_in_bytes": 35226 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/polling.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "15a3891345b0ebbef4fd3a18e0c2e60322b883a2682a25ade0c249181d0fb2a9", + "size_in_bytes": 7840 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/read_directory_changes.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "5a57975e435ad5e7ac9bb2b2f552eb6ad8546b466369f2877ae8eee48b14d9d3", + "size_in_bytes": 7628 + }, + { + "_path": "Lib/site-packages/watchdog/observers/__pycache__/winapi.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "e9ca14f3312c31f3d1f9ac0f425222dd0092de933ffaa6def2b456e5ffd225b9", + "size_in_bytes": 14766 + }, + { + "_path": "Lib/site-packages/watchdog/observers/api.py", + "path_type": "hardlink", + "sha256": "b723e1a83873876a6f784902551476079d52697943b2b72997c5baa22750b94b", + "size_in_bytes": 13802 + }, + { + "_path": "Lib/site-packages/watchdog/observers/fsevents.py", + "path_type": "hardlink", + "sha256": "ea1a37b20050b7a86cabfd45e9e260b68af90a3655d3d4daa13d35c5e1cd81de", + "size_in_bytes": 14284 + }, + { + "_path": "Lib/site-packages/watchdog/observers/fsevents2.py", + "path_type": "hardlink", + "sha256": "7d9f0eef3a2696d060bee70306550764858a444167e0c281df44f98848ac3ec7", + "size_in_bytes": 9439 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify.py", + "path_type": "hardlink", + "sha256": "8b4ef900f1c8c0851d885adf7687296d8b1e754be1feedc0b4ba94ddbaa58051", + "size_in_bytes": 10649 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify_buffer.py", + "path_type": "hardlink", + "sha256": "5565ae95e15045a24bfd93348db7001a319d8f59195169948a00b85926cf9b24", + "size_in_bytes": 4434 + }, + { + "_path": "Lib/site-packages/watchdog/observers/inotify_c.py", + "path_type": "hardlink", + "sha256": "cace8dad511bc366cf650524cec858e651a57c3653e27cf9f159a7e00e3d7a65", + "size_in_bytes": 21129 + }, + { + "_path": "Lib/site-packages/watchdog/observers/kqueue.py", + "path_type": "hardlink", + "sha256": "1d8011cdd17f365bbbdaf4da2016c8be1e5efcded139ddf7543b5973501bda87", + "size_in_bytes": 24425 + }, + { + "_path": "Lib/site-packages/watchdog/observers/polling.py", + "path_type": "hardlink", + "sha256": "07c83212dce44621e64927fc75c63fd0ff81bb45398be55641a9c1a885714ecd", + "size_in_bytes": 4932 + }, + { + "_path": "Lib/site-packages/watchdog/observers/read_directory_changes.py", + "path_type": "hardlink", + "sha256": "98a1d921f528a42014d1a7bba04f53b6482093b2df4dbf25c2070c24798e5b91", + "size_in_bytes": 4167 + }, + { + "_path": "Lib/site-packages/watchdog/observers/winapi.py", + "path_type": "hardlink", + "sha256": "ab69d36762589dbb845220724dc4a6a5bc388a22a1b4d43a51083d0963c85316", + "size_in_bytes": 11635 + }, + { + "_path": "Lib/site-packages/watchdog/py.typed", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog/tricks/__init__.py", + "path_type": "hardlink", + "sha256": "ccb16965f5cdfc0de35e51f4d0e9344a96ed5b13f65b0c2cc46ef0d8f5e4c4ff", + "size_in_bytes": 9492 + }, + { + "_path": "Lib/site-packages/watchdog/tricks/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "c95225cb8882e0d45f9887c0fc0a57f1bee2174b1f7d077c1d9a90f1f6f6a062", + "size_in_bytes": 15349 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__init__.py", + "path_type": "hardlink", + "sha256": "f6aef01195bbca5f350dbd4270b050277df167662b1b0cb3b0ada0ccd082fa51", + "size_in_bytes": 3513 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/__init__.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "c3bd0f06459b82378a0793d2241abd92411609f0d7d246827a6ed15a6fa1c2fe", + "size_in_bytes": 6781 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/bricks.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "cacbf104f1ebc199f1df7bbc7d1ae53dcf4075854e65a8fa495cc46d3ef33d2b", + "size_in_bytes": 4088 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/delayed_queue.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "18355a132a603f67d2c43043e2f9f79537627628beaf1e8e141f6ad544a44022", + "size_in_bytes": 5299 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/dirsnapshot.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "bc77ec98ab6adb472e8c426c30f7540381e31c03948abcaa6b020eef568142d1", + "size_in_bytes": 24904 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/echo.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "15a1f40a24dcfe43956367c4845e50c1907fbe59e9293a40f7915139db9f04cd", + "size_in_bytes": 3605 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/event_debouncer.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "4c35e9b9bfdc6c389686370e45b8ad3bf08f7cd9eb702c5a2fa851cba546b162", + "size_in_bytes": 4013 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/patterns.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "32253c538432623dd8a3a33980de182525a351dd825b1ec9b8a89bdf08d1f0b3", + "size_in_bytes": 4610 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/platform.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "79949c3c2d87b85cd6323bab14ece025f821407ac51741036bf23fee75c4a9f1", + "size_in_bytes": 2421 + }, + { + "_path": "Lib/site-packages/watchdog/utils/__pycache__/process_watcher.cpython-314.pyc", + "path_type": "hardlink", + "sha256": "9567e2cd6d79e913bfeffd38aa668e7be2298bb841b70dd2522806caedbf92e1", + "size_in_bytes": 2263 + }, + { + "_path": "Lib/site-packages/watchdog/utils/bricks.py", + "path_type": "hardlink", + "sha256": "719080e13f5ed625afaf7c98e05386b8ecc8a5d3f8738361c748a97e0ca1067a", + "size_in_bytes": 2545 + }, + { + "_path": "Lib/site-packages/watchdog/utils/delayed_queue.py", + "path_type": "hardlink", + "sha256": "5eff91728d746fad95b782e72c4999c65a6bf7731e055d995fe536fbe9c74b90", + "size_in_bytes": 2615 + }, + { + "_path": "Lib/site-packages/watchdog/utils/dirsnapshot.py", + "path_type": "hardlink", + "sha256": "49a1a7c6ad268996f12d972925c48e8f9b04f2286e9ea8dbe7e9bcc30f45d5a0", + "size_in_bytes": 14740 + }, + { + "_path": "Lib/site-packages/watchdog/utils/echo.py", + "path_type": "hardlink", + "sha256": "1802e0528b7dcd75403313302cde429074487639a2a355f7be9a554b5e0ff9e3", + "size_in_bytes": 2210 + }, + { + "_path": "Lib/site-packages/watchdog/utils/event_debouncer.py", + "path_type": "hardlink", + "sha256": "a1589f76de743e33a25789fed16d4e64e08d3b88faf3d0514558021ab26f1f41", + "size_in_bytes": 2079 + }, + { + "_path": "Lib/site-packages/watchdog/utils/patterns.py", + "path_type": "hardlink", + "sha256": "7e3cbc87f5da52e464a21e3ab852efdfb2738239a62b6573b756556cc35ad1c1", + "size_in_bytes": 3672 + }, + { + "_path": "Lib/site-packages/watchdog/utils/platform.py", + "path_type": "hardlink", + "sha256": "552378e58da4034352d4dce59abe521c1e02b74c6a2b6291972f63971ec31d28", + "size_in_bytes": 885 + }, + { + "_path": "Lib/site-packages/watchdog/utils/process_watcher.py", + "path_type": "hardlink", + "sha256": "aa02ed1192e160b8e92fe1996b02048d5fa9fcf9cc91afe10461ffd6fc57fa09", + "size_in_bytes": 925 + }, + { + "_path": "Lib/site-packages/watchdog/version.py", + "path_type": "hardlink", + "sha256": "82ebd033bf7cdc2b99d92e76cc4b5d86c4bf764aa16d8de6a7e190bd53380d1d", + "size_in_bytes": 349 + }, + { + "_path": "Lib/site-packages/watchdog/watchmedo.py", + "path_type": "hardlink", + "sha256": "00c4d4a4d4a542602ac5fe4486d7ca2a1e5e6223d9a03620526d467fcc43dfe8", + "size_in_bytes": 25452 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/INSTALLER", + "path_type": "hardlink", + "sha256": "bc33022edcb7639ff53355b4e91dade50a0bbf0299efeb6171d1ec0ba5029cfc", + "size_in_bytes": 6 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/METADATA", + "path_type": "hardlink", + "sha256": "41318aafbbd2e4b5c4470ffbbc61eba50fc67792a4c84d3bee2ef53e69a4a14a", + "size_in_bytes": 45437 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/RECORD", + "path_type": "hardlink", + "sha256": "1cc2bc0613e131f84cc2b96190b0e905747fdbc51e3fa12db723d1fd02e32e29", + "size_in_bytes": 4703 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/REQUESTED", + "path_type": "hardlink", + "sha256": "e3b0c44298fc1c149afbf4c8996fb92427ae41e4649b934ca495991b7852b855", + "size_in_bytes": 0 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/WHEEL", + "path_type": "hardlink", + "sha256": "6027f0606398322e49870d9f538c8d83012bc9b6f6217e4f13004a57865b741a", + "size_in_bytes": 91 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/direct_url.json", + "path_type": "hardlink", + "sha256": "be815f3f0b55192d066105e2363986f9ff754ccda51da525bb5809326e8cca01", + "size_in_bytes": 84 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/entry_points.txt", + "path_type": "hardlink", + "sha256": "aadfce7b65396657f3ecb340dcf1e2a67dffd7395f453a7d764df04d2dc8bdbf", + "size_in_bytes": 66 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/AUTHORS", + "path_type": "hardlink", + "sha256": "253e0275f6117f5574320f516cd69a18ae8bc8ff69ced12c251e9b43e31f686f", + "size_in_bytes": 2928 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/COPYING", + "path_type": "hardlink", + "sha256": "39f081828db6f94c70123fa4fb30c1bce3e215a8fdece53a49991fe076a69c08", + "size_in_bytes": 703 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/licenses/LICENSE", + "path_type": "hardlink", + "sha256": "cfc7749b96f63bd31c3c42b5c471bf756814053e847c10f3eb003417bc523d30", + "size_in_bytes": 11358 + }, + { + "_path": "Lib/site-packages/watchdog-6.0.0.dist-info/top_level.txt", + "path_type": "hardlink", + "sha256": "395751ec690f1996a4a3cb11b55b8cd0d8acf99204971de17b784a14f6274c68", + "size_in_bytes": 9 + }, + { + "_path": "Scripts/watchmedo-script.py", + "path_type": "hardlink", + "sha256": "b0948e1f44056432a6d383ee7ae48e4dec4dae69cfd99cb9195483a2b20417a9", + "size_in_bytes": 196 + }, + { + "_path": "Scripts/watchmedo.exe", + "path_type": "hardlink", + "sha256": "28b001bb9a72ae7a24242bfab248d767a1ac5dec981c672a3944f7a072375e9a", + "size_in_bytes": 74752 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe-scripts-license.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..37f86184003c2b95ccdf45542a54b3629fb46a3f --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,26 @@ +BSD-3-Clause license +Copyright (c) 2015-2026, conda-forge contributors + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..999f920931eac447613a0c5f18535d6643dbddba --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/recipe.yaml @@ -0,0 +1,72 @@ +schema_version: 1 + +context: + version: 6.0.0 + +package: + name: watchdog + version: ${{ version }} + +source: + url: https://pypi.org/packages/source/w/watchdog/watchdog-${{ version }}.tar.gz + sha256: 9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282 + +build: + number: 3 + script: ${{ PYTHON }} -m pip install . --no-deps -vv + python: + entry_points: + - watchmedo = watchdog.watchmedo:main + +requirements: + build: + - if: build_platform != target_platform + then: python + - if: build_platform != target_platform + then: cross-python_${{ target_platform }} + - if: osx + then: ${{ compiler('c') }} + - if: osx + then: ${{ stdlib("c") }} + host: + - pip + - python + - setuptools + run: + - python + - pyyaml >=3.10 + +tests: + - python: + imports: + - watchdog + - watchdog.observers + - if: osx + then: watchdog.observers.fsevents + - watchdog.tricks + - watchdog.utils + - if: osx + then: _watchdog_fsevents + - requirements: + run: + - pip + script: + - python -m pip check + - watchmedo --help + +about: + license: Apache-2.0 + license_file: LICENSE + summary: Filesystem events monitoring + homepage: http://github.com/gorakhargosh/watchdog + repository: http://github.com/gorakhargosh/watchdog + documentation: http://pythonhosted.org/watchdog + +extra: + recipe-maintainers: + - goanpeca + - rlaverde + - ccordoba12 + - andfoy + - tschoonj + - xhochy diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/rendered_recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/rendered_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2501fbac209f8352ff450efdf4423a127b693664 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/rendered_recipe.yaml @@ -0,0 +1,531 @@ +recipe: + schema_version: 1 + context: + version: 6.0.0 + package: + name: watchdog + version: 6.0.0 + source: + - url: https://pypi.org/packages/source/w/watchdog/watchdog-6.0.0.tar.gz + sha256: 9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282 + build: + number: 3 + string: py314he37c773_3 + script: ${{ PYTHON }} -m pip install . --no-deps -vv + python: + entry_points: + - watchmedo = watchdog.watchmedo:main + requirements: + host: + - pip + - python + - setuptools + run: + - python + - pyyaml >=3.10 + tests: + - python: + imports: + - watchdog + - watchdog.observers + - watchdog.tricks + - watchdog.utils + - script: + - python -m pip check + - watchmedo --help + requirements: + run: + - pip + about: + homepage: http://github.com/gorakhargosh/watchdog + repository: http://github.com/gorakhargosh/watchdog + documentation: http://pythonhosted.org/watchdog + license: Apache-2.0 + license_file: + - LICENSE + summary: Filesystem events monitoring + extra: + recipe-maintainers: + - goanpeca + - rlaverde + - ccordoba12 + - andfoy + - tschoonj + - xhochy +build_configuration: + target_platform: win-64 + host_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v3 + build_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v3 + variant: + build_platform: win-64 + channel_sources: conda-forge + channel_targets: conda-forge main + python: 3.14.* *_cp314t + target_platform: win-64 + hash: + hash: e37c773 + prefix: py314 + directories: + host_prefix: D:\bld\bld\rattler-build_watchdog_1772608066\h_env + build_prefix: D:\bld\bld\rattler-build_watchdog_1772608066\build_env + work_dir: D:\bld\bld\rattler-build_watchdog_1772608066\work + build_dir: D:\bld\bld\rattler-build_watchdog_1772608066 + channels: + - https://conda.anaconda.org/conda-forge + channel_priority: strict + solve_strategy: highest + timestamp: 2026-03-04T07:07:46.218460300Z + subpackages: + watchdog: + name: watchdog + version: 6.0.0 + build_string: py314he37c773_3 + packaging_settings: + archive_type: conda + compression_level: 15 +finalized_dependencies: + build: null + host: + specs: + - source: pip + - variant: python + spec: python 3.14.* *_cp314t + - source: setuptools + resolved: + - build: pyh145f28c_0 + build_number: 0 + depends: + - python >=3.13.0a0 + license: MIT + license_family: MIT + md5: 09a970fbf75e8ed1aa633827ded6aa4f + name: pip + noarch: python + run_exports: {} + sha256: 5f66ea31d62188c266c5a8752119b0cc90a5bf05963f665cf48a33e0ec58d39c + size: 1180743 + subdir: noarch + timestamp: 1770270312477 + version: 26.0.1 + fn: pip-26.0.1-pyh145f28c_0.conda + url: https://conda.anaconda.org/conda-forge/noarch/pip-26.0.1-pyh145f28c_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h7c1dbca_1_cp314t + build_number: 1 + depends: + - bzip2 >=1.0.8,<2.0a0 + - libexpat >=2.7.3,<3.0a0 + - libffi >=3.5.2,<3.6.0a0 + - liblzma >=5.8.2,<6.0a0 + - libmpdec >=4.0.0,<5.0a0 + - libsqlite >=3.51.2,<4.0a0 + - libzlib >=1.3.1,<2.0a0 + - openssl >=3.5.5,<4.0a0 + - python_abi 3.14.* *_cp314t + - tk >=8.6.13,<8.7.0a0 + - tzdata + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - zstd >=1.5.7,<1.6.0a0 + license: Python-2.0 + md5: 7373f4b67e0ee81a8d86fb1100cc39a2 + name: python + python_site_packages_path: Lib/site-packages + run_exports: + weak: + - python_abi 3.14.* *_cp314t + noarch: + - python + sha256: 533a17961a8f0db3151d2556c6f2e7fbc357b3ce947b97bf2e3045073d0a41ea + size: 18336141 + subdir: win-64 + timestamp: 1770676329468 + version: 3.14.3 + fn: python-3.14.3-h7c1dbca_1_cp314t.conda + url: https://conda.anaconda.org/conda-forge/win-64/python-3.14.3-h7c1dbca_1_cp314t.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: 8_cp314t + build_number: 8 + constrains: + - python 3.14.* *_cp314t + depends: [] + license: BSD-3-Clause + license_family: BSD + md5: 3251796e09870c978e0f69fa05e38fb6 + name: python_abi + noarch: generic + run_exports: {} + sha256: d9ed2538fba61265a330ee1b1afe99a4bb23ace706172b9464546c7e01259d63 + size: 7020 + subdir: noarch + timestamp: 1752805919426 + version: '3.14' + fn: python_abi-3.14-8_cp314t.conda + url: https://conda.anaconda.org/conda-forge/noarch/python_abi-3.14-8_cp314t.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hf5d6505_0 + build_number: 0 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: blessing + md5: 903979414b47d777d548e5f0165e6cd8 + name: libsqlite + run_exports: + weak: + - libsqlite >=3.51.2,<4.0a0 + sha256: 756478128e3e104bd7e7c3ce6c1b0efad7e08c7320c69fdc726e039323c63fbb + size: 1291616 + subdir: win-64 + timestamp: 1768148278261 + version: 3.51.2 + fn: libsqlite-3.51.2-hf5d6505_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libsqlite-3.51.2-hf5d6505_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hfd05255_0 + build_number: 0 + constrains: + - xz 5.8.2.* + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: 0BSD + md5: ba0bfd4c3cf73f299ffe46ff0eaeb8e3 + name: liblzma + run_exports: + weak: + - liblzma >=5.8.2,<6.0a0 + sha256: f25bf293f550c8ed2e0c7145eb404324611cfccff37660869d97abf526eb957c + size: 106169 + subdir: win-64 + timestamp: 1768752763559 + version: 5.8.2 + fn: liblzma-5.8.2-hfd05255_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.2-hfd05255_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: pyh332efcf_0 + build_number: 0 + depends: + - python >=3.10 + license: MIT + license_family: MIT + md5: 1d00d46c634177fc8ede8b99d6089239 + name: setuptools + noarch: python + run_exports: {} + sha256: fd7201e38e38bf7f25818d624ca8da97b8998957ca9ae3fb7fdc9c17e6b25fcd + size: 637506 + subdir: noarch + timestamp: 1770634745653 + version: 82.0.0 + fn: setuptools-82.0.0-pyh332efcf_0.conda + url: https://conda.anaconda.org/conda-forge/noarch/setuptools-82.0.0-pyh332efcf_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h0ad9c76_9 + build_number: 9 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: bzip2-1.0.6 + license_family: BSD + md5: 4cb8e6b48f67de0b018719cdf1136306 + name: bzip2 + run_exports: + weak: + - bzip2 >=1.0.8,<2.0a0 + sha256: 76dfb71df5e8d1c4eded2dbb5ba15bb8fb2e2b0fe42d94145d5eed4c75c35902 + size: 56115 + subdir: win-64 + timestamp: 1771350256444 + version: 1.0.8 + fn: bzip2-1.0.8-h0ad9c76_9.conda + url: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h0ad9c76_9.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hac47afa_0 + build_number: 0 + constrains: + - expat 2.7.4.* + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + md5: 1c1ced969021592407f16ada4573586d + name: libexpat + run_exports: {} + sha256: b31f6fb629c4e17885aaf2082fb30384156d16b48b264e454de4a06a313b533d + size: 70323 + subdir: win-64 + timestamp: 1771259521393 + version: 2.7.4 + fn: libexpat-2.7.4-hac47afa_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.7.4-hac47afa_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h3d046cb_0 + build_number: 0 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + md5: 720b39f5ec0610457b725eb3f396219a + name: libffi + run_exports: + weak: + - libffi >=3.5.2,<3.6.0a0 + sha256: 59d01f2dfa8b77491b5888a5ab88ff4e1574c9359f7e229da254cdfe27ddc190 + size: 45831 + subdir: win-64 + timestamp: 1769456418774 + version: 3.5.2 + fn: libffi-3.5.2-h3d046cb_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libffi-3.5.2-h3d046cb_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hfd05255_1 + build_number: 1 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-2-Clause + license_family: BSD + md5: e4a9fc2bba3b022dad998c78856afe47 + name: libmpdec + run_exports: {} + sha256: 40dcd0b9522a6e0af72a9db0ced619176e7cfdb114855c7a64f278e73f8a7514 + size: 89411 + subdir: win-64 + timestamp: 1769482314283 + version: 4.0.0 + fn: libmpdec-4.0.0-hfd05255_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/libmpdec-4.0.0-hfd05255_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_2 + build_number: 2 + constrains: + - zlib 1.3.1 *_2 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: Zlib + license_family: Other + md5: 41fbfac52c601159df6c01f875de31b9 + name: libzlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: ba945c6493449bed0e6e29883c4943817f7c79cbff52b83360f7b341277c6402 + size: 55476 + subdir: win-64 + timestamp: 1727963768015 + version: 1.3.1 + fn: libzlib-1.3.1-h2466b09_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.1-h2466b09_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hf411b9b_1 + build_number: 1 + depends: + - ca-certificates + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: Apache + md5: eb585509b815415bc964b2c7e11c7eb3 + name: openssl + run_exports: + weak: + - openssl >=3.6.1,<4.0a0 + sha256: 53a5ad2e5553b8157a91bb8aa375f78c5958f77cb80e9d2ce59471ea8e5c0bd6 + size: 9343023 + subdir: win-64 + timestamp: 1769557547888 + version: 3.6.1 + fn: openssl-3.6.1-hf411b9b_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/openssl-3.6.1-hf411b9b_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h6ed50ae_3 + build_number: 3 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: TCL + license_family: BSD + md5: 0481bfd9814bf525bd4b3ee4b51494c4 + name: tk + run_exports: + weak: + - tk >=8.6.13,<8.7.0a0 + sha256: 0e79810fae28f3b69fe7391b0d43f5474d6bd91d451d5f2bde02f55ae481d5e3 + size: 3526350 + subdir: win-64 + timestamp: 1769460339384 + version: 8.6.13 + fn: tk-8.6.13-h6ed50ae_3.conda + url: https://conda.anaconda.org/conda-forge/win-64/tk-8.6.13-h6ed50ae_3.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hc9c84f9_1 + build_number: 1 + depends: [] + license: LicenseRef-Public-Domain + md5: ad659d0a2b3e47e38d829aa8cad2d610 + name: tzdata + noarch: generic + run_exports: {} + sha256: 1d30098909076af33a35017eed6f2953af1c769e273a0626a04722ac4acaba3c + size: 119135 + subdir: noarch + timestamp: 1767016325805 + version: 2025c + fn: tzdata-2025c-hc9c84f9_1.conda + url: https://conda.anaconda.org/conda-forge/noarch/tzdata-2025c-hc9c84f9_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h57928b3_0 + build_number: 0 + constrains: + - vc14_runtime >=14.29.30037 + - vs2015_runtime >=14.29.30037 + depends: [] + license: LicenseRef-MicrosoftWindowsSDK10 + md5: 71b24316859acd00bdb8b38f5e2ce328 + name: ucrt + run_exports: {} + sha256: 3005729dce6f3d3f5ec91dfc49fc75a0095f9cd23bab49efb899657297ac91a5 + size: 694692 + subdir: win-64 + timestamp: 1756385147981 + version: 10.0.26100.0 + fn: ucrt-10.0.26100.0-h57928b3_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h41ae7f8_34 + build_number: 34 + depends: + - vc14_runtime >=14.44.35208 + license: BSD-3-Clause + license_family: BSD + md5: 1e610f2416b6acdd231c5f573d754a0f + name: vc + run_exports: {} + sha256: 9dc40c2610a6e6727d635c62cced5ef30b7b30123f5ef67d6139e23d21744b3a + size: 19356 + subdir: win-64 + timestamp: 1767320221521 + track_features: vc14 + version: '14.3' + fn: vc-14.3-h41ae7f8_34.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h41ae7f8_34.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_34 + build_number: 34 + constrains: + - vs2015_runtime 14.44.35208.* *_34 + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.44.35208 h818238b_34 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 37eb311485d2d8b2c419449582046a42 + name: vc14_runtime + run_exports: {} + sha256: 02732f953292cce179de9b633e74928037fa3741eb5ef91c3f8bae4f761d32a5 + size: 683233 + subdir: win-64 + timestamp: 1767320219644 + version: 14.44.35208 + fn: vc14_runtime-14.44.35208-h818238b_34.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_34.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_34 + build_number: 34 + constrains: + - vs2015_runtime 14.44.35208.* *_34 + depends: + - ucrt >=10.0.20348.0 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 242d9f25d2ae60c76b38a5e42858e51d + name: vcomp14 + run_exports: + strong: + - vcomp14 >=14.44.35208 + sha256: 878d5d10318b119bd98ed3ed874bd467acbe21996e1d81597a1dbf8030ea0ce6 + size: 115235 + subdir: win-64 + timestamp: 1767320173250 + version: 14.44.35208 + fn: vcomp14-14.44.35208-h818238b_34.conda + url: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.44.35208-h818238b_34.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h534d264_6 + build_number: 6 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - libzlib >=1.3.1,<2.0a0 + license: BSD-3-Clause + license_family: BSD + md5: 053b84beec00b71ea8ff7a4f84b55207 + name: zstd + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + sha256: 368d8628424966fd8f9c8018326a9c779e06913dd39e646cf331226acc90e5b2 + size: 388453 + subdir: win-64 + timestamp: 1764777142545 + version: 1.5.7 + fn: zstd-1.5.7-h534d264_6.conda + url: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h4c7d964_0 + build_number: 0 + depends: + - __win + license: ISC + md5: f001e6e220355b7f87403a4d0e5bf1ca + name: ca-certificates + noarch: generic + run_exports: {} + sha256: 37950019c59b99585cee5d30dbc2cc9696ed4e11f5742606a4db1621ed8f94d6 + size: 147734 + subdir: noarch + timestamp: 1772006322223 + version: 2026.2.25 + fn: ca-certificates-2026.2.25-h4c7d964_0.conda + url: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2026.2.25-h4c7d964_0.conda + channel: https://conda.anaconda.org/conda-forge/ + run: + depends: + - source: python + - source: pyyaml >=3.10 + - spec: python_abi 3.14.* *_cp314t + from: host + run_export: python + constraints: [] +finalized_sources: +- url: https://pypi.org/packages/source/w/watchdog/watchdog-6.0.0.tar.gz + sha256: 9ddf7c82fda3ae8e24decda1338ede66e1c99883db93711d8fb941eaa2d8c282 +system_tools: + rattler-build: 0.58.4 +extra_meta: + flow_run_id: azure_20260304.1.1 + remote_url: https://github.com/conda-forge/watchdog-feedstock + sha: 612f795087c956b7e06a05cbfc96126f1510e425 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/variant_config.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/variant_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..94eb41bf931223be979db1a7b22d4b29d51496c9 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/recipe/variant_config.yaml @@ -0,0 +1,5 @@ +build_platform: win-64 +channel_sources: conda-forge +channel_targets: conda-forge main +python: 3.14.* *_cp314t +target_platform: win-64 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/repodata_record.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..8a82ba47f3136ecd99e70dd5c6074a8837eb9ecb --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "py314he37c773_3", + "build_number": 3, + "build_string": "py314he37c773_3", + "channel": "conda-forge", + "constrains": [], + "depends": [ + "python", + "pyyaml >=3.10", + "python_abi 3.14.* *_cp314t" + ], + "fn": "watchdog-6.0.0-py314he37c773_3.conda", + "license": "Apache-2.0", + "md5": "1ae4129568d766bb19726619aac7bbe3", + "name": "watchdog", + "platform": "win", + "sha256": "1e3c9f1f760271074ebd4801c6f60b2146b2cbfbe1a05b3014f4ca5b2b4e5c4f", + "size": 203748, + "subdir": "win-64", + "timestamp": 1772608066, + "url": "https://conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3.conda", + "version": "6.0.0" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/tests/tests.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/tests/tests.yaml new file mode 100644 index 0000000000000000000000000000000000000000..32663844cd4256a46a19050522e5b4a0f94e7ea2 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/watchdog-6.0.0-py314he37c773_3/info/tests/tests.yaml @@ -0,0 +1,15 @@ +- python: + imports: + - watchdog + - watchdog.observers + - watchdog.tricks + - watchdog.utils +- script: + content: |- + python -m pip check + if %errorlevel% neq 0 exit /b %errorlevel% + watchmedo --help + if %errorlevel% neq 0 exit /b %errorlevel% + requirements: + run: + - pip diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda new file mode 100644 index 0000000000000000000000000000000000000000..0d14e20334afd8f2f2f69423fda2746e3955c574 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfig.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfig.cmake new file mode 100644 index 0000000000000000000000000000000000000000..51fe07cff87c2cb5cccb9c8bd4428a4e92a9d53d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfig.cmake @@ -0,0 +1,30 @@ +# Config file for the yaml library. +# +# It defines the following variables: +# yaml_LIBRARIES - libraries to link against + + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was yamlConfig.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +#################################################################################### + +set_and_check(yaml_TARGETS "${PACKAGE_PREFIX_DIR}/cmake/yamlTargets.cmake") + +if(NOT yaml_TARGETS_IMPORTED) + set(yaml_TARGETS_IMPORTED 1) + include(${yaml_TARGETS}) +endif() + +set(yaml_LIBRARIES yaml) + diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfigVersion.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfigVersion.cmake new file mode 100644 index 0000000000000000000000000000000000000000..5eb8da990d88002479e7ab8430c80cc2bba52b93 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlConfigVersion.cmake @@ -0,0 +1,43 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version. +# The variable CVF_VERSION must be set before calling configure_file(). + +set(PACKAGE_VERSION "0.2.5") + +if (PACKAGE_FIND_VERSION_RANGE) + # Package version must be in the requested version range + if ((PACKAGE_FIND_VERSION_RANGE_MIN STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MIN) + OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_GREATER PACKAGE_FIND_VERSION_MAX) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_GREATER_EQUAL PACKAGE_FIND_VERSION_MAX))) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + endif() +else() + if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + else() + set(PACKAGE_VERSION_COMPATIBLE TRUE) + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() + endif() +endif() + + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets-release.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets-release.cmake new file mode 100644 index 0000000000000000000000000000000000000000..bfcc015799b002b93a3eab33d1288a8ac8d996fa --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets-release.cmake @@ -0,0 +1,19 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Release". +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Import target "yaml" for configuration "Release" +set_property(TARGET yaml APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) +set_target_properties(yaml PROPERTIES + IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/yaml.lib" + IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/yaml.dll" + ) + +list(APPEND _cmake_import_check_targets yaml ) +list(APPEND _cmake_import_check_files_for_yaml "${_IMPORT_PREFIX}/lib/yaml.lib" "${_IMPORT_PREFIX}/bin/yaml.dll" ) + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets.cmake new file mode 100644 index 0000000000000000000000000000000000000000..22a79814520939ba3709f11f60468fab3d5c4408 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/cmake/yamlTargets.cmake @@ -0,0 +1,105 @@ +# Generated by CMake + +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8) + message(FATAL_ERROR "CMake >= 2.8.3 required") +endif() +if(CMAKE_VERSION VERSION_LESS "2.8.3") + message(FATAL_ERROR "CMake >= 2.8.3 required") +endif() +cmake_policy(PUSH) +cmake_policy(VERSION 2.8.3...3.29) +#---------------------------------------------------------------- +# Generated CMake target import file. +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Protect against multiple inclusion, which would fail when already imported targets are added once more. +set(_cmake_targets_defined "") +set(_cmake_targets_not_defined "") +set(_cmake_expected_targets "") +foreach(_cmake_expected_target IN ITEMS yaml) + list(APPEND _cmake_expected_targets "${_cmake_expected_target}") + if(TARGET "${_cmake_expected_target}") + list(APPEND _cmake_targets_defined "${_cmake_expected_target}") + else() + list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}") + endif() +endforeach() +unset(_cmake_expected_target) +if(_cmake_targets_defined STREQUAL _cmake_expected_targets) + unset(_cmake_targets_defined) + unset(_cmake_targets_not_defined) + unset(_cmake_expected_targets) + unset(CMAKE_IMPORT_FILE_VERSION) + cmake_policy(POP) + return() +endif() +if(NOT _cmake_targets_defined STREQUAL "") + string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}") + string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}") + message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n") +endif() +unset(_cmake_targets_defined) +unset(_cmake_targets_not_defined) +unset(_cmake_expected_targets) + + +# Compute the installation prefix relative to this file. +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if(_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +# Create imported target yaml +add_library(yaml SHARED IMPORTED) + +set_target_properties(yaml PROPERTIES + INTERFACE_COMPILE_DEFINITIONS "\$<\$>:YAML_DECLARE_STATIC>;\$<\$:_CRT_SECURE_NO_WARNINGS>" + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" +) + +# Load information for each installed configuration. +file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/yamlTargets-*.cmake") +foreach(_cmake_config_file IN LISTS _cmake_config_files) + include("${_cmake_config_file}") +endforeach() +unset(_cmake_config_file) +unset(_cmake_config_files) + +# Cleanup temporary variables. +set(_IMPORT_PREFIX) + +# Loop over all imported files and verify that they actually exist +foreach(_cmake_target IN LISTS _cmake_import_check_targets) + if(CMAKE_VERSION VERSION_LESS "3.28" + OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target} + OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}") + foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}") + if(NOT EXISTS "${_cmake_file}") + message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file + \"${_cmake_file}\" +but this file does not exist. Possible reasons include: +* The file was deleted, renamed, or moved to another location. +* An install or uninstall procedure did not complete successfully. +* The installation package was faulty and contained + \"${CMAKE_CURRENT_LIST_FILE}\" +but not all the files it references. +") + endif() + endforeach() + endif() + unset(_cmake_file) + unset("_cmake_import_check_files_for_${_cmake_target}") +endforeach() +unset(_cmake_target) +unset(_cmake_import_check_targets) + +# This file does not depend on other imported targets which have +# been exported from the same project but in a separate export set. + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) +cmake_policy(POP) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/include/yaml.h b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/include/yaml.h new file mode 100644 index 0000000000000000000000000000000000000000..89050e4f7dc60c6f9fd606b849d1096d503d4991 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/include/yaml.h @@ -0,0 +1,1985 @@ +/** + * @file yaml.h + * @brief Public interface for libyaml. + * + * Include the header file with the code: + * @code + * #include + * @endcode + */ + +#ifndef YAML_H +#define YAML_H + +#ifdef __cplusplus +extern "C" { +#endif + +#include +#include +#include + +/** + * @defgroup export Export Definitions + * @{ + */ + +/** The public API declaration. */ + +#if defined(__MINGW32__) +# define YAML_DECLARE(type) type +#elif defined(_WIN32) +# if defined(YAML_DECLARE_STATIC) +# define YAML_DECLARE(type) type +# elif defined(YAML_DECLARE_EXPORT) +# define YAML_DECLARE(type) __declspec(dllexport) type +# else +# define YAML_DECLARE(type) __declspec(dllimport) type +# endif +#else +# define YAML_DECLARE(type) type +#endif + +/** @} */ + +/** + * @defgroup version Version Information + * @{ + */ + +/** + * Get the library version as a string. + * + * @returns The function returns the pointer to a static string of the form + * @c "X.Y.Z", where @c X is the major version number, @c Y is a minor version + * number, and @c Z is the patch version number. + */ + +YAML_DECLARE(const char *) +yaml_get_version_string(void); + +/** + * Get the library version numbers. + * + * @param[out] major Major version number. + * @param[out] minor Minor version number. + * @param[out] patch Patch version number. + */ + +YAML_DECLARE(void) +yaml_get_version(int *major, int *minor, int *patch); + +/** @} */ + +/** + * @defgroup basic Basic Types + * @{ + */ + +/** The character type (UTF-8 octet). */ +typedef unsigned char yaml_char_t; + +/** The version directive data. */ +typedef struct yaml_version_directive_s { + /** The major version number. */ + int major; + /** The minor version number. */ + int minor; +} yaml_version_directive_t; + +/** The tag directive data. */ +typedef struct yaml_tag_directive_s { + /** The tag handle. */ + yaml_char_t *handle; + /** The tag prefix. */ + yaml_char_t *prefix; +} yaml_tag_directive_t; + +/** The stream encoding. */ +typedef enum yaml_encoding_e { + /** Let the parser choose the encoding. */ + YAML_ANY_ENCODING, + /** The default UTF-8 encoding. */ + YAML_UTF8_ENCODING, + /** The UTF-16-LE encoding with BOM. */ + YAML_UTF16LE_ENCODING, + /** The UTF-16-BE encoding with BOM. */ + YAML_UTF16BE_ENCODING +} yaml_encoding_t; + +/** Line break types. */ + +typedef enum yaml_break_e { + /** Let the parser choose the break type. */ + YAML_ANY_BREAK, + /** Use CR for line breaks (Mac style). */ + YAML_CR_BREAK, + /** Use LN for line breaks (Unix style). */ + YAML_LN_BREAK, + /** Use CR LN for line breaks (DOS style). */ + YAML_CRLN_BREAK +} yaml_break_t; + +/** Many bad things could happen with the parser and emitter. */ +typedef enum yaml_error_type_e { + /** No error is produced. */ + YAML_NO_ERROR, + + /** Cannot allocate or reallocate a block of memory. */ + YAML_MEMORY_ERROR, + + /** Cannot read or decode the input stream. */ + YAML_READER_ERROR, + /** Cannot scan the input stream. */ + YAML_SCANNER_ERROR, + /** Cannot parse the input stream. */ + YAML_PARSER_ERROR, + /** Cannot compose a YAML document. */ + YAML_COMPOSER_ERROR, + + /** Cannot write to the output stream. */ + YAML_WRITER_ERROR, + /** Cannot emit a YAML stream. */ + YAML_EMITTER_ERROR +} yaml_error_type_t; + +/** The pointer position. */ +typedef struct yaml_mark_s { + /** The position index. */ + size_t index; + + /** The position line. */ + size_t line; + + /** The position column. */ + size_t column; +} yaml_mark_t; + +/** @} */ + +/** + * @defgroup styles Node Styles + * @{ + */ + +/** Scalar styles. */ +typedef enum yaml_scalar_style_e { + /** Let the emitter choose the style. */ + YAML_ANY_SCALAR_STYLE, + + /** The plain scalar style. */ + YAML_PLAIN_SCALAR_STYLE, + + /** The single-quoted scalar style. */ + YAML_SINGLE_QUOTED_SCALAR_STYLE, + /** The double-quoted scalar style. */ + YAML_DOUBLE_QUOTED_SCALAR_STYLE, + + /** The literal scalar style. */ + YAML_LITERAL_SCALAR_STYLE, + /** The folded scalar style. */ + YAML_FOLDED_SCALAR_STYLE +} yaml_scalar_style_t; + +/** Sequence styles. */ +typedef enum yaml_sequence_style_e { + /** Let the emitter choose the style. */ + YAML_ANY_SEQUENCE_STYLE, + + /** The block sequence style. */ + YAML_BLOCK_SEQUENCE_STYLE, + /** The flow sequence style. */ + YAML_FLOW_SEQUENCE_STYLE +} yaml_sequence_style_t; + +/** Mapping styles. */ +typedef enum yaml_mapping_style_e { + /** Let the emitter choose the style. */ + YAML_ANY_MAPPING_STYLE, + + /** The block mapping style. */ + YAML_BLOCK_MAPPING_STYLE, + /** The flow mapping style. */ + YAML_FLOW_MAPPING_STYLE +/* YAML_FLOW_SET_MAPPING_STYLE */ +} yaml_mapping_style_t; + +/** @} */ + +/** + * @defgroup tokens Tokens + * @{ + */ + +/** Token types. */ +typedef enum yaml_token_type_e { + /** An empty token. */ + YAML_NO_TOKEN, + + /** A STREAM-START token. */ + YAML_STREAM_START_TOKEN, + /** A STREAM-END token. */ + YAML_STREAM_END_TOKEN, + + /** A VERSION-DIRECTIVE token. */ + YAML_VERSION_DIRECTIVE_TOKEN, + /** A TAG-DIRECTIVE token. */ + YAML_TAG_DIRECTIVE_TOKEN, + /** A DOCUMENT-START token. */ + YAML_DOCUMENT_START_TOKEN, + /** A DOCUMENT-END token. */ + YAML_DOCUMENT_END_TOKEN, + + /** A BLOCK-SEQUENCE-START token. */ + YAML_BLOCK_SEQUENCE_START_TOKEN, + /** A BLOCK-MAPPING-START token. */ + YAML_BLOCK_MAPPING_START_TOKEN, + /** A BLOCK-END token. */ + YAML_BLOCK_END_TOKEN, + + /** A FLOW-SEQUENCE-START token. */ + YAML_FLOW_SEQUENCE_START_TOKEN, + /** A FLOW-SEQUENCE-END token. */ + YAML_FLOW_SEQUENCE_END_TOKEN, + /** A FLOW-MAPPING-START token. */ + YAML_FLOW_MAPPING_START_TOKEN, + /** A FLOW-MAPPING-END token. */ + YAML_FLOW_MAPPING_END_TOKEN, + + /** A BLOCK-ENTRY token. */ + YAML_BLOCK_ENTRY_TOKEN, + /** A FLOW-ENTRY token. */ + YAML_FLOW_ENTRY_TOKEN, + /** A KEY token. */ + YAML_KEY_TOKEN, + /** A VALUE token. */ + YAML_VALUE_TOKEN, + + /** An ALIAS token. */ + YAML_ALIAS_TOKEN, + /** An ANCHOR token. */ + YAML_ANCHOR_TOKEN, + /** A TAG token. */ + YAML_TAG_TOKEN, + /** A SCALAR token. */ + YAML_SCALAR_TOKEN +} yaml_token_type_t; + +/** The token structure. */ +typedef struct yaml_token_s { + + /** The token type. */ + yaml_token_type_t type; + + /** The token data. */ + union { + + /** The stream start (for @c YAML_STREAM_START_TOKEN). */ + struct { + /** The stream encoding. */ + yaml_encoding_t encoding; + } stream_start; + + /** The alias (for @c YAML_ALIAS_TOKEN). */ + struct { + /** The alias value. */ + yaml_char_t *value; + } alias; + + /** The anchor (for @c YAML_ANCHOR_TOKEN). */ + struct { + /** The anchor value. */ + yaml_char_t *value; + } anchor; + + /** The tag (for @c YAML_TAG_TOKEN). */ + struct { + /** The tag handle. */ + yaml_char_t *handle; + /** The tag suffix. */ + yaml_char_t *suffix; + } tag; + + /** The scalar value (for @c YAML_SCALAR_TOKEN). */ + struct { + /** The scalar value. */ + yaml_char_t *value; + /** The length of the scalar value. */ + size_t length; + /** The scalar style. */ + yaml_scalar_style_t style; + } scalar; + + /** The version directive (for @c YAML_VERSION_DIRECTIVE_TOKEN). */ + struct { + /** The major version number. */ + int major; + /** The minor version number. */ + int minor; + } version_directive; + + /** The tag directive (for @c YAML_TAG_DIRECTIVE_TOKEN). */ + struct { + /** The tag handle. */ + yaml_char_t *handle; + /** The tag prefix. */ + yaml_char_t *prefix; + } tag_directive; + + } data; + + /** The beginning of the token. */ + yaml_mark_t start_mark; + /** The end of the token. */ + yaml_mark_t end_mark; + +} yaml_token_t; + +/** + * Free any memory allocated for a token object. + * + * @param[in,out] token A token object. + */ + +YAML_DECLARE(void) +yaml_token_delete(yaml_token_t *token); + +/** @} */ + +/** + * @defgroup events Events + * @{ + */ + +/** Event types. */ +typedef enum yaml_event_type_e { + /** An empty event. */ + YAML_NO_EVENT, + + /** A STREAM-START event. */ + YAML_STREAM_START_EVENT, + /** A STREAM-END event. */ + YAML_STREAM_END_EVENT, + + /** A DOCUMENT-START event. */ + YAML_DOCUMENT_START_EVENT, + /** A DOCUMENT-END event. */ + YAML_DOCUMENT_END_EVENT, + + /** An ALIAS event. */ + YAML_ALIAS_EVENT, + /** A SCALAR event. */ + YAML_SCALAR_EVENT, + + /** A SEQUENCE-START event. */ + YAML_SEQUENCE_START_EVENT, + /** A SEQUENCE-END event. */ + YAML_SEQUENCE_END_EVENT, + + /** A MAPPING-START event. */ + YAML_MAPPING_START_EVENT, + /** A MAPPING-END event. */ + YAML_MAPPING_END_EVENT +} yaml_event_type_t; + +/** The event structure. */ +typedef struct yaml_event_s { + + /** The event type. */ + yaml_event_type_t type; + + /** The event data. */ + union { + + /** The stream parameters (for @c YAML_STREAM_START_EVENT). */ + struct { + /** The document encoding. */ + yaml_encoding_t encoding; + } stream_start; + + /** The document parameters (for @c YAML_DOCUMENT_START_EVENT). */ + struct { + /** The version directive. */ + yaml_version_directive_t *version_directive; + + /** The list of tag directives. */ + struct { + /** The beginning of the tag directives list. */ + yaml_tag_directive_t *start; + /** The end of the tag directives list. */ + yaml_tag_directive_t *end; + } tag_directives; + + /** Is the document indicator implicit? */ + int implicit; + } document_start; + + /** The document end parameters (for @c YAML_DOCUMENT_END_EVENT). */ + struct { + /** Is the document end indicator implicit? */ + int implicit; + } document_end; + + /** The alias parameters (for @c YAML_ALIAS_EVENT). */ + struct { + /** The anchor. */ + yaml_char_t *anchor; + } alias; + + /** The scalar parameters (for @c YAML_SCALAR_EVENT). */ + struct { + /** The anchor. */ + yaml_char_t *anchor; + /** The tag. */ + yaml_char_t *tag; + /** The scalar value. */ + yaml_char_t *value; + /** The length of the scalar value. */ + size_t length; + /** Is the tag optional for the plain style? */ + int plain_implicit; + /** Is the tag optional for any non-plain style? */ + int quoted_implicit; + /** The scalar style. */ + yaml_scalar_style_t style; + } scalar; + + /** The sequence parameters (for @c YAML_SEQUENCE_START_EVENT). */ + struct { + /** The anchor. */ + yaml_char_t *anchor; + /** The tag. */ + yaml_char_t *tag; + /** Is the tag optional? */ + int implicit; + /** The sequence style. */ + yaml_sequence_style_t style; + } sequence_start; + + /** The mapping parameters (for @c YAML_MAPPING_START_EVENT). */ + struct { + /** The anchor. */ + yaml_char_t *anchor; + /** The tag. */ + yaml_char_t *tag; + /** Is the tag optional? */ + int implicit; + /** The mapping style. */ + yaml_mapping_style_t style; + } mapping_start; + + } data; + + /** The beginning of the event. */ + yaml_mark_t start_mark; + /** The end of the event. */ + yaml_mark_t end_mark; + +} yaml_event_t; + +/** + * Create the STREAM-START event. + * + * @param[out] event An empty event object. + * @param[in] encoding The stream encoding. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_stream_start_event_initialize(yaml_event_t *event, + yaml_encoding_t encoding); + +/** + * Create the STREAM-END event. + * + * @param[out] event An empty event object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_stream_end_event_initialize(yaml_event_t *event); + +/** + * Create the DOCUMENT-START event. + * + * The @a implicit argument is considered as a stylistic parameter and may be + * ignored by the emitter. + * + * @param[out] event An empty event object. + * @param[in] version_directive The %YAML directive value or + * @c NULL. + * @param[in] tag_directives_start The beginning of the %TAG + * directives list. + * @param[in] tag_directives_end The end of the %TAG directives + * list. + * @param[in] implicit If the document start indicator is + * implicit. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_start_event_initialize(yaml_event_t *event, + yaml_version_directive_t *version_directive, + yaml_tag_directive_t *tag_directives_start, + yaml_tag_directive_t *tag_directives_end, + int implicit); + +/** + * Create the DOCUMENT-END event. + * + * The @a implicit argument is considered as a stylistic parameter and may be + * ignored by the emitter. + * + * @param[out] event An empty event object. + * @param[in] implicit If the document end indicator is implicit. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_end_event_initialize(yaml_event_t *event, int implicit); + +/** + * Create an ALIAS event. + * + * @param[out] event An empty event object. + * @param[in] anchor The anchor value. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_alias_event_initialize(yaml_event_t *event, const yaml_char_t *anchor); + +/** + * Create a SCALAR event. + * + * The @a style argument may be ignored by the emitter. + * + * Either the @a tag attribute or one of the @a plain_implicit and + * @a quoted_implicit flags must be set. + * + * @param[out] event An empty event object. + * @param[in] anchor The scalar anchor or @c NULL. + * @param[in] tag The scalar tag or @c NULL. + * @param[in] value The scalar value. + * @param[in] length The length of the scalar value. + * @param[in] plain_implicit If the tag may be omitted for the plain + * style. + * @param[in] quoted_implicit If the tag may be omitted for any + * non-plain style. + * @param[in] style The scalar style. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_scalar_event_initialize(yaml_event_t *event, + const yaml_char_t *anchor, const yaml_char_t *tag, + const yaml_char_t *value, int length, + int plain_implicit, int quoted_implicit, + yaml_scalar_style_t style); + +/** + * Create a SEQUENCE-START event. + * + * The @a style argument may be ignored by the emitter. + * + * Either the @a tag attribute or the @a implicit flag must be set. + * + * @param[out] event An empty event object. + * @param[in] anchor The sequence anchor or @c NULL. + * @param[in] tag The sequence tag or @c NULL. + * @param[in] implicit If the tag may be omitted. + * @param[in] style The sequence style. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_sequence_start_event_initialize(yaml_event_t *event, + const yaml_char_t *anchor, const yaml_char_t *tag, int implicit, + yaml_sequence_style_t style); + +/** + * Create a SEQUENCE-END event. + * + * @param[out] event An empty event object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_sequence_end_event_initialize(yaml_event_t *event); + +/** + * Create a MAPPING-START event. + * + * The @a style argument may be ignored by the emitter. + * + * Either the @a tag attribute or the @a implicit flag must be set. + * + * @param[out] event An empty event object. + * @param[in] anchor The mapping anchor or @c NULL. + * @param[in] tag The mapping tag or @c NULL. + * @param[in] implicit If the tag may be omitted. + * @param[in] style The mapping style. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_mapping_start_event_initialize(yaml_event_t *event, + const yaml_char_t *anchor, const yaml_char_t *tag, int implicit, + yaml_mapping_style_t style); + +/** + * Create a MAPPING-END event. + * + * @param[out] event An empty event object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_mapping_end_event_initialize(yaml_event_t *event); + +/** + * Free any memory allocated for an event object. + * + * @param[in,out] event An event object. + */ + +YAML_DECLARE(void) +yaml_event_delete(yaml_event_t *event); + +/** @} */ + +/** + * @defgroup nodes Nodes + * @{ + */ + +/** The tag @c !!null with the only possible value: @c null. */ +#define YAML_NULL_TAG "tag:yaml.org,2002:null" +/** The tag @c !!bool with the values: @c true and @c false. */ +#define YAML_BOOL_TAG "tag:yaml.org,2002:bool" +/** The tag @c !!str for string values. */ +#define YAML_STR_TAG "tag:yaml.org,2002:str" +/** The tag @c !!int for integer values. */ +#define YAML_INT_TAG "tag:yaml.org,2002:int" +/** The tag @c !!float for float values. */ +#define YAML_FLOAT_TAG "tag:yaml.org,2002:float" +/** The tag @c !!timestamp for date and time values. */ +#define YAML_TIMESTAMP_TAG "tag:yaml.org,2002:timestamp" + +/** The tag @c !!seq is used to denote sequences. */ +#define YAML_SEQ_TAG "tag:yaml.org,2002:seq" +/** The tag @c !!map is used to denote mapping. */ +#define YAML_MAP_TAG "tag:yaml.org,2002:map" + +/** The default scalar tag is @c !!str. */ +#define YAML_DEFAULT_SCALAR_TAG YAML_STR_TAG +/** The default sequence tag is @c !!seq. */ +#define YAML_DEFAULT_SEQUENCE_TAG YAML_SEQ_TAG +/** The default mapping tag is @c !!map. */ +#define YAML_DEFAULT_MAPPING_TAG YAML_MAP_TAG + +/** Node types. */ +typedef enum yaml_node_type_e { + /** An empty node. */ + YAML_NO_NODE, + + /** A scalar node. */ + YAML_SCALAR_NODE, + /** A sequence node. */ + YAML_SEQUENCE_NODE, + /** A mapping node. */ + YAML_MAPPING_NODE +} yaml_node_type_t; + +/** The forward definition of a document node structure. */ +typedef struct yaml_node_s yaml_node_t; + +/** An element of a sequence node. */ +typedef int yaml_node_item_t; + +/** An element of a mapping node. */ +typedef struct yaml_node_pair_s { + /** The key of the element. */ + int key; + /** The value of the element. */ + int value; +} yaml_node_pair_t; + +/** The node structure. */ +struct yaml_node_s { + + /** The node type. */ + yaml_node_type_t type; + + /** The node tag. */ + yaml_char_t *tag; + + /** The node data. */ + union { + + /** The scalar parameters (for @c YAML_SCALAR_NODE). */ + struct { + /** The scalar value. */ + yaml_char_t *value; + /** The length of the scalar value. */ + size_t length; + /** The scalar style. */ + yaml_scalar_style_t style; + } scalar; + + /** The sequence parameters (for @c YAML_SEQUENCE_NODE). */ + struct { + /** The stack of sequence items. */ + struct { + /** The beginning of the stack. */ + yaml_node_item_t *start; + /** The end of the stack. */ + yaml_node_item_t *end; + /** The top of the stack. */ + yaml_node_item_t *top; + } items; + /** The sequence style. */ + yaml_sequence_style_t style; + } sequence; + + /** The mapping parameters (for @c YAML_MAPPING_NODE). */ + struct { + /** The stack of mapping pairs (key, value). */ + struct { + /** The beginning of the stack. */ + yaml_node_pair_t *start; + /** The end of the stack. */ + yaml_node_pair_t *end; + /** The top of the stack. */ + yaml_node_pair_t *top; + } pairs; + /** The mapping style. */ + yaml_mapping_style_t style; + } mapping; + + } data; + + /** The beginning of the node. */ + yaml_mark_t start_mark; + /** The end of the node. */ + yaml_mark_t end_mark; + +}; + +/** The document structure. */ +typedef struct yaml_document_s { + + /** The document nodes. */ + struct { + /** The beginning of the stack. */ + yaml_node_t *start; + /** The end of the stack. */ + yaml_node_t *end; + /** The top of the stack. */ + yaml_node_t *top; + } nodes; + + /** The version directive. */ + yaml_version_directive_t *version_directive; + + /** The list of tag directives. */ + struct { + /** The beginning of the tag directives list. */ + yaml_tag_directive_t *start; + /** The end of the tag directives list. */ + yaml_tag_directive_t *end; + } tag_directives; + + /** Is the document start indicator implicit? */ + int start_implicit; + /** Is the document end indicator implicit? */ + int end_implicit; + + /** The beginning of the document. */ + yaml_mark_t start_mark; + /** The end of the document. */ + yaml_mark_t end_mark; + +} yaml_document_t; + +/** + * Create a YAML document. + * + * @param[out] document An empty document object. + * @param[in] version_directive The %YAML directive value or + * @c NULL. + * @param[in] tag_directives_start The beginning of the %TAG + * directives list. + * @param[in] tag_directives_end The end of the %TAG directives + * list. + * @param[in] start_implicit If the document start indicator is + * implicit. + * @param[in] end_implicit If the document end indicator is + * implicit. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_initialize(yaml_document_t *document, + yaml_version_directive_t *version_directive, + yaml_tag_directive_t *tag_directives_start, + yaml_tag_directive_t *tag_directives_end, + int start_implicit, int end_implicit); + +/** + * Delete a YAML document and all its nodes. + * + * @param[in,out] document A document object. + */ + +YAML_DECLARE(void) +yaml_document_delete(yaml_document_t *document); + +/** + * Get a node of a YAML document. + * + * The pointer returned by this function is valid until any of the functions + * modifying the documents are called. + * + * @param[in] document A document object. + * @param[in] index The node id. + * + * @returns the node objct or @c NULL if @c node_id is out of range. + */ + +YAML_DECLARE(yaml_node_t *) +yaml_document_get_node(yaml_document_t *document, int index); + +/** + * Get the root of a YAML document node. + * + * The root object is the first object added to the document. + * + * The pointer returned by this function is valid until any of the functions + * modifying the documents are called. + * + * An empty document produced by the parser signifies the end of a YAML + * stream. + * + * @param[in] document A document object. + * + * @returns the node object or @c NULL if the document is empty. + */ + +YAML_DECLARE(yaml_node_t *) +yaml_document_get_root_node(yaml_document_t *document); + +/** + * Create a SCALAR node and attach it to the document. + * + * The @a style argument may be ignored by the emitter. + * + * @param[in,out] document A document object. + * @param[in] tag The scalar tag. + * @param[in] value The scalar value. + * @param[in] length The length of the scalar value. + * @param[in] style The scalar style. + * + * @returns the node id or @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_add_scalar(yaml_document_t *document, + const yaml_char_t *tag, const yaml_char_t *value, int length, + yaml_scalar_style_t style); + +/** + * Create a SEQUENCE node and attach it to the document. + * + * The @a style argument may be ignored by the emitter. + * + * @param[in,out] document A document object. + * @param[in] tag The sequence tag. + * @param[in] style The sequence style. + * + * @returns the node id or @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_add_sequence(yaml_document_t *document, + const yaml_char_t *tag, yaml_sequence_style_t style); + +/** + * Create a MAPPING node and attach it to the document. + * + * The @a style argument may be ignored by the emitter. + * + * @param[in,out] document A document object. + * @param[in] tag The sequence tag. + * @param[in] style The sequence style. + * + * @returns the node id or @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_add_mapping(yaml_document_t *document, + const yaml_char_t *tag, yaml_mapping_style_t style); + +/** + * Add an item to a SEQUENCE node. + * + * @param[in,out] document A document object. + * @param[in] sequence The sequence node id. + * @param[in] item The item node id. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_append_sequence_item(yaml_document_t *document, + int sequence, int item); + +/** + * Add a pair of a key and a value to a MAPPING node. + * + * @param[in,out] document A document object. + * @param[in] mapping The mapping node id. + * @param[in] key The key node id. + * @param[in] value The value node id. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_document_append_mapping_pair(yaml_document_t *document, + int mapping, int key, int value); + +/** @} */ + +/** + * @defgroup parser Parser Definitions + * @{ + */ + +/** + * The prototype of a read handler. + * + * The read handler is called when the parser needs to read more bytes from the + * source. The handler should write not more than @a size bytes to the @a + * buffer. The number of written bytes should be set to the @a length variable. + * + * @param[in,out] data A pointer to an application data specified by + * yaml_parser_set_input(). + * @param[out] buffer The buffer to write the data from the source. + * @param[in] size The size of the buffer. + * @param[out] size_read The actual number of bytes read from the source. + * + * @returns On success, the handler should return @c 1. If the handler failed, + * the returned value should be @c 0. On EOF, the handler should set the + * @a size_read to @c 0 and return @c 1. + */ + +typedef int yaml_read_handler_t(void *data, unsigned char *buffer, size_t size, + size_t *size_read); + +/** + * This structure holds information about a potential simple key. + */ + +typedef struct yaml_simple_key_s { + /** Is a simple key possible? */ + int possible; + + /** Is a simple key required? */ + int required; + + /** The number of the token. */ + size_t token_number; + + /** The position mark. */ + yaml_mark_t mark; +} yaml_simple_key_t; + +/** + * The states of the parser. + */ +typedef enum yaml_parser_state_e { + /** Expect STREAM-START. */ + YAML_PARSE_STREAM_START_STATE, + /** Expect the beginning of an implicit document. */ + YAML_PARSE_IMPLICIT_DOCUMENT_START_STATE, + /** Expect DOCUMENT-START. */ + YAML_PARSE_DOCUMENT_START_STATE, + /** Expect the content of a document. */ + YAML_PARSE_DOCUMENT_CONTENT_STATE, + /** Expect DOCUMENT-END. */ + YAML_PARSE_DOCUMENT_END_STATE, + + /** Expect a block node. */ + YAML_PARSE_BLOCK_NODE_STATE, + /** Expect a block node or indentless sequence. */ + YAML_PARSE_BLOCK_NODE_OR_INDENTLESS_SEQUENCE_STATE, + /** Expect a flow node. */ + YAML_PARSE_FLOW_NODE_STATE, + /** Expect the first entry of a block sequence. */ + YAML_PARSE_BLOCK_SEQUENCE_FIRST_ENTRY_STATE, + /** Expect an entry of a block sequence. */ + YAML_PARSE_BLOCK_SEQUENCE_ENTRY_STATE, + + /** Expect an entry of an indentless sequence. */ + YAML_PARSE_INDENTLESS_SEQUENCE_ENTRY_STATE, + /** Expect the first key of a block mapping. */ + YAML_PARSE_BLOCK_MAPPING_FIRST_KEY_STATE, + /** Expect a block mapping key. */ + YAML_PARSE_BLOCK_MAPPING_KEY_STATE, + /** Expect a block mapping value. */ + YAML_PARSE_BLOCK_MAPPING_VALUE_STATE, + /** Expect the first entry of a flow sequence. */ + YAML_PARSE_FLOW_SEQUENCE_FIRST_ENTRY_STATE, + + /** Expect an entry of a flow sequence. */ + YAML_PARSE_FLOW_SEQUENCE_ENTRY_STATE, + /** Expect a key of an ordered mapping. */ + YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_KEY_STATE, + /** Expect a value of an ordered mapping. */ + YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_VALUE_STATE, + /** Expect the and of an ordered mapping entry. */ + YAML_PARSE_FLOW_SEQUENCE_ENTRY_MAPPING_END_STATE, + /** Expect the first key of a flow mapping. */ + YAML_PARSE_FLOW_MAPPING_FIRST_KEY_STATE, + /** Expect a key of a flow mapping. */ + + YAML_PARSE_FLOW_MAPPING_KEY_STATE, + /** Expect a value of a flow mapping. */ + YAML_PARSE_FLOW_MAPPING_VALUE_STATE, + /** Expect an empty value of a flow mapping. */ + YAML_PARSE_FLOW_MAPPING_EMPTY_VALUE_STATE, + /** Expect nothing. */ + YAML_PARSE_END_STATE +} yaml_parser_state_t; + +/** + * This structure holds aliases data. + */ + +typedef struct yaml_alias_data_s { + /** The anchor. */ + yaml_char_t *anchor; + /** The node id. */ + int index; + /** The anchor mark. */ + yaml_mark_t mark; +} yaml_alias_data_t; + +/** + * The parser structure. + * + * All members are internal. Manage the structure using the @c yaml_parser_ + * family of functions. + */ + +typedef struct yaml_parser_s { + + /** + * @name Error handling + * @{ + */ + + /** Error type. */ + yaml_error_type_t error; + /** Error description. */ + const char *problem; + /** The byte about which the problem occured. */ + size_t problem_offset; + /** The problematic value (@c -1 is none). */ + int problem_value; + /** The problem position. */ + yaml_mark_t problem_mark; + /** The error context. */ + const char *context; + /** The context position. */ + yaml_mark_t context_mark; + + /** + * @} + */ + + /** + * @name Reader stuff + * @{ + */ + + /** Read handler. */ + yaml_read_handler_t *read_handler; + + /** A pointer for passing to the read handler. */ + void *read_handler_data; + + /** Standard (string or file) input data. */ + union { + /** String input data. */ + struct { + /** The string start pointer. */ + const unsigned char *start; + /** The string end pointer. */ + const unsigned char *end; + /** The string current position. */ + const unsigned char *current; + } string; + + /** File input data. */ + FILE *file; + } input; + + /** EOF flag */ + int eof; + + /** The working buffer. */ + struct { + /** The beginning of the buffer. */ + yaml_char_t *start; + /** The end of the buffer. */ + yaml_char_t *end; + /** The current position of the buffer. */ + yaml_char_t *pointer; + /** The last filled position of the buffer. */ + yaml_char_t *last; + } buffer; + + /* The number of unread characters in the buffer. */ + size_t unread; + + /** The raw buffer. */ + struct { + /** The beginning of the buffer. */ + unsigned char *start; + /** The end of the buffer. */ + unsigned char *end; + /** The current position of the buffer. */ + unsigned char *pointer; + /** The last filled position of the buffer. */ + unsigned char *last; + } raw_buffer; + + /** The input encoding. */ + yaml_encoding_t encoding; + + /** The offset of the current position (in bytes). */ + size_t offset; + + /** The mark of the current position. */ + yaml_mark_t mark; + + /** + * @} + */ + + /** + * @name Scanner stuff + * @{ + */ + + /** Have we started to scan the input stream? */ + int stream_start_produced; + + /** Have we reached the end of the input stream? */ + int stream_end_produced; + + /** The number of unclosed '[' and '{' indicators. */ + int flow_level; + + /** The tokens queue. */ + struct { + /** The beginning of the tokens queue. */ + yaml_token_t *start; + /** The end of the tokens queue. */ + yaml_token_t *end; + /** The head of the tokens queue. */ + yaml_token_t *head; + /** The tail of the tokens queue. */ + yaml_token_t *tail; + } tokens; + + /** The number of tokens fetched from the queue. */ + size_t tokens_parsed; + + /** Does the tokens queue contain a token ready for dequeueing. */ + int token_available; + + /** The indentation levels stack. */ + struct { + /** The beginning of the stack. */ + int *start; + /** The end of the stack. */ + int *end; + /** The top of the stack. */ + int *top; + } indents; + + /** The current indentation level. */ + int indent; + + /** May a simple key occur at the current position? */ + int simple_key_allowed; + + /** The stack of simple keys. */ + struct { + /** The beginning of the stack. */ + yaml_simple_key_t *start; + /** The end of the stack. */ + yaml_simple_key_t *end; + /** The top of the stack. */ + yaml_simple_key_t *top; + } simple_keys; + + /** + * @} + */ + + /** + * @name Parser stuff + * @{ + */ + + /** The parser states stack. */ + struct { + /** The beginning of the stack. */ + yaml_parser_state_t *start; + /** The end of the stack. */ + yaml_parser_state_t *end; + /** The top of the stack. */ + yaml_parser_state_t *top; + } states; + + /** The current parser state. */ + yaml_parser_state_t state; + + /** The stack of marks. */ + struct { + /** The beginning of the stack. */ + yaml_mark_t *start; + /** The end of the stack. */ + yaml_mark_t *end; + /** The top of the stack. */ + yaml_mark_t *top; + } marks; + + /** The list of TAG directives. */ + struct { + /** The beginning of the list. */ + yaml_tag_directive_t *start; + /** The end of the list. */ + yaml_tag_directive_t *end; + /** The top of the list. */ + yaml_tag_directive_t *top; + } tag_directives; + + /** + * @} + */ + + /** + * @name Dumper stuff + * @{ + */ + + /** The alias data. */ + struct { + /** The beginning of the list. */ + yaml_alias_data_t *start; + /** The end of the list. */ + yaml_alias_data_t *end; + /** The top of the list. */ + yaml_alias_data_t *top; + } aliases; + + /** The currently parsed document. */ + yaml_document_t *document; + + /** + * @} + */ + +} yaml_parser_t; + +/** + * Initialize a parser. + * + * This function creates a new parser object. An application is responsible + * for destroying the object using the yaml_parser_delete() function. + * + * @param[out] parser An empty parser object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_parser_initialize(yaml_parser_t *parser); + +/** + * Destroy a parser. + * + * @param[in,out] parser A parser object. + */ + +YAML_DECLARE(void) +yaml_parser_delete(yaml_parser_t *parser); + +/** + * Set a string input. + * + * Note that the @a input pointer must be valid while the @a parser object + * exists. The application is responsible for destroing @a input after + * destroying the @a parser. + * + * @param[in,out] parser A parser object. + * @param[in] input A source data. + * @param[in] size The length of the source data in bytes. + */ + +YAML_DECLARE(void) +yaml_parser_set_input_string(yaml_parser_t *parser, + const unsigned char *input, size_t size); + +/** + * Set a file input. + * + * @a file should be a file object open for reading. The application is + * responsible for closing the @a file. + * + * @param[in,out] parser A parser object. + * @param[in] file An open file. + */ + +YAML_DECLARE(void) +yaml_parser_set_input_file(yaml_parser_t *parser, FILE *file); + +/** + * Set a generic input handler. + * + * @param[in,out] parser A parser object. + * @param[in] handler A read handler. + * @param[in] data Any application data for passing to the read + * handler. + */ + +YAML_DECLARE(void) +yaml_parser_set_input(yaml_parser_t *parser, + yaml_read_handler_t *handler, void *data); + +/** + * Set the source encoding. + * + * @param[in,out] parser A parser object. + * @param[in] encoding The source encoding. + */ + +YAML_DECLARE(void) +yaml_parser_set_encoding(yaml_parser_t *parser, yaml_encoding_t encoding); + +/** + * Scan the input stream and produce the next token. + * + * Call the function subsequently to produce a sequence of tokens corresponding + * to the input stream. The initial token has the type + * @c YAML_STREAM_START_TOKEN while the ending token has the type + * @c YAML_STREAM_END_TOKEN. + * + * An application is responsible for freeing any buffers associated with the + * produced token object using the @c yaml_token_delete function. + * + * An application must not alternate the calls of yaml_parser_scan() with the + * calls of yaml_parser_parse() or yaml_parser_load(). Doing this will break + * the parser. + * + * @param[in,out] parser A parser object. + * @param[out] token An empty token object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_parser_scan(yaml_parser_t *parser, yaml_token_t *token); + +/** + * Parse the input stream and produce the next parsing event. + * + * Call the function subsequently to produce a sequence of events corresponding + * to the input stream. The initial event has the type + * @c YAML_STREAM_START_EVENT while the ending event has the type + * @c YAML_STREAM_END_EVENT. + * + * An application is responsible for freeing any buffers associated with the + * produced event object using the yaml_event_delete() function. + * + * An application must not alternate the calls of yaml_parser_parse() with the + * calls of yaml_parser_scan() or yaml_parser_load(). Doing this will break the + * parser. + * + * @param[in,out] parser A parser object. + * @param[out] event An empty event object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_parser_parse(yaml_parser_t *parser, yaml_event_t *event); + +/** + * Parse the input stream and produce the next YAML document. + * + * Call this function subsequently to produce a sequence of documents + * constituting the input stream. + * + * If the produced document has no root node, it means that the document + * end has been reached. + * + * An application is responsible for freeing any data associated with the + * produced document object using the yaml_document_delete() function. + * + * An application must not alternate the calls of yaml_parser_load() with the + * calls of yaml_parser_scan() or yaml_parser_parse(). Doing this will break + * the parser. + * + * @param[in,out] parser A parser object. + * @param[out] document An empty document object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_parser_load(yaml_parser_t *parser, yaml_document_t *document); + +/** @} */ + +/** + * @defgroup emitter Emitter Definitions + * @{ + */ + +/** + * The prototype of a write handler. + * + * The write handler is called when the emitter needs to flush the accumulated + * characters to the output. The handler should write @a size bytes of the + * @a buffer to the output. + * + * @param[in,out] data A pointer to an application data specified by + * yaml_emitter_set_output(). + * @param[in] buffer The buffer with bytes to be written. + * @param[in] size The size of the buffer. + * + * @returns On success, the handler should return @c 1. If the handler failed, + * the returned value should be @c 0. + */ + +typedef int yaml_write_handler_t(void *data, unsigned char *buffer, size_t size); + +/** The emitter states. */ +typedef enum yaml_emitter_state_e { + /** Expect STREAM-START. */ + YAML_EMIT_STREAM_START_STATE, + /** Expect the first DOCUMENT-START or STREAM-END. */ + YAML_EMIT_FIRST_DOCUMENT_START_STATE, + /** Expect DOCUMENT-START or STREAM-END. */ + YAML_EMIT_DOCUMENT_START_STATE, + /** Expect the content of a document. */ + YAML_EMIT_DOCUMENT_CONTENT_STATE, + /** Expect DOCUMENT-END. */ + YAML_EMIT_DOCUMENT_END_STATE, + + /** Expect the first item of a flow sequence. */ + YAML_EMIT_FLOW_SEQUENCE_FIRST_ITEM_STATE, + /** Expect an item of a flow sequence. */ + YAML_EMIT_FLOW_SEQUENCE_ITEM_STATE, + /** Expect the first key of a flow mapping. */ + YAML_EMIT_FLOW_MAPPING_FIRST_KEY_STATE, + /** Expect a key of a flow mapping. */ + YAML_EMIT_FLOW_MAPPING_KEY_STATE, + /** Expect a value for a simple key of a flow mapping. */ + YAML_EMIT_FLOW_MAPPING_SIMPLE_VALUE_STATE, + + /** Expect a value of a flow mapping. */ + YAML_EMIT_FLOW_MAPPING_VALUE_STATE, + /** Expect the first item of a block sequence. */ + YAML_EMIT_BLOCK_SEQUENCE_FIRST_ITEM_STATE, + /** Expect an item of a block sequence. */ + YAML_EMIT_BLOCK_SEQUENCE_ITEM_STATE, + /** Expect the first key of a block mapping. */ + YAML_EMIT_BLOCK_MAPPING_FIRST_KEY_STATE, + /** Expect the key of a block mapping. */ + YAML_EMIT_BLOCK_MAPPING_KEY_STATE, + + /** Expect a value for a simple key of a block mapping. */ + YAML_EMIT_BLOCK_MAPPING_SIMPLE_VALUE_STATE, + /** Expect a value of a block mapping. */ + YAML_EMIT_BLOCK_MAPPING_VALUE_STATE, + /** Expect nothing. */ + YAML_EMIT_END_STATE +} yaml_emitter_state_t; + + +/* This is needed for C++ */ + +typedef struct yaml_anchors_s { + /** The number of references. */ + int references; + /** The anchor id. */ + int anchor; + /** If the node has been emitted? */ + int serialized; +} yaml_anchors_t; + +/** + * The emitter structure. + * + * All members are internal. Manage the structure using the @c yaml_emitter_ + * family of functions. + */ + +typedef struct yaml_emitter_s { + + /** + * @name Error handling + * @{ + */ + + /** Error type. */ + yaml_error_type_t error; + /** Error description. */ + const char *problem; + + /** + * @} + */ + + /** + * @name Writer stuff + * @{ + */ + + /** Write handler. */ + yaml_write_handler_t *write_handler; + + /** A pointer for passing to the write handler. */ + void *write_handler_data; + + /** Standard (string or file) output data. */ + union { + /** String output data. */ + struct { + /** The buffer pointer. */ + unsigned char *buffer; + /** The buffer size. */ + size_t size; + /** The number of written bytes. */ + size_t *size_written; + } string; + + /** File output data. */ + FILE *file; + } output; + + /** The working buffer. */ + struct { + /** The beginning of the buffer. */ + yaml_char_t *start; + /** The end of the buffer. */ + yaml_char_t *end; + /** The current position of the buffer. */ + yaml_char_t *pointer; + /** The last filled position of the buffer. */ + yaml_char_t *last; + } buffer; + + /** The raw buffer. */ + struct { + /** The beginning of the buffer. */ + unsigned char *start; + /** The end of the buffer. */ + unsigned char *end; + /** The current position of the buffer. */ + unsigned char *pointer; + /** The last filled position of the buffer. */ + unsigned char *last; + } raw_buffer; + + /** The stream encoding. */ + yaml_encoding_t encoding; + + /** + * @} + */ + + /** + * @name Emitter stuff + * @{ + */ + + /** If the output is in the canonical style? */ + int canonical; + /** The number of indentation spaces. */ + int best_indent; + /** The preferred width of the output lines. */ + int best_width; + /** Allow unescaped non-ASCII characters? */ + int unicode; + /** The preferred line break. */ + yaml_break_t line_break; + + /** The stack of states. */ + struct { + /** The beginning of the stack. */ + yaml_emitter_state_t *start; + /** The end of the stack. */ + yaml_emitter_state_t *end; + /** The top of the stack. */ + yaml_emitter_state_t *top; + } states; + + /** The current emitter state. */ + yaml_emitter_state_t state; + + /** The event queue. */ + struct { + /** The beginning of the event queue. */ + yaml_event_t *start; + /** The end of the event queue. */ + yaml_event_t *end; + /** The head of the event queue. */ + yaml_event_t *head; + /** The tail of the event queue. */ + yaml_event_t *tail; + } events; + + /** The stack of indentation levels. */ + struct { + /** The beginning of the stack. */ + int *start; + /** The end of the stack. */ + int *end; + /** The top of the stack. */ + int *top; + } indents; + + /** The list of tag directives. */ + struct { + /** The beginning of the list. */ + yaml_tag_directive_t *start; + /** The end of the list. */ + yaml_tag_directive_t *end; + /** The top of the list. */ + yaml_tag_directive_t *top; + } tag_directives; + + /** The current indentation level. */ + int indent; + + /** The current flow level. */ + int flow_level; + + /** Is it the document root context? */ + int root_context; + /** Is it a sequence context? */ + int sequence_context; + /** Is it a mapping context? */ + int mapping_context; + /** Is it a simple mapping key context? */ + int simple_key_context; + + /** The current line. */ + int line; + /** The current column. */ + int column; + /** If the last character was a whitespace? */ + int whitespace; + /** If the last character was an indentation character (' ', '-', '?', ':')? */ + int indention; + /** If an explicit document end is required? */ + int open_ended; + + /** Anchor analysis. */ + struct { + /** The anchor value. */ + yaml_char_t *anchor; + /** The anchor length. */ + size_t anchor_length; + /** Is it an alias? */ + int alias; + } anchor_data; + + /** Tag analysis. */ + struct { + /** The tag handle. */ + yaml_char_t *handle; + /** The tag handle length. */ + size_t handle_length; + /** The tag suffix. */ + yaml_char_t *suffix; + /** The tag suffix length. */ + size_t suffix_length; + } tag_data; + + /** Scalar analysis. */ + struct { + /** The scalar value. */ + yaml_char_t *value; + /** The scalar length. */ + size_t length; + /** Does the scalar contain line breaks? */ + int multiline; + /** Can the scalar be expessed in the flow plain style? */ + int flow_plain_allowed; + /** Can the scalar be expressed in the block plain style? */ + int block_plain_allowed; + /** Can the scalar be expressed in the single quoted style? */ + int single_quoted_allowed; + /** Can the scalar be expressed in the literal or folded styles? */ + int block_allowed; + /** The output style. */ + yaml_scalar_style_t style; + } scalar_data; + + /** + * @} + */ + + /** + * @name Dumper stuff + * @{ + */ + + /** If the stream was already opened? */ + int opened; + /** If the stream was already closed? */ + int closed; + + /** The information associated with the document nodes. */ + yaml_anchors_t *anchors; + + /** The last assigned anchor id. */ + int last_anchor_id; + + /** The currently emitted document. */ + yaml_document_t *document; + + /** + * @} + */ + +} yaml_emitter_t; + +/** + * Initialize an emitter. + * + * This function creates a new emitter object. An application is responsible + * for destroying the object using the yaml_emitter_delete() function. + * + * @param[out] emitter An empty parser object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_initialize(yaml_emitter_t *emitter); + +/** + * Destroy an emitter. + * + * @param[in,out] emitter An emitter object. + */ + +YAML_DECLARE(void) +yaml_emitter_delete(yaml_emitter_t *emitter); + +/** + * Set a string output. + * + * The emitter will write the output characters to the @a output buffer of the + * size @a size. The emitter will set @a size_written to the number of written + * bytes. If the buffer is smaller than required, the emitter produces the + * YAML_WRITE_ERROR error. + * + * @param[in,out] emitter An emitter object. + * @param[in] output An output buffer. + * @param[in] size The buffer size. + * @param[in] size_written The pointer to save the number of written + * bytes. + */ + +YAML_DECLARE(void) +yaml_emitter_set_output_string(yaml_emitter_t *emitter, + unsigned char *output, size_t size, size_t *size_written); + +/** + * Set a file output. + * + * @a file should be a file object open for writing. The application is + * responsible for closing the @a file. + * + * @param[in,out] emitter An emitter object. + * @param[in] file An open file. + */ + +YAML_DECLARE(void) +yaml_emitter_set_output_file(yaml_emitter_t *emitter, FILE *file); + +/** + * Set a generic output handler. + * + * @param[in,out] emitter An emitter object. + * @param[in] handler A write handler. + * @param[in] data Any application data for passing to the write + * handler. + */ + +YAML_DECLARE(void) +yaml_emitter_set_output(yaml_emitter_t *emitter, + yaml_write_handler_t *handler, void *data); + +/** + * Set the output encoding. + * + * @param[in,out] emitter An emitter object. + * @param[in] encoding The output encoding. + */ + +YAML_DECLARE(void) +yaml_emitter_set_encoding(yaml_emitter_t *emitter, yaml_encoding_t encoding); + +/** + * Set if the output should be in the "canonical" format as in the YAML + * specification. + * + * @param[in,out] emitter An emitter object. + * @param[in] canonical If the output is canonical. + */ + +YAML_DECLARE(void) +yaml_emitter_set_canonical(yaml_emitter_t *emitter, int canonical); + +/** + * Set the indentation increment. + * + * @param[in,out] emitter An emitter object. + * @param[in] indent The indentation increment (1 < . < 10). + */ + +YAML_DECLARE(void) +yaml_emitter_set_indent(yaml_emitter_t *emitter, int indent); + +/** + * Set the preferred line width. @c -1 means unlimited. + * + * @param[in,out] emitter An emitter object. + * @param[in] width The preferred line width. + */ + +YAML_DECLARE(void) +yaml_emitter_set_width(yaml_emitter_t *emitter, int width); + +/** + * Set if unescaped non-ASCII characters are allowed. + * + * @param[in,out] emitter An emitter object. + * @param[in] unicode If unescaped Unicode characters are allowed. + */ + +YAML_DECLARE(void) +yaml_emitter_set_unicode(yaml_emitter_t *emitter, int unicode); + +/** + * Set the preferred line break. + * + * @param[in,out] emitter An emitter object. + * @param[in] line_break The preferred line break. + */ + +YAML_DECLARE(void) +yaml_emitter_set_break(yaml_emitter_t *emitter, yaml_break_t line_break); + +/** + * Emit an event. + * + * The event object may be generated using the yaml_parser_parse() function. + * The emitter takes the responsibility for the event object and destroys its + * content after it is emitted. The event object is destroyed even if the + * function fails. + * + * @param[in,out] emitter An emitter object. + * @param[in,out] event An event object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_emit(yaml_emitter_t *emitter, yaml_event_t *event); + +/** + * Start a YAML stream. + * + * This function should be used before yaml_emitter_dump() is called. + * + * @param[in,out] emitter An emitter object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_open(yaml_emitter_t *emitter); + +/** + * Finish a YAML stream. + * + * This function should be used after yaml_emitter_dump() is called. + * + * @param[in,out] emitter An emitter object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_close(yaml_emitter_t *emitter); + +/** + * Emit a YAML document. + * + * The documen object may be generated using the yaml_parser_load() function + * or the yaml_document_initialize() function. The emitter takes the + * responsibility for the document object and destroys its content after + * it is emitted. The document object is destroyed even if the function fails. + * + * @param[in,out] emitter An emitter object. + * @param[in,out] document A document object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_dump(yaml_emitter_t *emitter, yaml_document_t *document); + +/** + * Flush the accumulated characters to the output. + * + * @param[in,out] emitter An emitter object. + * + * @returns @c 1 if the function succeeded, @c 0 on error. + */ + +YAML_DECLARE(int) +yaml_emitter_flush(yaml_emitter_t *emitter); + +/** @} */ + +#ifdef __cplusplus +} +#endif + +#endif /* #ifndef YAML_H */ + diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/lib/yaml.lib b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/lib/yaml.lib new file mode 100644 index 0000000000000000000000000000000000000000..1e5bad78687ade36feee6eb7ae612912a5d7856d Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/Library/lib/yaml.lib differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/about.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..a37d2e8d9d9d5977978eb1d3747786a530150c58 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/about.json @@ -0,0 +1,16 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/" + ], + "description": "YAML is a human friendly data serialization standard for all programming\nlanguages.", + "dev_url": "https://github.com/yaml", + "doc_url": "http://www.yaml.org/spec/1.2/spec.html", + "extra": { + "flow_run_id": "azure_20250725.8.1", + "remote_url": "https://github.com/conda-forge/yaml-feedstock", + "sha": "c981981fc334c0904d1796f3bcf9d197bda6fb53" + }, + "home": "http://pyyaml.org/wiki/LibYAML", + "license": "MIT", + "summary": "A C library for parsing and emitting YAML" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/hash_input.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..abac9a7cdac538022719a5f70ff661872744be81 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/hash_input.json @@ -0,0 +1 @@ +{"c_compiler": "vs2022", "c_stdlib": "vs", "channel_sources": "conda-forge", "channel_targets": "conda-forge main", "target_platform": "win-64"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/index.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..1b30d7bd83b658cf47858deed2015f93df8ff5d4 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/index.json @@ -0,0 +1,19 @@ +{ + "arch": "x86_64", + "build": "h6a83c73_3", + "build_number": 3, + "depends": [ + "vc >=14.3,<15", + "vc14_runtime >=14.44.35208", + "ucrt >=10.0.20348.0", + "vc >=14.3,<15", + "vc14_runtime >=14.44.35208", + "ucrt >=10.0.20348.0" + ], + "license": "MIT", + "name": "yaml", + "platform": "win", + "subdir": "win-64", + "timestamp": 1753484092156, + "version": "0.2.5" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/licenses/License b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/licenses/License new file mode 100644 index 0000000000000000000000000000000000000000..3d82c281ee8ceb45368153139f5935bd8d39c816 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/licenses/License @@ -0,0 +1,20 @@ +Copyright (c) 2017-2020 Ingy döt Net +Copyright (c) 2006-2016 Kirill Simonov + +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. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/paths.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..f77a28fa7f34cd6e282f215d261e370c17854658 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/paths.json @@ -0,0 +1,47 @@ +{ + "paths": [ + { + "_path": "Library/bin/yaml.dll", + "path_type": "hardlink", + "sha256": "00e611e83b496d10c65934906946ed983515a4a9ba6613f9c9d57c70079d7bde", + "size_in_bytes": 107008 + }, + { + "_path": "Library/cmake/yamlConfig.cmake", + "path_type": "hardlink", + "sha256": "1c33b7ca2f660860dd4193f1af08460affa7ecd307b000bfdfc6f5bbced3d0bc", + "size_in_bytes": 983 + }, + { + "_path": "Library/cmake/yamlConfigVersion.cmake", + "path_type": "hardlink", + "sha256": "02cdb1dd0f23a42a189794a1750dd016fab1c6df5ec59b12310f02af98c6e088", + "size_in_bytes": 1904 + }, + { + "_path": "Library/cmake/yamlTargets-release.cmake", + "path_type": "hardlink", + "sha256": "8b3e06d3206eb9b65bf7635934bdf6fd83816a4ba59fa318cccd8b44a990934a", + "size_in_bytes": 848 + }, + { + "_path": "Library/cmake/yamlTargets.cmake", + "path_type": "hardlink", + "sha256": "1d74d9217eea74a1e083215131efd55c92f46c11a041e3658c44c962c14e6e1e", + "size_in_bytes": 4168 + }, + { + "_path": "Library/include/yaml.h", + "path_type": "hardlink", + "sha256": "de39c9fc2b2c8584775e6d0dc0f13c8e778ceba47d419cff9d85465ca35d6954", + "size_in_bytes": 54439 + }, + { + "_path": "Library/lib/yaml.lib", + "path_type": "hardlink", + "sha256": "ce7863925e16569059fd0ef56b953b367d01a2ecfad9a0de47f3a6d3c3c37b07", + "size_in_bytes": 15316 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.bat b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.bat new file mode 100644 index 0000000000000000000000000000000000000000..a497b49c0c621568757baf538f14d4f5d37fc70e --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.bat @@ -0,0 +1,25 @@ +:: MSVC is preferred. +set CC=cl.exe +set CXX=cl.exe + +mkdir build +cd build +cmake ^ + -G "Ninja" ^ + -DCMAKE_INSTALL_PREFIX=%LIBRARY_PREFIX% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DCMAKE_INSTALL_SYSTEM_RUNTIME_LIBS_SKIP=True ^ + -DBUILD_SHARED_LIBS=ON ^ + %SRC_DIR% +if errorlevel 1 exit 1 + +:: Build. +cmake --build . --config Release +if errorlevel 1 exit 1 + +:: Install. +cmake --build . --config Release --target install +if errorlevel 1 exit 1 + +:: Remove extra output. +del /f "%LIBRARY_PREFIX%\include\config.h" diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.sh b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.sh new file mode 100644 index 0000000000000000000000000000000000000000..6f29c4bab587a1b09738f55b89d0fa3866dcc740 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/build.sh @@ -0,0 +1,9 @@ +#!/bin/bash + +./bootstrap +./configure --prefix="${PREFIX}" +make +if [[ "${CONDA_BUILD_CROSS_COMPILATION}" != "1" ]]; then +make check +fi +make install diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe-scripts-license.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..f093e06198e8f9997e31fe9bf3cedf8d12a5c6dd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..597df46016d13106baa2c7b87a6e1383c80be7f8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/recipe.yaml @@ -0,0 +1,64 @@ +schema_version: 1 + +context: + version: 0.2.5 + +package: + name: yaml + version: ${{ version }} + +source: + url: https://github.com/yaml/libyaml/archive/${{ version }}.tar.gz + sha256: fa240dbf262be053f3898006d502d514936c818e422afdcf33921c63bed9bf2e + +build: + number: 3 + +requirements: + build: + - ${{ compiler('c') }} + - ${{ stdlib('c') }} + - if: win + then: + - cmake <4 + - pkg-config + - ninja + else: + - automake + - autoconf + - make + - libtool + run_exports: + - ${{ pin_subpackage('yaml', upper_bound='x.x') }} + +tests: + - package_contents: + include: + - yaml.h + lib: + - yaml + files: + - if: not win + then: + - lib/pkgconfig/yaml-0.1.pc + +about: + license: MIT + license_file: License + summary: A C library for parsing and emitting YAML + description: | + YAML is a human friendly data serialization standard for all programming + languages. + homepage: http://pyyaml.org/wiki/LibYAML + repository: https://github.com/yaml + documentation: http://www.yaml.org/spec/1.2/spec.html + +extra: + recipe-maintainers: + - jakirkham + - msarahan + - pelson + - mingwandroid + - ocefpaf + - seanyen + - baszalmstra diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/rendered_recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/rendered_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..aa0a5c0701f638e564c4762a9d68e07825c7964f --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/rendered_recipe.yaml @@ -0,0 +1,727 @@ +recipe: + schema_version: 1 + context: + version: 0.2.5 + package: + name: yaml + version: 0.2.5 + source: + - url: https://github.com/yaml/libyaml/archive/0.2.5.tar.gz + sha256: fa240dbf262be053f3898006d502d514936c818e422afdcf33921c63bed9bf2e + build: + number: 3 + string: h6a83c73_3 + requirements: + build: + - vs2022_win-64 + - vs_win-64 + - cmake <4 + - pkg-config + - ninja + run_exports: + weak: + - pin_subpackage: + name: yaml + lower_bound: x.x.x.x.x.x + upper_bound: x.x + tests: + - package_contents: + lib: + - yaml + include: + - yaml.h + about: + homepage: http://pyyaml.org/wiki/LibYAML + repository: https://github.com/yaml + documentation: http://www.yaml.org/spec/1.2/spec.html + license: MIT + license_file: + - License + summary: A C library for parsing and emitting YAML + description: |- + YAML is a human friendly data serialization standard for all programming + languages. + extra: + recipe-maintainers: + - jakirkham + - msarahan + - pelson + - mingwandroid + - ocefpaf + - seanyen + - baszalmstra +build_configuration: + target_platform: win-64 + host_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v4 + build_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v4 + variant: + c_compiler: vs2022 + c_stdlib: vs + channel_sources: conda-forge + channel_targets: conda-forge main + target_platform: win-64 + hash: + hash: 6a83c73 + directories: + host_prefix: D:\bld\bld\rattler-build_yaml_1753484092\h_env + build_prefix: D:\bld\bld\rattler-build_yaml_1753484092\build_env + work_dir: D:\bld\bld\rattler-build_yaml_1753484092\work + build_dir: D:\bld\bld\rattler-build_yaml_1753484092 + channels: + - https://conda.anaconda.org/conda-forge + channel_priority: strict + solve_strategy: highest + timestamp: 2025-07-25T22:54:52.156037900Z + subpackages: + yaml: + name: yaml + version: 0.2.5 + build_string: h6a83c73_3 + packaging_settings: + archive_type: conda + compression_level: 15 +finalized_dependencies: + build: + specs: + - source: vs2022_win-64 + - source: vs_win-64 + - source: cmake <4 + - source: pkg-config + - source: ninja + resolved: + - build: ha74f236_30 + build_number: 30 + constrains: + - vs_win-64 2022.14 + depends: + - vswhere + license: BSD-3-Clause + license_family: BSD + md5: 1beb10b037c46705170513c55d7c390a + name: vs2022_win-64 + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + sha256: 8bb1fe86faf13d185fc64e3a57c9d922ff8e3fbf0bae10325416a6b14378a1f7 + size: 20680 + subdir: win-64 + timestamp: 1753139847118 + track_features: vc14 + version: 19.44.35207 + fn: vs2022_win-64-19.44.35207-ha74f236_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: ha74f236_30 + build_number: 30 + depends: + - vs2022_win-64 19.44.35207.* + license: BSD-3-Clause + license_family: BSD + md5: 1d3bd3824132052a2ef2191690d90887 + name: vs_win-64 + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + sha256: 63e20fa65480b19e2560b7fd56aceaba452fb2a9525e4eee085e19f4daa0f98c + size: 18095 + subdir: win-64 + timestamp: 1753139848275 + track_features: vc14 + version: '2022.14' + fn: vs_win-64-2022.14-ha74f236_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vs_win-64-2022.14-ha74f236_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hff78f93_0 + build_number: 0 + depends: + - bzip2 >=1.0.8,<2.0a0 + - libcurl >=8.12.1,<9.0a0 + - libexpat >=2.6.4,<3.0a0 + - liblzma >=5.6.4,<6.0a0 + - libuv >=1.50.0,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - ucrt >=10.0.20348.0 + - vc14_runtime >=14.29.30139 + - zstd >=1.5.7,<1.6.0a0 + license: BSD-3-Clause + license_family: BSD + md5: 9221eb014513c974692d81d0db4b486c + name: cmake + sha256: 12fea0a0f8e0b6eaccdb919d3039e4f8da2889bdfee0941a4c160913105adc33 + size: 14271971 + subdir: win-64 + timestamp: 1740468587344 + version: 3.31.6 + fn: cmake-3.31.6-hff78f93_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/cmake-3.31.6-hff78f93_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h88c491f_1009 + build_number: 1009 + depends: + - libglib >=2.80.3,<3.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: GPL-2.0-or-later + license_family: GPL + md5: 122d6514d415fbe02c9b58aee9f6b53e + name: pkg-config + sha256: 86b0c40c8b569dbc164cb1de098ddabf4c240a5e8f38547aab00493891fa67f3 + size: 36118 + subdir: win-64 + timestamp: 1720806338740 + version: 0.29.2 + fn: pkg-config-0.29.2-h88c491f_1009.conda + url: https://conda.anaconda.org/conda-forge/win-64/pkg-config-0.29.2-h88c491f_1009.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h477610d_0 + build_number: 0 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: Apache-2.0 + license_family: APACHE + md5: b8a603d4b32e113e3551b257b677de67 + name: ninja + sha256: c5d1da3a21e1749286dba462e05be817bfb9ff50597e6f13645c98138a50cd56 + size: 309517 + subdir: win-64 + timestamp: 1752218329097 + version: 1.13.1 + fn: ninja-1.13.1-h477610d_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/ninja-1.13.1-h477610d_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h40126e0_1 + build_number: 1 + depends: + - __win + license: MIT + license_family: MIT + md5: f622897afff347b715d046178ad745a5 + name: vswhere + noarch: generic + sha256: b72270395326dc56de9bd6ca82f63791b3c8c9e2b98e25242a9869a4ca821895 + size: 238764 + subdir: noarch + timestamp: 1745560912727 + version: 3.1.7 + fn: vswhere-3.1.7-h40126e0_1.conda + url: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_7 + build_number: 7 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: bzip2-1.0.6 + license_family: BSD + md5: 276e7ffe9ffe39688abc665ef0f45596 + name: bzip2 + run_exports: + weak: + - bzip2 >=1.0.8,<2.0a0 + sha256: 35a5dad92e88fdd7fc405e864ec239486f4f31eec229e31686e61a140a8e573b + size: 54927 + subdir: win-64 + timestamp: 1720974860185 + version: 1.0.8 + fn: bzip2-1.0.8-h2466b09_7.conda + url: https://conda.anaconda.org/conda-forge/win-64/bzip2-1.0.8-h2466b09_7.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h88aaa65_0 + build_number: 0 + depends: + - krb5 >=1.21.3,<1.22.0a0 + - libssh2 >=1.11.1,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: curl + license_family: MIT + md5: 836b9c08f34d2017dbcaec907c6a1138 + name: libcurl + run_exports: + weak: + - libcurl >=8.14.1,<9.0a0 + sha256: b2cface2cf35d8522289df7fffc14370596db6f6dc481cc1b6ca313faeac19d8 + size: 368346 + subdir: win-64 + timestamp: 1749033492826 + version: 8.14.1 + fn: libcurl-8.14.1-h88aaa65_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libcurl-8.14.1-h88aaa65_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hdf4eb48_0 + build_number: 0 + depends: + - openssl >=3.3.1,<4.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: MIT + license_family: MIT + md5: 31aec030344e962fbd7dbbbbd68e60a9 + name: krb5 + run_exports: + weak: + - krb5 >=1.21.3,<1.22.0a0 + sha256: 18e8b3430d7d232dad132f574268f56b3eb1a19431d6d5de8c53c29e6c18fa81 + size: 712034 + subdir: win-64 + timestamp: 1719463874284 + version: 1.21.3 + fn: krb5-1.21.3-hdf4eb48_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/krb5-1.21.3-hdf4eb48_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hac47afa_0 + build_number: 0 + constrains: + - expat 2.7.1.* + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: MIT + license_family: MIT + md5: 3608ffde260281fa641e70d6e34b1b96 + name: libexpat + sha256: 8432ca842bdf8073ccecf016ccc9140c41c7114dc4ec77ca754551c01f780845 + size: 141322 + subdir: win-64 + timestamp: 1752719767870 + version: 2.7.1 + fn: libexpat-2.7.1-hac47afa_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libexpat-2.7.1-hac47afa_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_2 + build_number: 2 + constrains: + - xz 5.8.1.* + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: 0BSD + md5: c15148b2e18da456f5108ccb5e411446 + name: liblzma + run_exports: + weak: + - liblzma >=5.8.1,<6.0a0 + sha256: 55764956eb9179b98de7cc0e55696f2eff8f7b83fc3ebff5e696ca358bca28cc + size: 104935 + subdir: win-64 + timestamp: 1749230611612 + version: 5.8.1 + fn: liblzma-5.8.1-h2466b09_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/liblzma-5.8.1-h2466b09_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_0 + build_number: 0 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: MIT + license_family: MIT + md5: 9756651456477241b0226fb0ee051c58 + name: libuv + run_exports: + weak: + - libuv >=1.51.0,<2.0a0 + sha256: b03ca3d0cfbf8b3911757411a10fbbaa7edae62bb81972ae44360e7ac347aac2 + size: 293576 + subdir: win-64 + timestamp: 1748305181284 + version: 1.51.0 + fn: libuv-1.51.0-h2466b09_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libuv-1.51.0-h2466b09_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_2 + build_number: 2 + constrains: + - zlib 1.3.1 *_2 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: Zlib + license_family: Other + md5: 41fbfac52c601159df6c01f875de31b9 + name: libzlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: ba945c6493449bed0e6e29883c4943817f7c79cbff52b83360f7b341277c6402 + size: 55476 + subdir: win-64 + timestamp: 1727963768015 + version: 1.3.1 + fn: libzlib-1.3.1-h2466b09_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.1-h2466b09_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h57928b3_1 + build_number: 1 + constrains: + - vs2015_runtime >=14.29.30037 + depends: [] + license: LicenseRef-MicrosoftWindowsSDK10 + md5: 6797b005cd0f439c4c5c9ac565783700 + name: ucrt + sha256: db8dead3dd30fb1a032737554ce91e2819b43496a0db09927edf01c32b577450 + size: 559710 + subdir: win-64 + timestamp: 1728377334097 + version: 10.0.22621.0 + fn: ucrt-10.0.22621.0-h57928b3_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_30 + build_number: 30 + constrains: + - vs2015_runtime 14.44.35208.* *_30 + depends: + - ucrt >=10.0.20348.0 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: fa6802b52e903c42f882ecd67731e10a + name: vc14_runtime + sha256: 2958ef637509d69ea496b091dc579f1bf38687575b65744e73d157cfe56c9eca + size: 754911 + subdir: win-64 + timestamp: 1753139843755 + version: 14.44.35208 + fn: vc14_runtime-14.44.35208-h818238b_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hbeecb71_2 + build_number: 2 + depends: + - libzlib >=1.3.1,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: BSD-3-Clause + license_family: BSD + md5: 21f56217d6125fb30c3c3f10c786d751 + name: zstd + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 + sha256: bc64864377d809b904e877a98d0584f43836c9f2ef27d3d2a1421fa6eae7ca04 + size: 354697 + subdir: win-64 + timestamp: 1742433568506 + version: 1.5.7 + fn: zstd-1.5.7-hbeecb71_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-hbeecb71_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hbc94333_0 + build_number: 0 + constrains: + - glib 2.84.2 *_0 + depends: + - libffi >=3.4.6,<3.5.0a0 + - libiconv >=1.18,<2.0a0 + - libintl >=0.22.5,<1.0a0 + - libzlib >=1.3.1,<2.0a0 + - pcre2 >=10.45,<10.46.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LGPL-2.1-or-later + md5: fee05801cc5db97bec20a5e78fb3905b + name: libglib + run_exports: + weak: + - libglib >=2.84.2,<3.0a0 + sha256: 457e297389609ff6886fef88ae7f1f6ea4f4f3febea7dd690662a50983967d6d + size: 3771466 + subdir: win-64 + timestamp: 1747837394297 + version: 2.84.2 + fn: libglib-2.84.2-hbc94333_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libglib-2.84.2-hbc94333_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h99c9b8b_0 + build_number: 0 + depends: + - bzip2 >=1.0.8,<2.0a0 + - libzlib >=1.3.1,<2.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: BSD-3-Clause + license_family: BSD + md5: f4c483274001678e129f5cbaf3a8d765 + name: pcre2 + run_exports: + weak: + - pcre2 >=10.45,<10.46.0a0 + sha256: 165d6f76e7849615cfa5fe5f0209b90103102db17a7b4632f933fa9c0e8d8bfe + size: 1040584 + subdir: win-64 + timestamp: 1745955875845 + version: '10.45' + fn: pcre2-10.45-h99c9b8b_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/pcre2-10.45-h99c9b8b_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h135ad9c_1 + build_number: 1 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: LGPL-2.1-only + md5: 21fc5dba2cbcd8e5e26ff976a312122c + name: libiconv + run_exports: + weak: + - libiconv >=1.18,<2.0a0 + sha256: ea5ed2b362b6dbc4ba7188eb4eaf576146e3dfc6f4395e9f0db76ad77465f786 + size: 638142 + subdir: win-64 + timestamp: 1740128665984 + version: '1.18' + fn: libiconv-1.18-h135ad9c_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/libiconv-1.18-h135ad9c_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2b53caa_30 + build_number: 30 + depends: + - vc14_runtime >=14.42.34433 + license: BSD-3-Clause + license_family: BSD + md5: 76b6febe6dea7991df4c86f826f396c5 + name: vc + sha256: 8e16a8c3270d88735234a8097d45efea02b49751800c83b6fd5f2167a3828f52 + size: 17962 + subdir: win-64 + timestamp: 1753139853244 + track_features: vc14 + version: '14.3' + fn: vc-14.3-h2b53caa_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h2b53caa_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h9aa295b_0 + build_number: 0 + depends: + - libzlib >=1.3.1,<2.0a0 + - openssl >=3.5.0,<4.0a0 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: BSD-3-Clause + license_family: BSD + md5: 9dce2f112bfd3400f4f432b3d0ac07b2 + name: libssh2 + run_exports: + weak: + - libssh2 >=1.11.1,<2.0a0 + sha256: cbdf93898f2e27cefca5f3fe46519335d1fab25c4ea2a11b11502ff63e602c09 + size: 292785 + subdir: win-64 + timestamp: 1745608759342 + version: 1.11.1 + fn: libssh2-1.11.1-h9aa295b_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/libssh2-1.11.1-h9aa295b_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h537db12_1 + build_number: 1 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: MIT + license_family: MIT + md5: 85d8fa5e55ed8f93f874b3b23ed54ec6 + name: libffi + run_exports: + weak: + - libffi >=3.4.6,<3.5.0a0 + sha256: d3b0b8812eab553d3464bbd68204f007f1ebadf96ce30eb0cbc5159f72e353f5 + size: 44978 + subdir: win-64 + timestamp: 1743435053850 + version: 3.4.6 + fn: libffi-3.4.6-h537db12_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/libffi-3.4.6-h537db12_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h5728263_3 + build_number: 3 + depends: + - libiconv >=1.17,<2.0a0 + license: LGPL-2.1-or-later + md5: 2cf0cf76cc15d360dfa2f17fd6cf9772 + name: libintl + run_exports: + weak: + - libintl >=0.22.5,<1.0a0 + sha256: c7e4600f28bcada8ea81456a6530c2329312519efcf0c886030ada38976b0511 + size: 95568 + subdir: win-64 + timestamp: 1723629479451 + version: 0.22.5 + fn: libintl-0.22.5-h5728263_3.conda + url: https://conda.anaconda.org/conda-forge/win-64/libintl-0.22.5-h5728263_3.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h725018a_0 + build_number: 0 + depends: + - ca-certificates + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: Apache-2.0 + license_family: Apache + md5: d124fc2fd7070177b5e2450627f8fc1a + name: openssl + run_exports: + weak: + - openssl >=3.5.1,<4.0a0 + sha256: 2b2eb73b0661ff1aed55576a3d38614852b5d857c2fa9205ac115820c523306c + size: 9327033 + subdir: win-64 + timestamp: 1751392489008 + version: 3.5.1 + fn: openssl-3.5.1-h725018a_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/openssl-3.5.1-h725018a_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h4c7d964_0 + build_number: 0 + depends: + - __win + license: ISC + md5: 40334594f5916bc4c0a0313d64bfe046 + name: ca-certificates + noarch: generic + sha256: a7fe9bce8a0f9f985d44940ec13a297df571ee70fb2264b339c62fa190b2c437 + size: 155882 + subdir: noarch + timestamp: 1752482396143 + version: 2025.7.14 + fn: ca-certificates-2025.7.14-h4c7d964_0.conda + url: https://conda.anaconda.org/conda-forge/noarch/ca-certificates-2025.7.14-h4c7d964_0.conda + channel: https://conda.anaconda.org/conda-forge/ + host: + specs: + - spec: vc >=14.3,<15 + from: build + run_export: vs_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs_win-64 + - spec: vc >=14.3,<15 + from: build + run_export: vs2022_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs2022_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs2022_win-64 + resolved: + - build: h2b53caa_30 + build_number: 30 + depends: + - vc14_runtime >=14.42.34433 + license: BSD-3-Clause + license_family: BSD + md5: 76b6febe6dea7991df4c86f826f396c5 + name: vc + sha256: 8e16a8c3270d88735234a8097d45efea02b49751800c83b6fd5f2167a3828f52 + size: 17962 + subdir: win-64 + timestamp: 1753139853244 + track_features: vc14 + version: '14.3' + fn: vc-14.3-h2b53caa_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h2b53caa_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_30 + build_number: 30 + constrains: + - vs2015_runtime 14.44.35208.* *_30 + depends: + - ucrt >=10.0.20348.0 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: fa6802b52e903c42f882ecd67731e10a + name: vc14_runtime + sha256: 2958ef637509d69ea496b091dc579f1bf38687575b65744e73d157cfe56c9eca + size: 754911 + subdir: win-64 + timestamp: 1753139843755 + version: 14.44.35208 + fn: vc14_runtime-14.44.35208-h818238b_30.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_30.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h57928b3_1 + build_number: 1 + constrains: + - vs2015_runtime >=14.29.30037 + depends: [] + license: LicenseRef-MicrosoftWindowsSDK10 + md5: 6797b005cd0f439c4c5c9ac565783700 + name: ucrt + sha256: db8dead3dd30fb1a032737554ce91e2819b43496a0db09927edf01c32b577450 + size: 559710 + subdir: win-64 + timestamp: 1728377334097 + version: 10.0.22621.0 + fn: ucrt-10.0.22621.0-h57928b3_1.conda + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.22621.0-h57928b3_1.conda + channel: https://conda.anaconda.org/conda-forge/ + run: + depends: + - spec: vc >=14.3,<15 + from: build + run_export: vs_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs_win-64 + - spec: vc >=14.3,<15 + from: build + run_export: vs2022_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs2022_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs2022_win-64 + constraints: [] + run_exports: + weak: + - yaml >=0.2.5,<0.3.0a0 +finalized_sources: +- url: https://github.com/yaml/libyaml/archive/0.2.5.tar.gz + sha256: fa240dbf262be053f3898006d502d514936c818e422afdcf33921c63bed9bf2e +system_tools: + rattler-build: 0.44.0 +extra_meta: + flow_run_id: azure_20250725.8.1 + remote_url: https://github.com/conda-forge/yaml-feedstock + sha: c981981fc334c0904d1796f3bcf9d197bda6fb53 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/variant_config.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/variant_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..c1e38bb8c7085dceab24e1f9e03f5af3d7c768c2 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/recipe/variant_config.yaml @@ -0,0 +1,5 @@ +c_compiler: vs2022 +c_stdlib: vs +channel_sources: conda-forge +channel_targets: conda-forge main +target_platform: win-64 diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/repodata_record.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..238e4d0a9432a16fa4b56f2b8ebc7bac10a94c6b --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/repodata_record.json @@ -0,0 +1,24 @@ +{ + "arch": "x86_64", + "build": "h6a83c73_3", + "build_number": 3, + "build_string": "h6a83c73_3", + "channel": "conda-forge", + "constrains": [], + "depends": [ + "vc >=14.3,<15", + "vc14_runtime >=14.44.35208", + "ucrt >=10.0.20348.0" + ], + "fn": "yaml-0.2.5-h6a83c73_3.conda", + "license": "MIT", + "md5": "433699cba6602098ae8957a323da2664", + "name": "yaml", + "platform": "win", + "sha256": "80ee68c1e7683a35295232ea79bcc87279d31ffeda04a1665efdb43cbd50a309", + "size": 63944, + "subdir": "win-64", + "timestamp": 1753484092, + "url": "https://conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3.conda", + "version": "0.2.5" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/run_exports.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..c0f0f0a9144148fa19be023e6a7919f362c56705 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/run_exports.json @@ -0,0 +1,5 @@ +{ + "weak": [ + "yaml >=0.2.5,<0.3.0a0" + ] +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/tests/tests.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/tests/tests.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fe51488c7066f6687ef680d6bfaa4f7768ef205c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/yaml-0.2.5-h6a83c73_3/info/tests/tests.yaml @@ -0,0 +1 @@ +[] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zdict.h b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zdict.h new file mode 100644 index 0000000000000000000000000000000000000000..599b793013ba97745d61dfb62a710da16ae7c86c --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zdict.h @@ -0,0 +1,481 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under both the BSD-style license (found in the + * LICENSE file in the root directory of this source tree) and the GPLv2 (found + * in the COPYING file in the root directory of this source tree). + * You may select, at your option, one of the above-listed licenses. + */ + +#ifndef ZSTD_ZDICT_H +#define ZSTD_ZDICT_H + + +/*====== Dependencies ======*/ +#include /* size_t */ + +#if defined (__cplusplus) +extern "C" { +#endif + +/* ===== ZDICTLIB_API : control library symbols visibility ===== */ +#ifndef ZDICTLIB_VISIBLE + /* Backwards compatibility with old macro name */ +# ifdef ZDICTLIB_VISIBILITY +# define ZDICTLIB_VISIBLE ZDICTLIB_VISIBILITY +# elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZDICTLIB_VISIBLE __attribute__ ((visibility ("default"))) +# else +# define ZDICTLIB_VISIBLE +# endif +#endif + +#ifndef ZDICTLIB_HIDDEN +# if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZDICTLIB_HIDDEN __attribute__ ((visibility ("hidden"))) +# else +# define ZDICTLIB_HIDDEN +# endif +#endif + +#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# define ZDICTLIB_API __declspec(dllexport) ZDICTLIB_VISIBLE +#elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1) +# define ZDICTLIB_API __declspec(dllimport) ZDICTLIB_VISIBLE /* It isn't required but allows to generate better code, saving a function pointer load from the IAT and an indirect jump.*/ +#else +# define ZDICTLIB_API ZDICTLIB_VISIBLE +#endif + +/******************************************************************************* + * Zstd dictionary builder + * + * FAQ + * === + * Why should I use a dictionary? + * ------------------------------ + * + * Zstd can use dictionaries to improve compression ratio of small data. + * Traditionally small files don't compress well because there is very little + * repetition in a single sample, since it is small. But, if you are compressing + * many similar files, like a bunch of JSON records that share the same + * structure, you can train a dictionary on ahead of time on some samples of + * these files. Then, zstd can use the dictionary to find repetitions that are + * present across samples. This can vastly improve compression ratio. + * + * When is a dictionary useful? + * ---------------------------- + * + * Dictionaries are useful when compressing many small files that are similar. + * The larger a file is, the less benefit a dictionary will have. Generally, + * we don't expect dictionary compression to be effective past 100KB. And the + * smaller a file is, the more we would expect the dictionary to help. + * + * How do I use a dictionary? + * -------------------------- + * + * Simply pass the dictionary to the zstd compressor with + * `ZSTD_CCtx_loadDictionary()`. The same dictionary must then be passed to + * the decompressor, using `ZSTD_DCtx_loadDictionary()`. There are other + * more advanced functions that allow selecting some options, see zstd.h for + * complete documentation. + * + * What is a zstd dictionary? + * -------------------------- + * + * A zstd dictionary has two pieces: Its header, and its content. The header + * contains a magic number, the dictionary ID, and entropy tables. These + * entropy tables allow zstd to save on header costs in the compressed file, + * which really matters for small data. The content is just bytes, which are + * repeated content that is common across many samples. + * + * What is a raw content dictionary? + * --------------------------------- + * + * A raw content dictionary is just bytes. It doesn't have a zstd dictionary + * header, a dictionary ID, or entropy tables. Any buffer is a valid raw + * content dictionary. + * + * How do I train a dictionary? + * ---------------------------- + * + * Gather samples from your use case. These samples should be similar to each + * other. If you have several use cases, you could try to train one dictionary + * per use case. + * + * Pass those samples to `ZDICT_trainFromBuffer()` and that will train your + * dictionary. There are a few advanced versions of this function, but this + * is a great starting point. If you want to further tune your dictionary + * you could try `ZDICT_optimizeTrainFromBuffer_cover()`. If that is too slow + * you can try `ZDICT_optimizeTrainFromBuffer_fastCover()`. + * + * If the dictionary training function fails, that is likely because you + * either passed too few samples, or a dictionary would not be effective + * for your data. Look at the messages that the dictionary trainer printed, + * if it doesn't say too few samples, then a dictionary would not be effective. + * + * How large should my dictionary be? + * ---------------------------------- + * + * A reasonable dictionary size, the `dictBufferCapacity`, is about 100KB. + * The zstd CLI defaults to a 110KB dictionary. You likely don't need a + * dictionary larger than that. But, most use cases can get away with a + * smaller dictionary. The advanced dictionary builders can automatically + * shrink the dictionary for you, and select the smallest size that doesn't + * hurt compression ratio too much. See the `shrinkDict` parameter. + * A smaller dictionary can save memory, and potentially speed up + * compression. + * + * How many samples should I provide to the dictionary builder? + * ------------------------------------------------------------ + * + * We generally recommend passing ~100x the size of the dictionary + * in samples. A few thousand should suffice. Having too few samples + * can hurt the dictionaries effectiveness. Having more samples will + * only improve the dictionaries effectiveness. But having too many + * samples can slow down the dictionary builder. + * + * How do I determine if a dictionary will be effective? + * ----------------------------------------------------- + * + * Simply train a dictionary and try it out. You can use zstd's built in + * benchmarking tool to test the dictionary effectiveness. + * + * # Benchmark levels 1-3 without a dictionary + * zstd -b1e3 -r /path/to/my/files + * # Benchmark levels 1-3 with a dictionary + * zstd -b1e3 -r /path/to/my/files -D /path/to/my/dictionary + * + * When should I retrain a dictionary? + * ----------------------------------- + * + * You should retrain a dictionary when its effectiveness drops. Dictionary + * effectiveness drops as the data you are compressing changes. Generally, we do + * expect dictionaries to "decay" over time, as your data changes, but the rate + * at which they decay depends on your use case. Internally, we regularly + * retrain dictionaries, and if the new dictionary performs significantly + * better than the old dictionary, we will ship the new dictionary. + * + * I have a raw content dictionary, how do I turn it into a zstd dictionary? + * ------------------------------------------------------------------------- + * + * If you have a raw content dictionary, e.g. by manually constructing it, or + * using a third-party dictionary builder, you can turn it into a zstd + * dictionary by using `ZDICT_finalizeDictionary()`. You'll also have to + * provide some samples of the data. It will add the zstd header to the + * raw content, which contains a dictionary ID and entropy tables, which + * will improve compression ratio, and allow zstd to write the dictionary ID + * into the frame, if you so choose. + * + * Do I have to use zstd's dictionary builder? + * ------------------------------------------- + * + * No! You can construct dictionary content however you please, it is just + * bytes. It will always be valid as a raw content dictionary. If you want + * a zstd dictionary, which can improve compression ratio, use + * `ZDICT_finalizeDictionary()`. + * + * What is the attack surface of a zstd dictionary? + * ------------------------------------------------ + * + * Zstd is heavily fuzz tested, including loading fuzzed dictionaries, so + * zstd should never crash, or access out-of-bounds memory no matter what + * the dictionary is. However, if an attacker can control the dictionary + * during decompression, they can cause zstd to generate arbitrary bytes, + * just like if they controlled the compressed data. + * + ******************************************************************************/ + + +/*! ZDICT_trainFromBuffer(): + * Train a dictionary from an array of samples. + * Redirect towards ZDICT_optimizeTrainFromBuffer_fastCover() single-threaded, with d=8, steps=4, + * f=20, and accel=1. + * Samples must be stored concatenated in a single flat buffer `samplesBuffer`, + * supplied with an array of sizes `samplesSizes`, providing the size of each sample, in order. + * The resulting dictionary will be saved into `dictBuffer`. + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * Note: Dictionary training will fail if there are not enough samples to construct a + * dictionary, or if most of the samples are too small (< 8 bytes being the lower limit). + * If dictionary training fails, you should use zstd without a dictionary, as the dictionary + * would've been ineffective anyways. If you believe your samples would benefit from a dictionary + * please open an issue with details, and we can look into it. + * Note: ZDICT_trainFromBuffer()'s memory usage is about 6 MB. + * Tips: In general, a reasonable dictionary has a size of ~ 100 KB. + * It's possible to select smaller or larger size, just by specifying `dictBufferCapacity`. + * In general, it's recommended to provide a few thousands samples, though this can vary a lot. + * It's recommended that total size of all samples be about ~x100 times the target size of dictionary. + */ +ZDICTLIB_API size_t ZDICT_trainFromBuffer(void* dictBuffer, size_t dictBufferCapacity, + const void* samplesBuffer, + const size_t* samplesSizes, unsigned nbSamples); + +typedef struct { + int compressionLevel; /**< optimize for a specific zstd compression level; 0 means default */ + unsigned notificationLevel; /**< Write log to stderr; 0 = none (default); 1 = errors; 2 = progression; 3 = details; 4 = debug; */ + unsigned dictID; /**< force dictID value; 0 means auto mode (32-bits random value) + * NOTE: The zstd format reserves some dictionary IDs for future use. + * You may use them in private settings, but be warned that they + * may be used by zstd in a public dictionary registry in the future. + * These dictionary IDs are: + * - low range : <= 32767 + * - high range : >= (2^31) + */ +} ZDICT_params_t; + +/*! ZDICT_finalizeDictionary(): + * Given a custom content as a basis for dictionary, and a set of samples, + * finalize dictionary by adding headers and statistics according to the zstd + * dictionary format. + * + * Samples must be stored concatenated in a flat buffer `samplesBuffer`, + * supplied with an array of sizes `samplesSizes`, providing the size of each + * sample in order. The samples are used to construct the statistics, so they + * should be representative of what you will compress with this dictionary. + * + * The compression level can be set in `parameters`. You should pass the + * compression level you expect to use in production. The statistics for each + * compression level differ, so tuning the dictionary for the compression level + * can help quite a bit. + * + * You can set an explicit dictionary ID in `parameters`, or allow us to pick + * a random dictionary ID for you, but we can't guarantee no collisions. + * + * The dstDictBuffer and the dictContent may overlap, and the content will be + * appended to the end of the header. If the header + the content doesn't fit in + * maxDictSize the beginning of the content is truncated to make room, since it + * is presumed that the most profitable content is at the end of the dictionary, + * since that is the cheapest to reference. + * + * `maxDictSize` must be >= max(dictContentSize, ZDICT_DICTSIZE_MIN). + * + * @return: size of dictionary stored into `dstDictBuffer` (<= `maxDictSize`), + * or an error code, which can be tested by ZDICT_isError(). + * Note: ZDICT_finalizeDictionary() will push notifications into stderr if + * instructed to, using notificationLevel>0. + * NOTE: This function currently may fail in several edge cases including: + * * Not enough samples + * * Samples are uncompressible + * * Samples are all exactly the same + */ +ZDICTLIB_API size_t ZDICT_finalizeDictionary(void* dstDictBuffer, size_t maxDictSize, + const void* dictContent, size_t dictContentSize, + const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, + ZDICT_params_t parameters); + + +/*====== Helper functions ======*/ +ZDICTLIB_API unsigned ZDICT_getDictID(const void* dictBuffer, size_t dictSize); /**< extracts dictID; @return zero if error (not a valid dictionary) */ +ZDICTLIB_API size_t ZDICT_getDictHeaderSize(const void* dictBuffer, size_t dictSize); /* returns dict header size; returns a ZSTD error code on failure */ +ZDICTLIB_API unsigned ZDICT_isError(size_t errorCode); +ZDICTLIB_API const char* ZDICT_getErrorName(size_t errorCode); + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_ZDICT_H */ + +#if defined(ZDICT_STATIC_LINKING_ONLY) && !defined(ZSTD_ZDICT_H_STATIC) +#define ZSTD_ZDICT_H_STATIC + +#if defined (__cplusplus) +extern "C" { +#endif + +/* This can be overridden externally to hide static symbols. */ +#ifndef ZDICTLIB_STATIC_API +# if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# define ZDICTLIB_STATIC_API __declspec(dllexport) ZDICTLIB_VISIBLE +# elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1) +# define ZDICTLIB_STATIC_API __declspec(dllimport) ZDICTLIB_VISIBLE +# else +# define ZDICTLIB_STATIC_API ZDICTLIB_VISIBLE +# endif +#endif + +/* ==================================================================================== + * The definitions in this section are considered experimental. + * They should never be used with a dynamic library, as they may change in the future. + * They are provided for advanced usages. + * Use them only in association with static linking. + * ==================================================================================== */ + +#define ZDICT_DICTSIZE_MIN 256 +/* Deprecated: Remove in v1.6.0 */ +#define ZDICT_CONTENTSIZE_MIN 128 + +/*! ZDICT_cover_params_t: + * k and d are the only required parameters. + * For others, value 0 means default. + */ +typedef struct { + unsigned k; /* Segment size : constraint: 0 < k : Reasonable range [16, 2048+] */ + unsigned d; /* dmer size : constraint: 0 < d <= k : Reasonable range [6, 16] */ + unsigned steps; /* Number of steps : Only used for optimization : 0 means default (40) : Higher means more parameters checked */ + unsigned nbThreads; /* Number of threads : constraint: 0 < nbThreads : 1 means single-threaded : Only used for optimization : Ignored if ZSTD_MULTITHREAD is not defined */ + double splitPoint; /* Percentage of samples used for training: Only used for optimization : the first nbSamples * splitPoint samples will be used to training, the last nbSamples * (1 - splitPoint) samples will be used for testing, 0 means default (1.0), 1.0 when all samples are used for both training and testing */ + unsigned shrinkDict; /* Train dictionaries to shrink in size starting from the minimum size and selects the smallest dictionary that is shrinkDictMaxRegression% worse than the largest dictionary. 0 means no shrinking and 1 means shrinking */ + unsigned shrinkDictMaxRegression; /* Sets shrinkDictMaxRegression so that a smaller dictionary can be at worse shrinkDictMaxRegression% worse than the max dict size dictionary. */ + ZDICT_params_t zParams; +} ZDICT_cover_params_t; + +typedef struct { + unsigned k; /* Segment size : constraint: 0 < k : Reasonable range [16, 2048+] */ + unsigned d; /* dmer size : constraint: 0 < d <= k : Reasonable range [6, 16] */ + unsigned f; /* log of size of frequency array : constraint: 0 < f <= 31 : 1 means default(20)*/ + unsigned steps; /* Number of steps : Only used for optimization : 0 means default (40) : Higher means more parameters checked */ + unsigned nbThreads; /* Number of threads : constraint: 0 < nbThreads : 1 means single-threaded : Only used for optimization : Ignored if ZSTD_MULTITHREAD is not defined */ + double splitPoint; /* Percentage of samples used for training: Only used for optimization : the first nbSamples * splitPoint samples will be used to training, the last nbSamples * (1 - splitPoint) samples will be used for testing, 0 means default (0.75), 1.0 when all samples are used for both training and testing */ + unsigned accel; /* Acceleration level: constraint: 0 < accel <= 10, higher means faster and less accurate, 0 means default(1) */ + unsigned shrinkDict; /* Train dictionaries to shrink in size starting from the minimum size and selects the smallest dictionary that is shrinkDictMaxRegression% worse than the largest dictionary. 0 means no shrinking and 1 means shrinking */ + unsigned shrinkDictMaxRegression; /* Sets shrinkDictMaxRegression so that a smaller dictionary can be at worse shrinkDictMaxRegression% worse than the max dict size dictionary. */ + + ZDICT_params_t zParams; +} ZDICT_fastCover_params_t; + +/*! ZDICT_trainFromBuffer_cover(): + * Train a dictionary from an array of samples using the COVER algorithm. + * Samples must be stored concatenated in a single flat buffer `samplesBuffer`, + * supplied with an array of sizes `samplesSizes`, providing the size of each sample, in order. + * The resulting dictionary will be saved into `dictBuffer`. + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * See ZDICT_trainFromBuffer() for details on failure modes. + * Note: ZDICT_trainFromBuffer_cover() requires about 9 bytes of memory for each input byte. + * Tips: In general, a reasonable dictionary has a size of ~ 100 KB. + * It's possible to select smaller or larger size, just by specifying `dictBufferCapacity`. + * In general, it's recommended to provide a few thousands samples, though this can vary a lot. + * It's recommended that total size of all samples be about ~x100 times the target size of dictionary. + */ +ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_cover( + void *dictBuffer, size_t dictBufferCapacity, + const void *samplesBuffer, const size_t *samplesSizes, unsigned nbSamples, + ZDICT_cover_params_t parameters); + +/*! ZDICT_optimizeTrainFromBuffer_cover(): + * The same requirements as above hold for all the parameters except `parameters`. + * This function tries many parameter combinations and picks the best parameters. + * `*parameters` is filled with the best parameters found, + * dictionary constructed with those parameters is stored in `dictBuffer`. + * + * All of the parameters d, k, steps are optional. + * If d is non-zero then we don't check multiple values of d, otherwise we check d = {6, 8}. + * if steps is zero it defaults to its default value. + * If k is non-zero then we don't check multiple values of k, otherwise we check steps values in [50, 2000]. + * + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * On success `*parameters` contains the parameters selected. + * See ZDICT_trainFromBuffer() for details on failure modes. + * Note: ZDICT_optimizeTrainFromBuffer_cover() requires about 8 bytes of memory for each input byte and additionally another 5 bytes of memory for each byte of memory for each thread. + */ +ZDICTLIB_STATIC_API size_t ZDICT_optimizeTrainFromBuffer_cover( + void* dictBuffer, size_t dictBufferCapacity, + const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, + ZDICT_cover_params_t* parameters); + +/*! ZDICT_trainFromBuffer_fastCover(): + * Train a dictionary from an array of samples using a modified version of COVER algorithm. + * Samples must be stored concatenated in a single flat buffer `samplesBuffer`, + * supplied with an array of sizes `samplesSizes`, providing the size of each sample, in order. + * d and k are required. + * All other parameters are optional, will use default values if not provided + * The resulting dictionary will be saved into `dictBuffer`. + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * See ZDICT_trainFromBuffer() for details on failure modes. + * Note: ZDICT_trainFromBuffer_fastCover() requires 6 * 2^f bytes of memory. + * Tips: In general, a reasonable dictionary has a size of ~ 100 KB. + * It's possible to select smaller or larger size, just by specifying `dictBufferCapacity`. + * In general, it's recommended to provide a few thousands samples, though this can vary a lot. + * It's recommended that total size of all samples be about ~x100 times the target size of dictionary. + */ +ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_fastCover(void *dictBuffer, + size_t dictBufferCapacity, const void *samplesBuffer, + const size_t *samplesSizes, unsigned nbSamples, + ZDICT_fastCover_params_t parameters); + +/*! ZDICT_optimizeTrainFromBuffer_fastCover(): + * The same requirements as above hold for all the parameters except `parameters`. + * This function tries many parameter combinations (specifically, k and d combinations) + * and picks the best parameters. `*parameters` is filled with the best parameters found, + * dictionary constructed with those parameters is stored in `dictBuffer`. + * All of the parameters d, k, steps, f, and accel are optional. + * If d is non-zero then we don't check multiple values of d, otherwise we check d = {6, 8}. + * if steps is zero it defaults to its default value. + * If k is non-zero then we don't check multiple values of k, otherwise we check steps values in [50, 2000]. + * If f is zero, default value of 20 is used. + * If accel is zero, default value of 1 is used. + * + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * On success `*parameters` contains the parameters selected. + * See ZDICT_trainFromBuffer() for details on failure modes. + * Note: ZDICT_optimizeTrainFromBuffer_fastCover() requires about 6 * 2^f bytes of memory for each thread. + */ +ZDICTLIB_STATIC_API size_t ZDICT_optimizeTrainFromBuffer_fastCover(void* dictBuffer, + size_t dictBufferCapacity, const void* samplesBuffer, + const size_t* samplesSizes, unsigned nbSamples, + ZDICT_fastCover_params_t* parameters); + +typedef struct { + unsigned selectivityLevel; /* 0 means default; larger => select more => larger dictionary */ + ZDICT_params_t zParams; +} ZDICT_legacy_params_t; + +/*! ZDICT_trainFromBuffer_legacy(): + * Train a dictionary from an array of samples. + * Samples must be stored concatenated in a single flat buffer `samplesBuffer`, + * supplied with an array of sizes `samplesSizes`, providing the size of each sample, in order. + * The resulting dictionary will be saved into `dictBuffer`. + * `parameters` is optional and can be provided with values set to 0 to mean "default". + * @return: size of dictionary stored into `dictBuffer` (<= `dictBufferCapacity`) + * or an error code, which can be tested with ZDICT_isError(). + * See ZDICT_trainFromBuffer() for details on failure modes. + * Tips: In general, a reasonable dictionary has a size of ~ 100 KB. + * It's possible to select smaller or larger size, just by specifying `dictBufferCapacity`. + * In general, it's recommended to provide a few thousands samples, though this can vary a lot. + * It's recommended that total size of all samples be about ~x100 times the target size of dictionary. + * Note: ZDICT_trainFromBuffer_legacy() will send notifications into stderr if instructed to, using notificationLevel>0. + */ +ZDICTLIB_STATIC_API size_t ZDICT_trainFromBuffer_legacy( + void* dictBuffer, size_t dictBufferCapacity, + const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples, + ZDICT_legacy_params_t parameters); + + +/* Deprecation warnings */ +/* It is generally possible to disable deprecation warnings from compiler, + for example with -Wno-deprecated-declarations for gcc + or _CRT_SECURE_NO_WARNINGS in Visual. + Otherwise, it's also possible to manually define ZDICT_DISABLE_DEPRECATE_WARNINGS */ +#ifdef ZDICT_DISABLE_DEPRECATE_WARNINGS +# define ZDICT_DEPRECATED(message) /* disable deprecation warnings */ +#else +# define ZDICT_GCC_VERSION (__GNUC__ * 100 + __GNUC_MINOR__) +# if defined (__cplusplus) && (__cplusplus >= 201402) /* C++14 or greater */ +# define ZDICT_DEPRECATED(message) [[deprecated(message)]] +# elif defined(__clang__) || (ZDICT_GCC_VERSION >= 405) +# define ZDICT_DEPRECATED(message) __attribute__((deprecated(message))) +# elif (ZDICT_GCC_VERSION >= 301) +# define ZDICT_DEPRECATED(message) __attribute__((deprecated)) +# elif defined(_MSC_VER) +# define ZDICT_DEPRECATED(message) __declspec(deprecated(message)) +# else +# pragma message("WARNING: You need to implement ZDICT_DEPRECATED for this compiler") +# define ZDICT_DEPRECATED(message) +# endif +#endif /* ZDICT_DISABLE_DEPRECATE_WARNINGS */ + +ZDICT_DEPRECATED("use ZDICT_finalizeDictionary() instead") +ZDICTLIB_STATIC_API +size_t ZDICT_addEntropyTablesFromBuffer(void* dictBuffer, size_t dictContentSize, size_t dictBufferCapacity, + const void* samplesBuffer, const size_t* samplesSizes, unsigned nbSamples); + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_ZDICT_H_STATIC */ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd.h b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd.h new file mode 100644 index 0000000000000000000000000000000000000000..b8c0644a7ec6533916e06aa8392a2727cbe55573 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd.h @@ -0,0 +1,3198 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under both the BSD-style license (found in the + * LICENSE file in the root directory of this source tree) and the GPLv2 (found + * in the COPYING file in the root directory of this source tree). + * You may select, at your option, one of the above-listed licenses. + */ + +#ifndef ZSTD_H_235446 +#define ZSTD_H_235446 + + +/* ====== Dependencies ======*/ +#include /* size_t */ + +#include "zstd_errors.h" /* list of errors */ +#if defined(ZSTD_STATIC_LINKING_ONLY) && !defined(ZSTD_H_ZSTD_STATIC_LINKING_ONLY) +#include /* INT_MAX */ +#endif /* ZSTD_STATIC_LINKING_ONLY */ + +#if defined (__cplusplus) +extern "C" { +#endif + +/* ===== ZSTDLIB_API : control library symbols visibility ===== */ +#ifndef ZSTDLIB_VISIBLE + /* Backwards compatibility with old macro name */ +# ifdef ZSTDLIB_VISIBILITY +# define ZSTDLIB_VISIBLE ZSTDLIB_VISIBILITY +# elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZSTDLIB_VISIBLE __attribute__ ((visibility ("default"))) +# else +# define ZSTDLIB_VISIBLE +# endif +#endif + +#ifndef ZSTDLIB_HIDDEN +# if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZSTDLIB_HIDDEN __attribute__ ((visibility ("hidden"))) +# else +# define ZSTDLIB_HIDDEN +# endif +#endif + +#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# define ZSTDLIB_API __declspec(dllexport) ZSTDLIB_VISIBLE +#elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1) +# define ZSTDLIB_API __declspec(dllimport) ZSTDLIB_VISIBLE /* It isn't required but allows to generate better code, saving a function pointer load from the IAT and an indirect jump.*/ +#else +# define ZSTDLIB_API ZSTDLIB_VISIBLE +#endif + +/* Deprecation warnings : + * Should these warnings be a problem, it is generally possible to disable them, + * typically with -Wno-deprecated-declarations for gcc or _CRT_SECURE_NO_WARNINGS in Visual. + * Otherwise, it's also possible to define ZSTD_DISABLE_DEPRECATE_WARNINGS. + */ +#ifdef ZSTD_DISABLE_DEPRECATE_WARNINGS +# define ZSTD_DEPRECATED(message) /* disable deprecation warnings */ +#else +# if defined (__cplusplus) && (__cplusplus >= 201402) /* C++14 or greater */ +# define ZSTD_DEPRECATED(message) [[deprecated(message)]] +# elif (defined(GNUC) && (GNUC > 4 || (GNUC == 4 && GNUC_MINOR >= 5))) || defined(__clang__) || defined(__IAR_SYSTEMS_ICC__) +# define ZSTD_DEPRECATED(message) __attribute__((deprecated(message))) +# elif defined(__GNUC__) && (__GNUC__ >= 3) +# define ZSTD_DEPRECATED(message) __attribute__((deprecated)) +# elif defined(_MSC_VER) +# define ZSTD_DEPRECATED(message) __declspec(deprecated(message)) +# else +# pragma message("WARNING: You need to implement ZSTD_DEPRECATED for this compiler") +# define ZSTD_DEPRECATED(message) +# endif +#endif /* ZSTD_DISABLE_DEPRECATE_WARNINGS */ + + +/******************************************************************************* + Introduction + + zstd, short for Zstandard, is a fast lossless compression algorithm, targeting + real-time compression scenarios at zlib-level and better compression ratios. + The zstd compression library provides in-memory compression and decompression + functions. + + The library supports regular compression levels from 1 up to ZSTD_maxCLevel(), + which is currently 22. Levels >= 20, labeled `--ultra`, should be used with + caution, as they require more memory. The library also offers negative + compression levels, which extend the range of speed vs. ratio preferences. + The lower the level, the faster the speed (at the cost of compression). + + Compression can be done in: + - a single step (described as Simple API) + - a single step, reusing a context (described as Explicit context) + - unbounded multiple steps (described as Streaming compression) + + The compression ratio achievable on small data can be highly improved using + a dictionary. Dictionary compression can be performed in: + - a single step (described as Simple dictionary API) + - a single step, reusing a dictionary (described as Bulk-processing + dictionary API) + + Advanced experimental functions can be accessed using + `#define ZSTD_STATIC_LINKING_ONLY` before including zstd.h. + + Advanced experimental APIs should never be used with a dynamically-linked + library. They are not "stable"; their definitions or signatures may change in + the future. Only static linking is allowed. +*******************************************************************************/ + +/*------ Version ------*/ +#define ZSTD_VERSION_MAJOR 1 +#define ZSTD_VERSION_MINOR 5 +#define ZSTD_VERSION_RELEASE 7 +#define ZSTD_VERSION_NUMBER (ZSTD_VERSION_MAJOR *100*100 + ZSTD_VERSION_MINOR *100 + ZSTD_VERSION_RELEASE) + +/*! ZSTD_versionNumber() : + * Return runtime library version, the value is (MAJOR*100*100 + MINOR*100 + RELEASE). */ +ZSTDLIB_API unsigned ZSTD_versionNumber(void); + +#define ZSTD_LIB_VERSION ZSTD_VERSION_MAJOR.ZSTD_VERSION_MINOR.ZSTD_VERSION_RELEASE +#define ZSTD_QUOTE(str) #str +#define ZSTD_EXPAND_AND_QUOTE(str) ZSTD_QUOTE(str) +#define ZSTD_VERSION_STRING ZSTD_EXPAND_AND_QUOTE(ZSTD_LIB_VERSION) + +/*! ZSTD_versionString() : + * Return runtime library version, like "1.4.5". Requires v1.3.0+. */ +ZSTDLIB_API const char* ZSTD_versionString(void); + +/* ************************************* + * Default constant + ***************************************/ +#ifndef ZSTD_CLEVEL_DEFAULT +# define ZSTD_CLEVEL_DEFAULT 3 +#endif + +/* ************************************* + * Constants + ***************************************/ + +/* All magic numbers are supposed read/written to/from files/memory using little-endian convention */ +#define ZSTD_MAGICNUMBER 0xFD2FB528 /* valid since v0.8.0 */ +#define ZSTD_MAGIC_DICTIONARY 0xEC30A437 /* valid since v0.7.0 */ +#define ZSTD_MAGIC_SKIPPABLE_START 0x184D2A50 /* all 16 values, from 0x184D2A50 to 0x184D2A5F, signal the beginning of a skippable frame */ +#define ZSTD_MAGIC_SKIPPABLE_MASK 0xFFFFFFF0 + +#define ZSTD_BLOCKSIZELOG_MAX 17 +#define ZSTD_BLOCKSIZE_MAX (1<= ZSTD_compressBound(srcSize)` guarantees that zstd will have + * enough space to successfully compress the data. + * @return : compressed size written into `dst` (<= `dstCapacity), + * or an error code if it fails (which can be tested using ZSTD_isError()). */ +ZSTDLIB_API size_t ZSTD_compress( void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + int compressionLevel); + +/*! ZSTD_decompress() : + * `compressedSize` : must be the _exact_ size of some number of compressed and/or skippable frames. + * Multiple compressed frames can be decompressed at once with this method. + * The result will be the concatenation of all decompressed frames, back to back. + * `dstCapacity` is an upper bound of originalSize to regenerate. + * First frame's decompressed size can be extracted using ZSTD_getFrameContentSize(). + * If maximum upper bound isn't known, prefer using streaming mode to decompress data. + * @return : the number of bytes decompressed into `dst` (<= `dstCapacity`), + * or an errorCode if it fails (which can be tested using ZSTD_isError()). */ +ZSTDLIB_API size_t ZSTD_decompress( void* dst, size_t dstCapacity, + const void* src, size_t compressedSize); + + +/*====== Decompression helper functions ======*/ + +/*! ZSTD_getFrameContentSize() : requires v1.3.0+ + * `src` should point to the start of a ZSTD encoded frame. + * `srcSize` must be at least as large as the frame header. + * hint : any size >= `ZSTD_frameHeaderSize_max` is large enough. + * @return : - decompressed size of `src` frame content, if known + * - ZSTD_CONTENTSIZE_UNKNOWN if the size cannot be determined + * - ZSTD_CONTENTSIZE_ERROR if an error occurred (e.g. invalid magic number, srcSize too small) + * note 1 : a 0 return value means the frame is valid but "empty". + * When invoking this method on a skippable frame, it will return 0. + * note 2 : decompressed size is an optional field, it may not be present (typically in streaming mode). + * When `return==ZSTD_CONTENTSIZE_UNKNOWN`, data to decompress could be any size. + * In which case, it's necessary to use streaming mode to decompress data. + * Optionally, application can rely on some implicit limit, + * as ZSTD_decompress() only needs an upper bound of decompressed size. + * (For example, data could be necessarily cut into blocks <= 16 KB). + * note 3 : decompressed size is always present when compression is completed using single-pass functions, + * such as ZSTD_compress(), ZSTD_compressCCtx() ZSTD_compress_usingDict() or ZSTD_compress_usingCDict(). + * note 4 : decompressed size can be very large (64-bits value), + * potentially larger than what local system can handle as a single memory segment. + * In which case, it's necessary to use streaming mode to decompress data. + * note 5 : If source is untrusted, decompressed size could be wrong or intentionally modified. + * Always ensure return value fits within application's authorized limits. + * Each application can set its own limits. + * note 6 : This function replaces ZSTD_getDecompressedSize() */ +#define ZSTD_CONTENTSIZE_UNKNOWN (0ULL - 1) +#define ZSTD_CONTENTSIZE_ERROR (0ULL - 2) +ZSTDLIB_API unsigned long long ZSTD_getFrameContentSize(const void *src, size_t srcSize); + +/*! ZSTD_getDecompressedSize() (obsolete): + * This function is now obsolete, in favor of ZSTD_getFrameContentSize(). + * Both functions work the same way, but ZSTD_getDecompressedSize() blends + * "empty", "unknown" and "error" results to the same return value (0), + * while ZSTD_getFrameContentSize() gives them separate return values. + * @return : decompressed size of `src` frame content _if known and not empty_, 0 otherwise. */ +ZSTD_DEPRECATED("Replaced by ZSTD_getFrameContentSize") +ZSTDLIB_API unsigned long long ZSTD_getDecompressedSize(const void* src, size_t srcSize); + +/*! ZSTD_findFrameCompressedSize() : Requires v1.4.0+ + * `src` should point to the start of a ZSTD frame or skippable frame. + * `srcSize` must be >= first frame size + * @return : the compressed size of the first frame starting at `src`, + * suitable to pass as `srcSize` to `ZSTD_decompress` or similar, + * or an error code if input is invalid + * Note 1: this method is called _find*() because it's not enough to read the header, + * it may have to scan through the frame's content, to reach its end. + * Note 2: this method also works with Skippable Frames. In which case, + * it returns the size of the complete skippable frame, + * which is always equal to its content size + 8 bytes for headers. */ +ZSTDLIB_API size_t ZSTD_findFrameCompressedSize(const void* src, size_t srcSize); + + +/*====== Compression helper functions ======*/ + +/*! ZSTD_compressBound() : + * maximum compressed size in worst case single-pass scenario. + * When invoking `ZSTD_compress()`, or any other one-pass compression function, + * it's recommended to provide @dstCapacity >= ZSTD_compressBound(srcSize) + * as it eliminates one potential failure scenario, + * aka not enough room in dst buffer to write the compressed frame. + * Note : ZSTD_compressBound() itself can fail, if @srcSize >= ZSTD_MAX_INPUT_SIZE . + * In which case, ZSTD_compressBound() will return an error code + * which can be tested using ZSTD_isError(). + * + * ZSTD_COMPRESSBOUND() : + * same as ZSTD_compressBound(), but as a macro. + * It can be used to produce constants, which can be useful for static allocation, + * for example to size a static array on stack. + * Will produce constant value 0 if srcSize is too large. + */ +#define ZSTD_MAX_INPUT_SIZE ((sizeof(size_t)==8) ? 0xFF00FF00FF00FF00ULL : 0xFF00FF00U) +#define ZSTD_COMPRESSBOUND(srcSize) (((size_t)(srcSize) >= ZSTD_MAX_INPUT_SIZE) ? 0 : (srcSize) + ((srcSize)>>8) + (((srcSize) < (128<<10)) ? (((128<<10) - (srcSize)) >> 11) /* margin, from 64 to 0 */ : 0)) /* this formula ensures that bound(A) + bound(B) <= bound(A+B) as long as A and B >= 128 KB */ +ZSTDLIB_API size_t ZSTD_compressBound(size_t srcSize); /*!< maximum compressed size in worst case single-pass scenario */ + + +/*====== Error helper functions ======*/ +/* ZSTD_isError() : + * Most ZSTD_* functions returning a size_t value can be tested for error, + * using ZSTD_isError(). + * @return 1 if error, 0 otherwise + */ +ZSTDLIB_API unsigned ZSTD_isError(size_t result); /*!< tells if a `size_t` function result is an error code */ +ZSTDLIB_API ZSTD_ErrorCode ZSTD_getErrorCode(size_t functionResult); /* convert a result into an error code, which can be compared to error enum list */ +ZSTDLIB_API const char* ZSTD_getErrorName(size_t result); /*!< provides readable string from a function result */ +ZSTDLIB_API int ZSTD_minCLevel(void); /*!< minimum negative compression level allowed, requires v1.4.0+ */ +ZSTDLIB_API int ZSTD_maxCLevel(void); /*!< maximum compression level available */ +ZSTDLIB_API int ZSTD_defaultCLevel(void); /*!< default compression level, specified by ZSTD_CLEVEL_DEFAULT, requires v1.5.0+ */ + + +/*************************************** +* Explicit context +***************************************/ +/*= Compression context + * When compressing many times, + * it is recommended to allocate a compression context just once, + * and reuse it for each successive compression operation. + * This will make the workload easier for system's memory. + * Note : re-using context is just a speed / resource optimization. + * It doesn't change the compression ratio, which remains identical. + * Note 2: For parallel execution in multi-threaded environments, + * use one different context per thread . + */ +typedef struct ZSTD_CCtx_s ZSTD_CCtx; +ZSTDLIB_API ZSTD_CCtx* ZSTD_createCCtx(void); +ZSTDLIB_API size_t ZSTD_freeCCtx(ZSTD_CCtx* cctx); /* compatible with NULL pointer */ + +/*! ZSTD_compressCCtx() : + * Same as ZSTD_compress(), using an explicit ZSTD_CCtx. + * Important : in order to mirror `ZSTD_compress()` behavior, + * this function compresses at the requested compression level, + * __ignoring any other advanced parameter__ . + * If any advanced parameter was set using the advanced API, + * they will all be reset. Only @compressionLevel remains. + */ +ZSTDLIB_API size_t ZSTD_compressCCtx(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + int compressionLevel); + +/*= Decompression context + * When decompressing many times, + * it is recommended to allocate a context only once, + * and reuse it for each successive compression operation. + * This will make workload friendlier for system's memory. + * Use one context per thread for parallel execution. */ +typedef struct ZSTD_DCtx_s ZSTD_DCtx; +ZSTDLIB_API ZSTD_DCtx* ZSTD_createDCtx(void); +ZSTDLIB_API size_t ZSTD_freeDCtx(ZSTD_DCtx* dctx); /* accept NULL pointer */ + +/*! ZSTD_decompressDCtx() : + * Same as ZSTD_decompress(), + * requires an allocated ZSTD_DCtx. + * Compatible with sticky parameters (see below). + */ +ZSTDLIB_API size_t ZSTD_decompressDCtx(ZSTD_DCtx* dctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize); + + +/********************************************* +* Advanced compression API (Requires v1.4.0+) +**********************************************/ + +/* API design : + * Parameters are pushed one by one into an existing context, + * using ZSTD_CCtx_set*() functions. + * Pushed parameters are sticky : they are valid for next compressed frame, and any subsequent frame. + * "sticky" parameters are applicable to `ZSTD_compress2()` and `ZSTD_compressStream*()` ! + * __They do not apply to one-shot variants such as ZSTD_compressCCtx()__ . + * + * It's possible to reset all parameters to "default" using ZSTD_CCtx_reset(). + * + * This API supersedes all other "advanced" API entry points in the experimental section. + * In the future, we expect to remove API entry points from experimental which are redundant with this API. + */ + + +/* Compression strategies, listed from fastest to strongest */ +typedef enum { ZSTD_fast=1, + ZSTD_dfast=2, + ZSTD_greedy=3, + ZSTD_lazy=4, + ZSTD_lazy2=5, + ZSTD_btlazy2=6, + ZSTD_btopt=7, + ZSTD_btultra=8, + ZSTD_btultra2=9 + /* note : new strategies _might_ be added in the future. + Only the order (from fast to strong) is guaranteed */ +} ZSTD_strategy; + +typedef enum { + + /* compression parameters + * Note: When compressing with a ZSTD_CDict these parameters are superseded + * by the parameters used to construct the ZSTD_CDict. + * See ZSTD_CCtx_refCDict() for more info (superseded-by-cdict). */ + ZSTD_c_compressionLevel=100, /* Set compression parameters according to pre-defined cLevel table. + * Note that exact compression parameters are dynamically determined, + * depending on both compression level and srcSize (when known). + * Default level is ZSTD_CLEVEL_DEFAULT==3. + * Special: value 0 means default, which is controlled by ZSTD_CLEVEL_DEFAULT. + * Note 1 : it's possible to pass a negative compression level. + * Note 2 : setting a level does not automatically set all other compression parameters + * to default. Setting this will however eventually dynamically impact the compression + * parameters which have not been manually set. The manually set + * ones will 'stick'. */ + /* Advanced compression parameters : + * It's possible to pin down compression parameters to some specific values. + * In which case, these values are no longer dynamically selected by the compressor */ + ZSTD_c_windowLog=101, /* Maximum allowed back-reference distance, expressed as power of 2. + * This will set a memory budget for streaming decompression, + * with larger values requiring more memory + * and typically compressing more. + * Must be clamped between ZSTD_WINDOWLOG_MIN and ZSTD_WINDOWLOG_MAX. + * Special: value 0 means "use default windowLog". + * Note: Using a windowLog greater than ZSTD_WINDOWLOG_LIMIT_DEFAULT + * requires explicitly allowing such size at streaming decompression stage. */ + ZSTD_c_hashLog=102, /* Size of the initial probe table, as a power of 2. + * Resulting memory usage is (1 << (hashLog+2)). + * Must be clamped between ZSTD_HASHLOG_MIN and ZSTD_HASHLOG_MAX. + * Larger tables improve compression ratio of strategies <= dFast, + * and improve speed of strategies > dFast. + * Special: value 0 means "use default hashLog". */ + ZSTD_c_chainLog=103, /* Size of the multi-probe search table, as a power of 2. + * Resulting memory usage is (1 << (chainLog+2)). + * Must be clamped between ZSTD_CHAINLOG_MIN and ZSTD_CHAINLOG_MAX. + * Larger tables result in better and slower compression. + * This parameter is useless for "fast" strategy. + * It's still useful when using "dfast" strategy, + * in which case it defines a secondary probe table. + * Special: value 0 means "use default chainLog". */ + ZSTD_c_searchLog=104, /* Number of search attempts, as a power of 2. + * More attempts result in better and slower compression. + * This parameter is useless for "fast" and "dFast" strategies. + * Special: value 0 means "use default searchLog". */ + ZSTD_c_minMatch=105, /* Minimum size of searched matches. + * Note that Zstandard can still find matches of smaller size, + * it just tweaks its search algorithm to look for this size and larger. + * Larger values increase compression and decompression speed, but decrease ratio. + * Must be clamped between ZSTD_MINMATCH_MIN and ZSTD_MINMATCH_MAX. + * Note that currently, for all strategies < btopt, effective minimum is 4. + * , for all strategies > fast, effective maximum is 6. + * Special: value 0 means "use default minMatchLength". */ + ZSTD_c_targetLength=106, /* Impact of this field depends on strategy. + * For strategies btopt, btultra & btultra2: + * Length of Match considered "good enough" to stop search. + * Larger values make compression stronger, and slower. + * For strategy fast: + * Distance between match sampling. + * Larger values make compression faster, and weaker. + * Special: value 0 means "use default targetLength". */ + ZSTD_c_strategy=107, /* See ZSTD_strategy enum definition. + * The higher the value of selected strategy, the more complex it is, + * resulting in stronger and slower compression. + * Special: value 0 means "use default strategy". */ + + ZSTD_c_targetCBlockSize=130, /* v1.5.6+ + * Attempts to fit compressed block size into approximately targetCBlockSize. + * Bound by ZSTD_TARGETCBLOCKSIZE_MIN and ZSTD_TARGETCBLOCKSIZE_MAX. + * Note that it's not a guarantee, just a convergence target (default:0). + * No target when targetCBlockSize == 0. + * This is helpful in low bandwidth streaming environments to improve end-to-end latency, + * when a client can make use of partial documents (a prominent example being Chrome). + * Note: this parameter is stable since v1.5.6. + * It was present as an experimental parameter in earlier versions, + * but it's not recommended using it with earlier library versions + * due to massive performance regressions. + */ + /* LDM mode parameters */ + ZSTD_c_enableLongDistanceMatching=160, /* Enable long distance matching. + * This parameter is designed to improve compression ratio + * for large inputs, by finding large matches at long distance. + * It increases memory usage and window size. + * Note: enabling this parameter increases default ZSTD_c_windowLog to 128 MB + * except when expressly set to a different value. + * Note: will be enabled by default if ZSTD_c_windowLog >= 128 MB and + * compression strategy >= ZSTD_btopt (== compression level 16+) */ + ZSTD_c_ldmHashLog=161, /* Size of the table for long distance matching, as a power of 2. + * Larger values increase memory usage and compression ratio, + * but decrease compression speed. + * Must be clamped between ZSTD_HASHLOG_MIN and ZSTD_HASHLOG_MAX + * default: windowlog - 7. + * Special: value 0 means "automatically determine hashlog". */ + ZSTD_c_ldmMinMatch=162, /* Minimum match size for long distance matcher. + * Larger/too small values usually decrease compression ratio. + * Must be clamped between ZSTD_LDM_MINMATCH_MIN and ZSTD_LDM_MINMATCH_MAX. + * Special: value 0 means "use default value" (default: 64). */ + ZSTD_c_ldmBucketSizeLog=163, /* Log size of each bucket in the LDM hash table for collision resolution. + * Larger values improve collision resolution but decrease compression speed. + * The maximum value is ZSTD_LDM_BUCKETSIZELOG_MAX. + * Special: value 0 means "use default value" (default: 3). */ + ZSTD_c_ldmHashRateLog=164, /* Frequency of inserting/looking up entries into the LDM hash table. + * Must be clamped between 0 and (ZSTD_WINDOWLOG_MAX - ZSTD_HASHLOG_MIN). + * Default is MAX(0, (windowLog - ldmHashLog)), optimizing hash table usage. + * Larger values improve compression speed. + * Deviating far from default value will likely result in a compression ratio decrease. + * Special: value 0 means "automatically determine hashRateLog". */ + + /* frame parameters */ + ZSTD_c_contentSizeFlag=200, /* Content size will be written into frame header _whenever known_ (default:1) + * Content size must be known at the beginning of compression. + * This is automatically the case when using ZSTD_compress2(), + * For streaming scenarios, content size must be provided with ZSTD_CCtx_setPledgedSrcSize() */ + ZSTD_c_checksumFlag=201, /* A 32-bits checksum of content is written at end of frame (default:0) */ + ZSTD_c_dictIDFlag=202, /* When applicable, dictionary's ID is written into frame header (default:1) */ + + /* multi-threading parameters */ + /* These parameters are only active if multi-threading is enabled (compiled with build macro ZSTD_MULTITHREAD). + * Otherwise, trying to set any other value than default (0) will be a no-op and return an error. + * In a situation where it's unknown if the linked library supports multi-threading or not, + * setting ZSTD_c_nbWorkers to any value >= 1 and consulting the return value provides a quick way to check this property. + */ + ZSTD_c_nbWorkers=400, /* Select how many threads will be spawned to compress in parallel. + * When nbWorkers >= 1, triggers asynchronous mode when invoking ZSTD_compressStream*() : + * ZSTD_compressStream*() consumes input and flush output if possible, but immediately gives back control to caller, + * while compression is performed in parallel, within worker thread(s). + * (note : a strong exception to this rule is when first invocation of ZSTD_compressStream2() sets ZSTD_e_end : + * in which case, ZSTD_compressStream2() delegates to ZSTD_compress2(), which is always a blocking call). + * More workers improve speed, but also increase memory usage. + * Default value is `0`, aka "single-threaded mode" : no worker is spawned, + * compression is performed inside Caller's thread, and all invocations are blocking */ + ZSTD_c_jobSize=401, /* Size of a compression job. This value is enforced only when nbWorkers >= 1. + * Each compression job is completed in parallel, so this value can indirectly impact the nb of active threads. + * 0 means default, which is dynamically determined based on compression parameters. + * Job size must be a minimum of overlap size, or ZSTDMT_JOBSIZE_MIN (= 512 KB), whichever is largest. + * The minimum size is automatically and transparently enforced. */ + ZSTD_c_overlapLog=402, /* Control the overlap size, as a fraction of window size. + * The overlap size is an amount of data reloaded from previous job at the beginning of a new job. + * It helps preserve compression ratio, while each job is compressed in parallel. + * This value is enforced only when nbWorkers >= 1. + * Larger values increase compression ratio, but decrease speed. + * Possible values range from 0 to 9 : + * - 0 means "default" : value will be determined by the library, depending on strategy + * - 1 means "no overlap" + * - 9 means "full overlap", using a full window size. + * Each intermediate rank increases/decreases load size by a factor 2 : + * 9: full window; 8: w/2; 7: w/4; 6: w/8; 5:w/16; 4: w/32; 3:w/64; 2:w/128; 1:no overlap; 0:default + * default value varies between 6 and 9, depending on strategy */ + + /* note : additional experimental parameters are also available + * within the experimental section of the API. + * At the time of this writing, they include : + * ZSTD_c_rsyncable + * ZSTD_c_format + * ZSTD_c_forceMaxWindow + * ZSTD_c_forceAttachDict + * ZSTD_c_literalCompressionMode + * ZSTD_c_srcSizeHint + * ZSTD_c_enableDedicatedDictSearch + * ZSTD_c_stableInBuffer + * ZSTD_c_stableOutBuffer + * ZSTD_c_blockDelimiters + * ZSTD_c_validateSequences + * ZSTD_c_blockSplitterLevel + * ZSTD_c_splitAfterSequences + * ZSTD_c_useRowMatchFinder + * ZSTD_c_prefetchCDictTables + * ZSTD_c_enableSeqProducerFallback + * ZSTD_c_maxBlockSize + * Because they are not stable, it's necessary to define ZSTD_STATIC_LINKING_ONLY to access them. + * note : never ever use experimentalParam? names directly; + * also, the enums values themselves are unstable and can still change. + */ + ZSTD_c_experimentalParam1=500, + ZSTD_c_experimentalParam2=10, + ZSTD_c_experimentalParam3=1000, + ZSTD_c_experimentalParam4=1001, + ZSTD_c_experimentalParam5=1002, + /* was ZSTD_c_experimentalParam6=1003; is now ZSTD_c_targetCBlockSize */ + ZSTD_c_experimentalParam7=1004, + ZSTD_c_experimentalParam8=1005, + ZSTD_c_experimentalParam9=1006, + ZSTD_c_experimentalParam10=1007, + ZSTD_c_experimentalParam11=1008, + ZSTD_c_experimentalParam12=1009, + ZSTD_c_experimentalParam13=1010, + ZSTD_c_experimentalParam14=1011, + ZSTD_c_experimentalParam15=1012, + ZSTD_c_experimentalParam16=1013, + ZSTD_c_experimentalParam17=1014, + ZSTD_c_experimentalParam18=1015, + ZSTD_c_experimentalParam19=1016, + ZSTD_c_experimentalParam20=1017 +} ZSTD_cParameter; + +typedef struct { + size_t error; + int lowerBound; + int upperBound; +} ZSTD_bounds; + +/*! ZSTD_cParam_getBounds() : + * All parameters must belong to an interval with lower and upper bounds, + * otherwise they will either trigger an error or be automatically clamped. + * @return : a structure, ZSTD_bounds, which contains + * - an error status field, which must be tested using ZSTD_isError() + * - lower and upper bounds, both inclusive + */ +ZSTDLIB_API ZSTD_bounds ZSTD_cParam_getBounds(ZSTD_cParameter cParam); + +/*! ZSTD_CCtx_setParameter() : + * Set one compression parameter, selected by enum ZSTD_cParameter. + * All parameters have valid bounds. Bounds can be queried using ZSTD_cParam_getBounds(). + * Providing a value beyond bound will either clamp it, or trigger an error (depending on parameter). + * Setting a parameter is generally only possible during frame initialization (before starting compression). + * Exception : when using multi-threading mode (nbWorkers >= 1), + * the following parameters can be updated _during_ compression (within same frame): + * => compressionLevel, hashLog, chainLog, searchLog, minMatch, targetLength and strategy. + * new parameters will be active for next job only (after a flush()). + * @return : an error code (which can be tested using ZSTD_isError()). + */ +ZSTDLIB_API size_t ZSTD_CCtx_setParameter(ZSTD_CCtx* cctx, ZSTD_cParameter param, int value); + +/*! ZSTD_CCtx_setPledgedSrcSize() : + * Total input data size to be compressed as a single frame. + * Value will be written in frame header, unless if explicitly forbidden using ZSTD_c_contentSizeFlag. + * This value will also be controlled at end of frame, and trigger an error if not respected. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Note 1 : pledgedSrcSize==0 actually means zero, aka an empty frame. + * In order to mean "unknown content size", pass constant ZSTD_CONTENTSIZE_UNKNOWN. + * ZSTD_CONTENTSIZE_UNKNOWN is default value for any new frame. + * Note 2 : pledgedSrcSize is only valid once, for the next frame. + * It's discarded at the end of the frame, and replaced by ZSTD_CONTENTSIZE_UNKNOWN. + * Note 3 : Whenever all input data is provided and consumed in a single round, + * for example with ZSTD_compress2(), + * or invoking immediately ZSTD_compressStream2(,,,ZSTD_e_end), + * this value is automatically overridden by srcSize instead. + */ +ZSTDLIB_API size_t ZSTD_CCtx_setPledgedSrcSize(ZSTD_CCtx* cctx, unsigned long long pledgedSrcSize); + +typedef enum { + ZSTD_reset_session_only = 1, + ZSTD_reset_parameters = 2, + ZSTD_reset_session_and_parameters = 3 +} ZSTD_ResetDirective; + +/*! ZSTD_CCtx_reset() : + * There are 2 different things that can be reset, independently or jointly : + * - The session : will stop compressing current frame, and make CCtx ready to start a new one. + * Useful after an error, or to interrupt any ongoing compression. + * Any internal data not yet flushed is cancelled. + * Compression parameters and dictionary remain unchanged. + * They will be used to compress next frame. + * Resetting session never fails. + * - The parameters : changes all parameters back to "default". + * This also removes any reference to any dictionary or external sequence producer. + * Parameters can only be changed between 2 sessions (i.e. no compression is currently ongoing) + * otherwise the reset fails, and function returns an error value (which can be tested using ZSTD_isError()) + * - Both : similar to resetting the session, followed by resetting parameters. + */ +ZSTDLIB_API size_t ZSTD_CCtx_reset(ZSTD_CCtx* cctx, ZSTD_ResetDirective reset); + +/*! ZSTD_compress2() : + * Behave the same as ZSTD_compressCCtx(), but compression parameters are set using the advanced API. + * (note that this entry point doesn't even expose a compression level parameter). + * ZSTD_compress2() always starts a new frame. + * Should cctx hold data from a previously unfinished frame, everything about it is forgotten. + * - Compression parameters are pushed into CCtx before starting compression, using ZSTD_CCtx_set*() + * - The function is always blocking, returns when compression is completed. + * NOTE: Providing `dstCapacity >= ZSTD_compressBound(srcSize)` guarantees that zstd will have + * enough space to successfully compress the data, though it is possible it fails for other reasons. + * @return : compressed size written into `dst` (<= `dstCapacity), + * or an error code if it fails (which can be tested using ZSTD_isError()). + */ +ZSTDLIB_API size_t ZSTD_compress2( ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize); + + +/*********************************************** +* Advanced decompression API (Requires v1.4.0+) +************************************************/ + +/* The advanced API pushes parameters one by one into an existing DCtx context. + * Parameters are sticky, and remain valid for all following frames + * using the same DCtx context. + * It's possible to reset parameters to default values using ZSTD_DCtx_reset(). + * Note : This API is compatible with existing ZSTD_decompressDCtx() and ZSTD_decompressStream(). + * Therefore, no new decompression function is necessary. + */ + +typedef enum { + + ZSTD_d_windowLogMax=100, /* Select a size limit (in power of 2) beyond which + * the streaming API will refuse to allocate memory buffer + * in order to protect the host from unreasonable memory requirements. + * This parameter is only useful in streaming mode, since no internal buffer is allocated in single-pass mode. + * By default, a decompression context accepts window sizes <= (1 << ZSTD_WINDOWLOG_LIMIT_DEFAULT). + * Special: value 0 means "use default maximum windowLog". */ + + /* note : additional experimental parameters are also available + * within the experimental section of the API. + * At the time of this writing, they include : + * ZSTD_d_format + * ZSTD_d_stableOutBuffer + * ZSTD_d_forceIgnoreChecksum + * ZSTD_d_refMultipleDDicts + * ZSTD_d_disableHuffmanAssembly + * ZSTD_d_maxBlockSize + * Because they are not stable, it's necessary to define ZSTD_STATIC_LINKING_ONLY to access them. + * note : never ever use experimentalParam? names directly + */ + ZSTD_d_experimentalParam1=1000, + ZSTD_d_experimentalParam2=1001, + ZSTD_d_experimentalParam3=1002, + ZSTD_d_experimentalParam4=1003, + ZSTD_d_experimentalParam5=1004, + ZSTD_d_experimentalParam6=1005 + +} ZSTD_dParameter; + +/*! ZSTD_dParam_getBounds() : + * All parameters must belong to an interval with lower and upper bounds, + * otherwise they will either trigger an error or be automatically clamped. + * @return : a structure, ZSTD_bounds, which contains + * - an error status field, which must be tested using ZSTD_isError() + * - both lower and upper bounds, inclusive + */ +ZSTDLIB_API ZSTD_bounds ZSTD_dParam_getBounds(ZSTD_dParameter dParam); + +/*! ZSTD_DCtx_setParameter() : + * Set one compression parameter, selected by enum ZSTD_dParameter. + * All parameters have valid bounds. Bounds can be queried using ZSTD_dParam_getBounds(). + * Providing a value beyond bound will either clamp it, or trigger an error (depending on parameter). + * Setting a parameter is only possible during frame initialization (before starting decompression). + * @return : 0, or an error code (which can be tested using ZSTD_isError()). + */ +ZSTDLIB_API size_t ZSTD_DCtx_setParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int value); + +/*! ZSTD_DCtx_reset() : + * Return a DCtx to clean state. + * Session and parameters can be reset jointly or separately. + * Parameters can only be reset when no active frame is being decompressed. + * @return : 0, or an error code, which can be tested with ZSTD_isError() + */ +ZSTDLIB_API size_t ZSTD_DCtx_reset(ZSTD_DCtx* dctx, ZSTD_ResetDirective reset); + + +/**************************** +* Streaming +****************************/ + +typedef struct ZSTD_inBuffer_s { + const void* src; /**< start of input buffer */ + size_t size; /**< size of input buffer */ + size_t pos; /**< position where reading stopped. Will be updated. Necessarily 0 <= pos <= size */ +} ZSTD_inBuffer; + +typedef struct ZSTD_outBuffer_s { + void* dst; /**< start of output buffer */ + size_t size; /**< size of output buffer */ + size_t pos; /**< position where writing stopped. Will be updated. Necessarily 0 <= pos <= size */ +} ZSTD_outBuffer; + + + +/*-*********************************************************************** +* Streaming compression - HowTo +* +* A ZSTD_CStream object is required to track streaming operation. +* Use ZSTD_createCStream() and ZSTD_freeCStream() to create/release resources. +* ZSTD_CStream objects can be reused multiple times on consecutive compression operations. +* It is recommended to reuse ZSTD_CStream since it will play nicer with system's memory, by re-using already allocated memory. +* +* For parallel execution, use one separate ZSTD_CStream per thread. +* +* note : since v1.3.0, ZSTD_CStream and ZSTD_CCtx are the same thing. +* +* Parameters are sticky : when starting a new compression on the same context, +* it will reuse the same sticky parameters as previous compression session. +* When in doubt, it's recommended to fully initialize the context before usage. +* Use ZSTD_CCtx_reset() to reset the context and ZSTD_CCtx_setParameter(), +* ZSTD_CCtx_setPledgedSrcSize(), or ZSTD_CCtx_loadDictionary() and friends to +* set more specific parameters, the pledged source size, or load a dictionary. +* +* Use ZSTD_compressStream2() with ZSTD_e_continue as many times as necessary to +* consume input stream. The function will automatically update both `pos` +* fields within `input` and `output`. +* Note that the function may not consume the entire input, for example, because +* the output buffer is already full, in which case `input.pos < input.size`. +* The caller must check if input has been entirely consumed. +* If not, the caller must make some room to receive more compressed data, +* and then present again remaining input data. +* note: ZSTD_e_continue is guaranteed to make some forward progress when called, +* but doesn't guarantee maximal forward progress. This is especially relevant +* when compressing with multiple threads. The call won't block if it can +* consume some input, but if it can't it will wait for some, but not all, +* output to be flushed. +* @return : provides a minimum amount of data remaining to be flushed from internal buffers +* or an error code, which can be tested using ZSTD_isError(). +* +* At any moment, it's possible to flush whatever data might remain stuck within internal buffer, +* using ZSTD_compressStream2() with ZSTD_e_flush. `output->pos` will be updated. +* Note that, if `output->size` is too small, a single invocation with ZSTD_e_flush might not be enough (return code > 0). +* In which case, make some room to receive more compressed data, and call again ZSTD_compressStream2() with ZSTD_e_flush. +* You must continue calling ZSTD_compressStream2() with ZSTD_e_flush until it returns 0, at which point you can change the +* operation. +* note: ZSTD_e_flush will flush as much output as possible, meaning when compressing with multiple threads, it will +* block until the flush is complete or the output buffer is full. +* @return : 0 if internal buffers are entirely flushed, +* >0 if some data still present within internal buffer (the value is minimal estimation of remaining size), +* or an error code, which can be tested using ZSTD_isError(). +* +* Calling ZSTD_compressStream2() with ZSTD_e_end instructs to finish a frame. +* It will perform a flush and write frame epilogue. +* The epilogue is required for decoders to consider a frame completed. +* flush operation is the same, and follows same rules as calling ZSTD_compressStream2() with ZSTD_e_flush. +* You must continue calling ZSTD_compressStream2() with ZSTD_e_end until it returns 0, at which point you are free to +* start a new frame. +* note: ZSTD_e_end will flush as much output as possible, meaning when compressing with multiple threads, it will +* block until the flush is complete or the output buffer is full. +* @return : 0 if frame fully completed and fully flushed, +* >0 if some data still present within internal buffer (the value is minimal estimation of remaining size), +* or an error code, which can be tested using ZSTD_isError(). +* +* *******************************************************************/ + +typedef ZSTD_CCtx ZSTD_CStream; /**< CCtx and CStream are now effectively same object (>= v1.3.0) */ + /* Continue to distinguish them for compatibility with older versions <= v1.2.0 */ +/*===== ZSTD_CStream management functions =====*/ +ZSTDLIB_API ZSTD_CStream* ZSTD_createCStream(void); +ZSTDLIB_API size_t ZSTD_freeCStream(ZSTD_CStream* zcs); /* accept NULL pointer */ + +/*===== Streaming compression functions =====*/ +typedef enum { + ZSTD_e_continue=0, /* collect more data, encoder decides when to output compressed result, for optimal compression ratio */ + ZSTD_e_flush=1, /* flush any data provided so far, + * it creates (at least) one new block, that can be decoded immediately on reception; + * frame will continue: any future data can still reference previously compressed data, improving compression. + * note : multithreaded compression will block to flush as much output as possible. */ + ZSTD_e_end=2 /* flush any remaining data _and_ close current frame. + * note that frame is only closed after compressed data is fully flushed (return value == 0). + * After that point, any additional data starts a new frame. + * note : each frame is independent (does not reference any content from previous frame). + : note : multithreaded compression will block to flush as much output as possible. */ +} ZSTD_EndDirective; + +/*! ZSTD_compressStream2() : Requires v1.4.0+ + * Behaves about the same as ZSTD_compressStream, with additional control on end directive. + * - Compression parameters are pushed into CCtx before starting compression, using ZSTD_CCtx_set*() + * - Compression parameters cannot be changed once compression is started (save a list of exceptions in multi-threading mode) + * - output->pos must be <= dstCapacity, input->pos must be <= srcSize + * - output->pos and input->pos will be updated. They are guaranteed to remain below their respective limit. + * - endOp must be a valid directive + * - When nbWorkers==0 (default), function is blocking : it completes its job before returning to caller. + * - When nbWorkers>=1, function is non-blocking : it copies a portion of input, distributes jobs to internal worker threads, flush to output whatever is available, + * and then immediately returns, just indicating that there is some data remaining to be flushed. + * The function nonetheless guarantees forward progress : it will return only after it reads or write at least 1+ byte. + * - Exception : if the first call requests a ZSTD_e_end directive and provides enough dstCapacity, the function delegates to ZSTD_compress2() which is always blocking. + * - @return provides a minimum amount of data remaining to be flushed from internal buffers + * or an error code, which can be tested using ZSTD_isError(). + * if @return != 0, flush is not fully completed, there is still some data left within internal buffers. + * This is useful for ZSTD_e_flush, since in this case more flushes are necessary to empty all buffers. + * For ZSTD_e_end, @return == 0 when internal buffers are fully flushed and frame is completed. + * - after a ZSTD_e_end directive, if internal buffer is not fully flushed (@return != 0), + * only ZSTD_e_end or ZSTD_e_flush operations are allowed. + * Before starting a new compression job, or changing compression parameters, + * it is required to fully flush internal buffers. + * - note: if an operation ends with an error, it may leave @cctx in an undefined state. + * Therefore, it's UB to invoke ZSTD_compressStream2() of ZSTD_compressStream() on such a state. + * In order to be re-employed after an error, a state must be reset, + * which can be done explicitly (ZSTD_CCtx_reset()), + * or is sometimes implied by methods starting a new compression job (ZSTD_initCStream(), ZSTD_compressCCtx()) + */ +ZSTDLIB_API size_t ZSTD_compressStream2( ZSTD_CCtx* cctx, + ZSTD_outBuffer* output, + ZSTD_inBuffer* input, + ZSTD_EndDirective endOp); + + +/* These buffer sizes are softly recommended. + * They are not required : ZSTD_compressStream*() happily accepts any buffer size, for both input and output. + * Respecting the recommended size just makes it a bit easier for ZSTD_compressStream*(), + * reducing the amount of memory shuffling and buffering, resulting in minor performance savings. + * + * However, note that these recommendations are from the perspective of a C caller program. + * If the streaming interface is invoked from some other language, + * especially managed ones such as Java or Go, through a foreign function interface such as jni or cgo, + * a major performance rule is to reduce crossing such interface to an absolute minimum. + * It's not rare that performance ends being spent more into the interface, rather than compression itself. + * In which cases, prefer using large buffers, as large as practical, + * for both input and output, to reduce the nb of roundtrips. + */ +ZSTDLIB_API size_t ZSTD_CStreamInSize(void); /**< recommended size for input buffer */ +ZSTDLIB_API size_t ZSTD_CStreamOutSize(void); /**< recommended size for output buffer. Guarantee to successfully flush at least one complete compressed block. */ + + +/* ***************************************************************************** + * This following is a legacy streaming API, available since v1.0+ . + * It can be replaced by ZSTD_CCtx_reset() and ZSTD_compressStream2(). + * It is redundant, but remains fully supported. + ******************************************************************************/ + +/*! + * Equivalent to: + * + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_refCDict(zcs, NULL); // clear the dictionary (if any) + * ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel); + * + * Note that ZSTD_initCStream() clears any previously set dictionary. Use the new API + * to compress with a dictionary. + */ +ZSTDLIB_API size_t ZSTD_initCStream(ZSTD_CStream* zcs, int compressionLevel); +/*! + * Alternative for ZSTD_compressStream2(zcs, output, input, ZSTD_e_continue). + * NOTE: The return value is different. ZSTD_compressStream() returns a hint for + * the next read size (if non-zero and not an error). ZSTD_compressStream2() + * returns the minimum nb of bytes left to flush (if non-zero and not an error). + */ +ZSTDLIB_API size_t ZSTD_compressStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output, ZSTD_inBuffer* input); +/*! Equivalent to ZSTD_compressStream2(zcs, output, &emptyInput, ZSTD_e_flush). */ +ZSTDLIB_API size_t ZSTD_flushStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); +/*! Equivalent to ZSTD_compressStream2(zcs, output, &emptyInput, ZSTD_e_end). */ +ZSTDLIB_API size_t ZSTD_endStream(ZSTD_CStream* zcs, ZSTD_outBuffer* output); + + +/*-*************************************************************************** +* Streaming decompression - HowTo +* +* A ZSTD_DStream object is required to track streaming operations. +* Use ZSTD_createDStream() and ZSTD_freeDStream() to create/release resources. +* ZSTD_DStream objects can be re-employed multiple times. +* +* Use ZSTD_initDStream() to start a new decompression operation. +* @return : recommended first input size +* Alternatively, use advanced API to set specific properties. +* +* Use ZSTD_decompressStream() repetitively to consume your input. +* The function will update both `pos` fields. +* If `input.pos < input.size`, some input has not been consumed. +* It's up to the caller to present again remaining data. +* +* The function tries to flush all data decoded immediately, respecting output buffer size. +* If `output.pos < output.size`, decoder has flushed everything it could. +* +* However, when `output.pos == output.size`, it's more difficult to know. +* If @return > 0, the frame is not complete, meaning +* either there is still some data left to flush within internal buffers, +* or there is more input to read to complete the frame (or both). +* In which case, call ZSTD_decompressStream() again to flush whatever remains in the buffer. +* Note : with no additional input provided, amount of data flushed is necessarily <= ZSTD_BLOCKSIZE_MAX. +* @return : 0 when a frame is completely decoded and fully flushed, +* or an error code, which can be tested using ZSTD_isError(), +* or any other value > 0, which means there is still some decoding or flushing to do to complete current frame : +* the return value is a suggested next input size (just a hint for better latency) +* that will never request more than the remaining content of the compressed frame. +* *******************************************************************************/ + +typedef ZSTD_DCtx ZSTD_DStream; /**< DCtx and DStream are now effectively same object (>= v1.3.0) */ + /* For compatibility with versions <= v1.2.0, prefer differentiating them. */ +/*===== ZSTD_DStream management functions =====*/ +ZSTDLIB_API ZSTD_DStream* ZSTD_createDStream(void); +ZSTDLIB_API size_t ZSTD_freeDStream(ZSTD_DStream* zds); /* accept NULL pointer */ + +/*===== Streaming decompression functions =====*/ + +/*! ZSTD_initDStream() : + * Initialize/reset DStream state for new decompression operation. + * Call before new decompression operation using same DStream. + * + * Note : This function is redundant with the advanced API and equivalent to: + * ZSTD_DCtx_reset(zds, ZSTD_reset_session_only); + * ZSTD_DCtx_refDDict(zds, NULL); + */ +ZSTDLIB_API size_t ZSTD_initDStream(ZSTD_DStream* zds); + +/*! ZSTD_decompressStream() : + * Streaming decompression function. + * Call repetitively to consume full input updating it as necessary. + * Function will update both input and output `pos` fields exposing current state via these fields: + * - `input.pos < input.size`, some input remaining and caller should provide remaining input + * on the next call. + * - `output.pos < output.size`, decoder flushed internal output buffer. + * - `output.pos == output.size`, unflushed data potentially present in the internal buffers, + * check ZSTD_decompressStream() @return value, + * if > 0, invoke it again to flush remaining data to output. + * Note : with no additional input, amount of data flushed <= ZSTD_BLOCKSIZE_MAX. + * + * @return : 0 when a frame is completely decoded and fully flushed, + * or an error code, which can be tested using ZSTD_isError(), + * or any other value > 0, which means there is some decoding or flushing to do to complete current frame. + * + * Note: when an operation returns with an error code, the @zds state may be left in undefined state. + * It's UB to invoke `ZSTD_decompressStream()` on such a state. + * In order to re-use such a state, it must be first reset, + * which can be done explicitly (`ZSTD_DCtx_reset()`), + * or is implied for operations starting some new decompression job (`ZSTD_initDStream`, `ZSTD_decompressDCtx()`, `ZSTD_decompress_usingDict()`) + */ +ZSTDLIB_API size_t ZSTD_decompressStream(ZSTD_DStream* zds, ZSTD_outBuffer* output, ZSTD_inBuffer* input); + +ZSTDLIB_API size_t ZSTD_DStreamInSize(void); /*!< recommended size for input buffer */ +ZSTDLIB_API size_t ZSTD_DStreamOutSize(void); /*!< recommended size for output buffer. Guarantee to successfully flush at least one complete block in all circumstances. */ + + +/************************** +* Simple dictionary API +***************************/ +/*! ZSTD_compress_usingDict() : + * Compression at an explicit compression level using a Dictionary. + * A dictionary can be any arbitrary data segment (also called a prefix), + * or a buffer with specified information (see zdict.h). + * Note : This function loads the dictionary, resulting in significant startup delay. + * It's intended for a dictionary used only once. + * Note 2 : When `dict == NULL || dictSize < 8` no dictionary is used. */ +ZSTDLIB_API size_t ZSTD_compress_usingDict(ZSTD_CCtx* ctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const void* dict,size_t dictSize, + int compressionLevel); + +/*! ZSTD_decompress_usingDict() : + * Decompression using a known Dictionary. + * Dictionary must be identical to the one used during compression. + * Note : This function loads the dictionary, resulting in significant startup delay. + * It's intended for a dictionary used only once. + * Note : When `dict == NULL || dictSize < 8` no dictionary is used. */ +ZSTDLIB_API size_t ZSTD_decompress_usingDict(ZSTD_DCtx* dctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const void* dict,size_t dictSize); + + +/*********************************** + * Bulk processing dictionary API + **********************************/ +typedef struct ZSTD_CDict_s ZSTD_CDict; + +/*! ZSTD_createCDict() : + * When compressing multiple messages or blocks using the same dictionary, + * it's recommended to digest the dictionary only once, since it's a costly operation. + * ZSTD_createCDict() will create a state from digesting a dictionary. + * The resulting state can be used for future compression operations with very limited startup cost. + * ZSTD_CDict can be created once and shared by multiple threads concurrently, since its usage is read-only. + * @dictBuffer can be released after ZSTD_CDict creation, because its content is copied within CDict. + * Note 1 : Consider experimental function `ZSTD_createCDict_byReference()` if you prefer to not duplicate @dictBuffer content. + * Note 2 : A ZSTD_CDict can be created from an empty @dictBuffer, + * in which case the only thing that it transports is the @compressionLevel. + * This can be useful in a pipeline featuring ZSTD_compress_usingCDict() exclusively, + * expecting a ZSTD_CDict parameter with any data, including those without a known dictionary. */ +ZSTDLIB_API ZSTD_CDict* ZSTD_createCDict(const void* dictBuffer, size_t dictSize, + int compressionLevel); + +/*! ZSTD_freeCDict() : + * Function frees memory allocated by ZSTD_createCDict(). + * If a NULL pointer is passed, no operation is performed. */ +ZSTDLIB_API size_t ZSTD_freeCDict(ZSTD_CDict* CDict); + +/*! ZSTD_compress_usingCDict() : + * Compression using a digested Dictionary. + * Recommended when same dictionary is used multiple times. + * Note : compression level is _decided at dictionary creation time_, + * and frame parameters are hardcoded (dictID=yes, contentSize=yes, checksum=no) */ +ZSTDLIB_API size_t ZSTD_compress_usingCDict(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const ZSTD_CDict* cdict); + + +typedef struct ZSTD_DDict_s ZSTD_DDict; + +/*! ZSTD_createDDict() : + * Create a digested dictionary, ready to start decompression operation without startup delay. + * dictBuffer can be released after DDict creation, as its content is copied inside DDict. */ +ZSTDLIB_API ZSTD_DDict* ZSTD_createDDict(const void* dictBuffer, size_t dictSize); + +/*! ZSTD_freeDDict() : + * Function frees memory allocated with ZSTD_createDDict() + * If a NULL pointer is passed, no operation is performed. */ +ZSTDLIB_API size_t ZSTD_freeDDict(ZSTD_DDict* ddict); + +/*! ZSTD_decompress_usingDDict() : + * Decompression using a digested Dictionary. + * Recommended when same dictionary is used multiple times. */ +ZSTDLIB_API size_t ZSTD_decompress_usingDDict(ZSTD_DCtx* dctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const ZSTD_DDict* ddict); + + +/******************************** + * Dictionary helper functions + *******************************/ + +/*! ZSTD_getDictID_fromDict() : Requires v1.4.0+ + * Provides the dictID stored within dictionary. + * if @return == 0, the dictionary is not conformant with Zstandard specification. + * It can still be loaded, but as a content-only dictionary. */ +ZSTDLIB_API unsigned ZSTD_getDictID_fromDict(const void* dict, size_t dictSize); + +/*! ZSTD_getDictID_fromCDict() : Requires v1.5.0+ + * Provides the dictID of the dictionary loaded into `cdict`. + * If @return == 0, the dictionary is not conformant to Zstandard specification, or empty. + * Non-conformant dictionaries can still be loaded, but as content-only dictionaries. */ +ZSTDLIB_API unsigned ZSTD_getDictID_fromCDict(const ZSTD_CDict* cdict); + +/*! ZSTD_getDictID_fromDDict() : Requires v1.4.0+ + * Provides the dictID of the dictionary loaded into `ddict`. + * If @return == 0, the dictionary is not conformant to Zstandard specification, or empty. + * Non-conformant dictionaries can still be loaded, but as content-only dictionaries. */ +ZSTDLIB_API unsigned ZSTD_getDictID_fromDDict(const ZSTD_DDict* ddict); + +/*! ZSTD_getDictID_fromFrame() : Requires v1.4.0+ + * Provides the dictID required to decompressed the frame stored within `src`. + * If @return == 0, the dictID could not be decoded. + * This could for one of the following reasons : + * - The frame does not require a dictionary to be decoded (most common case). + * - The frame was built with dictID intentionally removed. Whatever dictionary is necessary is a hidden piece of information. + * Note : this use case also happens when using a non-conformant dictionary. + * - `srcSize` is too small, and as a result, the frame header could not be decoded (only possible if `srcSize < ZSTD_FRAMEHEADERSIZE_MAX`). + * - This is not a Zstandard frame. + * When identifying the exact failure cause, it's possible to use ZSTD_getFrameHeader(), which will provide a more precise error code. */ +ZSTDLIB_API unsigned ZSTD_getDictID_fromFrame(const void* src, size_t srcSize); + + +/******************************************************************************* + * Advanced dictionary and prefix API (Requires v1.4.0+) + * + * This API allows dictionaries to be used with ZSTD_compress2(), + * ZSTD_compressStream2(), and ZSTD_decompressDCtx(). + * Dictionaries are sticky, they remain valid when same context is reused, + * they only reset when the context is reset + * with ZSTD_reset_parameters or ZSTD_reset_session_and_parameters. + * In contrast, Prefixes are single-use. + ******************************************************************************/ + + +/*! ZSTD_CCtx_loadDictionary() : Requires v1.4.0+ + * Create an internal CDict from `dict` buffer. + * Decompression will have to use same dictionary. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Special: Loading a NULL (or 0-size) dictionary invalidates previous dictionary, + * meaning "return to no-dictionary mode". + * Note 1 : Dictionary is sticky, it will be used for all future compressed frames, + * until parameters are reset, a new dictionary is loaded, or the dictionary + * is explicitly invalidated by loading a NULL dictionary. + * Note 2 : Loading a dictionary involves building tables. + * It's also a CPU consuming operation, with non-negligible impact on latency. + * Tables are dependent on compression parameters, and for this reason, + * compression parameters can no longer be changed after loading a dictionary. + * Note 3 :`dict` content will be copied internally. + * Use experimental ZSTD_CCtx_loadDictionary_byReference() to reference content instead. + * In such a case, dictionary buffer must outlive its users. + * Note 4 : Use ZSTD_CCtx_loadDictionary_advanced() + * to precisely select how dictionary content must be interpreted. + * Note 5 : This method does not benefit from LDM (long distance mode). + * If you want to employ LDM on some large dictionary content, + * prefer employing ZSTD_CCtx_refPrefix() described below. + */ +ZSTDLIB_API size_t ZSTD_CCtx_loadDictionary(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); + +/*! ZSTD_CCtx_refCDict() : Requires v1.4.0+ + * Reference a prepared dictionary, to be used for all future compressed frames. + * Note that compression parameters are enforced from within CDict, + * and supersede any compression parameter previously set within CCtx. + * The parameters ignored are labelled as "superseded-by-cdict" in the ZSTD_cParameter enum docs. + * The ignored parameters will be used again if the CCtx is returned to no-dictionary mode. + * The dictionary will remain valid for future compressed frames using same CCtx. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Special : Referencing a NULL CDict means "return to no-dictionary mode". + * Note 1 : Currently, only one dictionary can be managed. + * Referencing a new dictionary effectively "discards" any previous one. + * Note 2 : CDict is just referenced, its lifetime must outlive its usage within CCtx. */ +ZSTDLIB_API size_t ZSTD_CCtx_refCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); + +/*! ZSTD_CCtx_refPrefix() : Requires v1.4.0+ + * Reference a prefix (single-usage dictionary) for next compressed frame. + * A prefix is **only used once**. Tables are discarded at end of frame (ZSTD_e_end). + * Decompression will need same prefix to properly regenerate data. + * Compressing with a prefix is similar in outcome as performing a diff and compressing it, + * but performs much faster, especially during decompression (compression speed is tunable with compression level). + * This method is compatible with LDM (long distance mode). + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Special: Adding any prefix (including NULL) invalidates any previous prefix or dictionary + * Note 1 : Prefix buffer is referenced. It **must** outlive compression. + * Its content must remain unmodified during compression. + * Note 2 : If the intention is to diff some large src data blob with some prior version of itself, + * ensure that the window size is large enough to contain the entire source. + * See ZSTD_c_windowLog. + * Note 3 : Referencing a prefix involves building tables, which are dependent on compression parameters. + * It's a CPU consuming operation, with non-negligible impact on latency. + * If there is a need to use the same prefix multiple times, consider loadDictionary instead. + * Note 4 : By default, the prefix is interpreted as raw content (ZSTD_dct_rawContent). + * Use experimental ZSTD_CCtx_refPrefix_advanced() to alter dictionary interpretation. */ +ZSTDLIB_API size_t ZSTD_CCtx_refPrefix(ZSTD_CCtx* cctx, + const void* prefix, size_t prefixSize); + +/*! ZSTD_DCtx_loadDictionary() : Requires v1.4.0+ + * Create an internal DDict from dict buffer, to be used to decompress all future frames. + * The dictionary remains valid for all future frames, until explicitly invalidated, or + * a new dictionary is loaded. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Special : Adding a NULL (or 0-size) dictionary invalidates any previous dictionary, + * meaning "return to no-dictionary mode". + * Note 1 : Loading a dictionary involves building tables, + * which has a non-negligible impact on CPU usage and latency. + * It's recommended to "load once, use many times", to amortize the cost + * Note 2 :`dict` content will be copied internally, so `dict` can be released after loading. + * Use ZSTD_DCtx_loadDictionary_byReference() to reference dictionary content instead. + * Note 3 : Use ZSTD_DCtx_loadDictionary_advanced() to take control of + * how dictionary content is loaded and interpreted. + */ +ZSTDLIB_API size_t ZSTD_DCtx_loadDictionary(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); + +/*! ZSTD_DCtx_refDDict() : Requires v1.4.0+ + * Reference a prepared dictionary, to be used to decompress next frames. + * The dictionary remains active for decompression of future frames using same DCtx. + * + * If called with ZSTD_d_refMultipleDDicts enabled, repeated calls of this function + * will store the DDict references in a table, and the DDict used for decompression + * will be determined at decompression time, as per the dict ID in the frame. + * The memory for the table is allocated on the first call to refDDict, and can be + * freed with ZSTD_freeDCtx(). + * + * If called with ZSTD_d_refMultipleDDicts disabled (the default), only one dictionary + * will be managed, and referencing a dictionary effectively "discards" any previous one. + * + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Special: referencing a NULL DDict means "return to no-dictionary mode". + * Note 2 : DDict is just referenced, its lifetime must outlive its usage from DCtx. + */ +ZSTDLIB_API size_t ZSTD_DCtx_refDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); + +/*! ZSTD_DCtx_refPrefix() : Requires v1.4.0+ + * Reference a prefix (single-usage dictionary) to decompress next frame. + * This is the reverse operation of ZSTD_CCtx_refPrefix(), + * and must use the same prefix as the one used during compression. + * Prefix is **only used once**. Reference is discarded at end of frame. + * End of frame is reached when ZSTD_decompressStream() returns 0. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + * Note 1 : Adding any prefix (including NULL) invalidates any previously set prefix or dictionary + * Note 2 : Prefix buffer is referenced. It **must** outlive decompression. + * Prefix buffer must remain unmodified up to the end of frame, + * reached when ZSTD_decompressStream() returns 0. + * Note 3 : By default, the prefix is treated as raw content (ZSTD_dct_rawContent). + * Use ZSTD_CCtx_refPrefix_advanced() to alter dictMode (Experimental section) + * Note 4 : Referencing a raw content prefix has almost no cpu nor memory cost. + * A full dictionary is more costly, as it requires building tables. + */ +ZSTDLIB_API size_t ZSTD_DCtx_refPrefix(ZSTD_DCtx* dctx, + const void* prefix, size_t prefixSize); + +/* === Memory management === */ + +/*! ZSTD_sizeof_*() : Requires v1.4.0+ + * These functions give the _current_ memory usage of selected object. + * Note that object memory usage can evolve (increase or decrease) over time. */ +ZSTDLIB_API size_t ZSTD_sizeof_CCtx(const ZSTD_CCtx* cctx); +ZSTDLIB_API size_t ZSTD_sizeof_DCtx(const ZSTD_DCtx* dctx); +ZSTDLIB_API size_t ZSTD_sizeof_CStream(const ZSTD_CStream* zcs); +ZSTDLIB_API size_t ZSTD_sizeof_DStream(const ZSTD_DStream* zds); +ZSTDLIB_API size_t ZSTD_sizeof_CDict(const ZSTD_CDict* cdict); +ZSTDLIB_API size_t ZSTD_sizeof_DDict(const ZSTD_DDict* ddict); + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_H_235446 */ + + +/* ************************************************************************************** + * ADVANCED AND EXPERIMENTAL FUNCTIONS + **************************************************************************************** + * The definitions in the following section are considered experimental. + * They are provided for advanced scenarios. + * They should never be used with a dynamic library, as prototypes may change in the future. + * Use them only in association with static linking. + * ***************************************************************************************/ + +#if defined(ZSTD_STATIC_LINKING_ONLY) && !defined(ZSTD_H_ZSTD_STATIC_LINKING_ONLY) +#define ZSTD_H_ZSTD_STATIC_LINKING_ONLY + +#if defined (__cplusplus) +extern "C" { +#endif + +/* This can be overridden externally to hide static symbols. */ +#ifndef ZSTDLIB_STATIC_API +# if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# define ZSTDLIB_STATIC_API __declspec(dllexport) ZSTDLIB_VISIBLE +# elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1) +# define ZSTDLIB_STATIC_API __declspec(dllimport) ZSTDLIB_VISIBLE +# else +# define ZSTDLIB_STATIC_API ZSTDLIB_VISIBLE +# endif +#endif + +/**************************************************************************************** + * experimental API (static linking only) + **************************************************************************************** + * The following symbols and constants + * are not planned to join "stable API" status in the near future. + * They can still change in future versions. + * Some of them are planned to remain in the static_only section indefinitely. + * Some of them might be removed in the future (especially when redundant with existing stable functions) + * ***************************************************************************************/ + +#define ZSTD_FRAMEHEADERSIZE_PREFIX(format) ((format) == ZSTD_f_zstd1 ? 5 : 1) /* minimum input size required to query frame header size */ +#define ZSTD_FRAMEHEADERSIZE_MIN(format) ((format) == ZSTD_f_zstd1 ? 6 : 2) +#define ZSTD_FRAMEHEADERSIZE_MAX 18 /* can be useful for static allocation */ +#define ZSTD_SKIPPABLEHEADERSIZE 8 + +/* compression parameter bounds */ +#define ZSTD_WINDOWLOG_MAX_32 30 +#define ZSTD_WINDOWLOG_MAX_64 31 +#define ZSTD_WINDOWLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_WINDOWLOG_MAX_32 : ZSTD_WINDOWLOG_MAX_64)) +#define ZSTD_WINDOWLOG_MIN 10 +#define ZSTD_HASHLOG_MAX ((ZSTD_WINDOWLOG_MAX < 30) ? ZSTD_WINDOWLOG_MAX : 30) +#define ZSTD_HASHLOG_MIN 6 +#define ZSTD_CHAINLOG_MAX_32 29 +#define ZSTD_CHAINLOG_MAX_64 30 +#define ZSTD_CHAINLOG_MAX ((int)(sizeof(size_t) == 4 ? ZSTD_CHAINLOG_MAX_32 : ZSTD_CHAINLOG_MAX_64)) +#define ZSTD_CHAINLOG_MIN ZSTD_HASHLOG_MIN +#define ZSTD_SEARCHLOG_MAX (ZSTD_WINDOWLOG_MAX-1) +#define ZSTD_SEARCHLOG_MIN 1 +#define ZSTD_MINMATCH_MAX 7 /* only for ZSTD_fast, other strategies are limited to 6 */ +#define ZSTD_MINMATCH_MIN 3 /* only for ZSTD_btopt+, faster strategies are limited to 4 */ +#define ZSTD_TARGETLENGTH_MAX ZSTD_BLOCKSIZE_MAX +#define ZSTD_TARGETLENGTH_MIN 0 /* note : comparing this constant to an unsigned results in a tautological test */ +#define ZSTD_STRATEGY_MIN ZSTD_fast +#define ZSTD_STRATEGY_MAX ZSTD_btultra2 +#define ZSTD_BLOCKSIZE_MAX_MIN (1 << 10) /* The minimum valid max blocksize. Maximum blocksizes smaller than this make compressBound() inaccurate. */ + + +#define ZSTD_OVERLAPLOG_MIN 0 +#define ZSTD_OVERLAPLOG_MAX 9 + +#define ZSTD_WINDOWLOG_LIMIT_DEFAULT 27 /* by default, the streaming decoder will refuse any frame + * requiring larger than (1< 0: + * If litLength != 0: + * rep == 1 --> offset == repeat_offset_1 + * rep == 2 --> offset == repeat_offset_2 + * rep == 3 --> offset == repeat_offset_3 + * If litLength == 0: + * rep == 1 --> offset == repeat_offset_2 + * rep == 2 --> offset == repeat_offset_3 + * rep == 3 --> offset == repeat_offset_1 - 1 + * + * Note: This field is optional. ZSTD_generateSequences() will calculate the value of + * 'rep', but repeat offsets do not necessarily need to be calculated from an external + * sequence provider perspective. For example, ZSTD_compressSequences() does not + * use this 'rep' field at all (as of now). + */ +} ZSTD_Sequence; + +typedef struct { + unsigned windowLog; /**< largest match distance : larger == more compression, more memory needed during decompression */ + unsigned chainLog; /**< fully searched segment : larger == more compression, slower, more memory (useless for fast) */ + unsigned hashLog; /**< dispatch table : larger == faster, more memory */ + unsigned searchLog; /**< nb of searches : larger == more compression, slower */ + unsigned minMatch; /**< match length searched : larger == faster decompression, sometimes less compression */ + unsigned targetLength; /**< acceptable match size for optimal parser (only) : larger == more compression, slower */ + ZSTD_strategy strategy; /**< see ZSTD_strategy definition above */ +} ZSTD_compressionParameters; + +typedef struct { + int contentSizeFlag; /**< 1: content size will be in frame header (when known) */ + int checksumFlag; /**< 1: generate a 32-bits checksum using XXH64 algorithm at end of frame, for error detection */ + int noDictIDFlag; /**< 1: no dictID will be saved into frame header (dictID is only useful for dictionary compression) */ +} ZSTD_frameParameters; + +typedef struct { + ZSTD_compressionParameters cParams; + ZSTD_frameParameters fParams; +} ZSTD_parameters; + +typedef enum { + ZSTD_dct_auto = 0, /* dictionary is "full" when starting with ZSTD_MAGIC_DICTIONARY, otherwise it is "rawContent" */ + ZSTD_dct_rawContent = 1, /* ensures dictionary is always loaded as rawContent, even if it starts with ZSTD_MAGIC_DICTIONARY */ + ZSTD_dct_fullDict = 2 /* refuses to load a dictionary if it does not respect Zstandard's specification, starting with ZSTD_MAGIC_DICTIONARY */ +} ZSTD_dictContentType_e; + +typedef enum { + ZSTD_dlm_byCopy = 0, /**< Copy dictionary content internally */ + ZSTD_dlm_byRef = 1 /**< Reference dictionary content -- the dictionary buffer must outlive its users. */ +} ZSTD_dictLoadMethod_e; + +typedef enum { + ZSTD_f_zstd1 = 0, /* zstd frame format, specified in zstd_compression_format.md (default) */ + ZSTD_f_zstd1_magicless = 1 /* Variant of zstd frame format, without initial 4-bytes magic number. + * Useful to save 4 bytes per generated frame. + * Decoder cannot recognise automatically this format, requiring this instruction. */ +} ZSTD_format_e; + +typedef enum { + /* Note: this enum controls ZSTD_d_forceIgnoreChecksum */ + ZSTD_d_validateChecksum = 0, + ZSTD_d_ignoreChecksum = 1 +} ZSTD_forceIgnoreChecksum_e; + +typedef enum { + /* Note: this enum controls ZSTD_d_refMultipleDDicts */ + ZSTD_rmd_refSingleDDict = 0, + ZSTD_rmd_refMultipleDDicts = 1 +} ZSTD_refMultipleDDicts_e; + +typedef enum { + /* Note: this enum and the behavior it controls are effectively internal + * implementation details of the compressor. They are expected to continue + * to evolve and should be considered only in the context of extremely + * advanced performance tuning. + * + * Zstd currently supports the use of a CDict in three ways: + * + * - The contents of the CDict can be copied into the working context. This + * means that the compression can search both the dictionary and input + * while operating on a single set of internal tables. This makes + * the compression faster per-byte of input. However, the initial copy of + * the CDict's tables incurs a fixed cost at the beginning of the + * compression. For small compressions (< 8 KB), that copy can dominate + * the cost of the compression. + * + * - The CDict's tables can be used in-place. In this model, compression is + * slower per input byte, because the compressor has to search two sets of + * tables. However, this model incurs no start-up cost (as long as the + * working context's tables can be reused). For small inputs, this can be + * faster than copying the CDict's tables. + * + * - The CDict's tables are not used at all, and instead we use the working + * context alone to reload the dictionary and use params based on the source + * size. See ZSTD_compress_insertDictionary() and ZSTD_compress_usingDict(). + * This method is effective when the dictionary sizes are very small relative + * to the input size, and the input size is fairly large to begin with. + * + * Zstd has a simple internal heuristic that selects which strategy to use + * at the beginning of a compression. However, if experimentation shows that + * Zstd is making poor choices, it is possible to override that choice with + * this enum. + */ + ZSTD_dictDefaultAttach = 0, /* Use the default heuristic. */ + ZSTD_dictForceAttach = 1, /* Never copy the dictionary. */ + ZSTD_dictForceCopy = 2, /* Always copy the dictionary. */ + ZSTD_dictForceLoad = 3 /* Always reload the dictionary */ +} ZSTD_dictAttachPref_e; + +typedef enum { + ZSTD_lcm_auto = 0, /**< Automatically determine the compression mode based on the compression level. + * Negative compression levels will be uncompressed, and positive compression + * levels will be compressed. */ + ZSTD_lcm_huffman = 1, /**< Always attempt Huffman compression. Uncompressed literals will still be + * emitted if Huffman compression is not profitable. */ + ZSTD_lcm_uncompressed = 2 /**< Always emit uncompressed literals. */ +} ZSTD_literalCompressionMode_e; + +typedef enum { + /* Note: This enum controls features which are conditionally beneficial. + * Zstd can take a decision on whether or not to enable the feature (ZSTD_ps_auto), + * but setting the switch to ZSTD_ps_enable or ZSTD_ps_disable force enable/disable the feature. + */ + ZSTD_ps_auto = 0, /* Let the library automatically determine whether the feature shall be enabled */ + ZSTD_ps_enable = 1, /* Force-enable the feature */ + ZSTD_ps_disable = 2 /* Do not use the feature */ +} ZSTD_ParamSwitch_e; +#define ZSTD_paramSwitch_e ZSTD_ParamSwitch_e /* old name */ + +/*************************************** +* Frame header and size functions +***************************************/ + +/*! ZSTD_findDecompressedSize() : + * `src` should point to the start of a series of ZSTD encoded and/or skippable frames + * `srcSize` must be the _exact_ size of this series + * (i.e. there should be a frame boundary at `src + srcSize`) + * @return : - decompressed size of all data in all successive frames + * - if the decompressed size cannot be determined: ZSTD_CONTENTSIZE_UNKNOWN + * - if an error occurred: ZSTD_CONTENTSIZE_ERROR + * + * note 1 : decompressed size is an optional field, that may not be present, especially in streaming mode. + * When `return==ZSTD_CONTENTSIZE_UNKNOWN`, data to decompress could be any size. + * In which case, it's necessary to use streaming mode to decompress data. + * note 2 : decompressed size is always present when compression is done with ZSTD_compress() + * note 3 : decompressed size can be very large (64-bits value), + * potentially larger than what local system can handle as a single memory segment. + * In which case, it's necessary to use streaming mode to decompress data. + * note 4 : If source is untrusted, decompressed size could be wrong or intentionally modified. + * Always ensure result fits within application's authorized limits. + * Each application can set its own limits. + * note 5 : ZSTD_findDecompressedSize handles multiple frames, and so it must traverse the input to + * read each contained frame header. This is fast as most of the data is skipped, + * however it does mean that all frame data must be present and valid. */ +ZSTDLIB_STATIC_API unsigned long long ZSTD_findDecompressedSize(const void* src, size_t srcSize); + +/*! ZSTD_decompressBound() : + * `src` should point to the start of a series of ZSTD encoded and/or skippable frames + * `srcSize` must be the _exact_ size of this series + * (i.e. there should be a frame boundary at `src + srcSize`) + * @return : - upper-bound for the decompressed size of all data in all successive frames + * - if an error occurred: ZSTD_CONTENTSIZE_ERROR + * + * note 1 : an error can occur if `src` contains an invalid or incorrectly formatted frame. + * note 2 : the upper-bound is exact when the decompressed size field is available in every ZSTD encoded frame of `src`. + * in this case, `ZSTD_findDecompressedSize` and `ZSTD_decompressBound` return the same value. + * note 3 : when the decompressed size field isn't available, the upper-bound for that frame is calculated by: + * upper-bound = # blocks * min(128 KB, Window_Size) + */ +ZSTDLIB_STATIC_API unsigned long long ZSTD_decompressBound(const void* src, size_t srcSize); + +/*! ZSTD_frameHeaderSize() : + * srcSize must be large enough, aka >= ZSTD_FRAMEHEADERSIZE_PREFIX. + * @return : size of the Frame Header, + * or an error code (if srcSize is too small) */ +ZSTDLIB_STATIC_API size_t ZSTD_frameHeaderSize(const void* src, size_t srcSize); + +typedef enum { ZSTD_frame, ZSTD_skippableFrame } ZSTD_FrameType_e; +#define ZSTD_frameType_e ZSTD_FrameType_e /* old name */ +typedef struct { + unsigned long long frameContentSize; /* if == ZSTD_CONTENTSIZE_UNKNOWN, it means this field is not available. 0 means "empty" */ + unsigned long long windowSize; /* can be very large, up to <= frameContentSize */ + unsigned blockSizeMax; + ZSTD_FrameType_e frameType; /* if == ZSTD_skippableFrame, frameContentSize is the size of skippable content */ + unsigned headerSize; + unsigned dictID; /* for ZSTD_skippableFrame, contains the skippable magic variant [0-15] */ + unsigned checksumFlag; + unsigned _reserved1; + unsigned _reserved2; +} ZSTD_FrameHeader; +#define ZSTD_frameHeader ZSTD_FrameHeader /* old name */ + +/*! ZSTD_getFrameHeader() : + * decode Frame Header into `zfhPtr`, or requires larger `srcSize`. + * @return : 0 => header is complete, `zfhPtr` is correctly filled, + * >0 => `srcSize` is too small, @return value is the wanted `srcSize` amount, `zfhPtr` is not filled, + * or an error code, which can be tested using ZSTD_isError() */ +ZSTDLIB_STATIC_API size_t ZSTD_getFrameHeader(ZSTD_FrameHeader* zfhPtr, const void* src, size_t srcSize); +/*! ZSTD_getFrameHeader_advanced() : + * same as ZSTD_getFrameHeader(), + * with added capability to select a format (like ZSTD_f_zstd1_magicless) */ +ZSTDLIB_STATIC_API size_t ZSTD_getFrameHeader_advanced(ZSTD_FrameHeader* zfhPtr, const void* src, size_t srcSize, ZSTD_format_e format); + +/*! ZSTD_decompressionMargin() : + * Zstd supports in-place decompression, where the input and output buffers overlap. + * In this case, the output buffer must be at least (Margin + Output_Size) bytes large, + * and the input buffer must be at the end of the output buffer. + * + * _______________________ Output Buffer ________________________ + * | | + * | ____ Input Buffer ____| + * | | | + * v v v + * |---------------------------------------|-----------|----------| + * ^ ^ ^ + * |___________________ Output_Size ___________________|_ Margin _| + * + * NOTE: See also ZSTD_DECOMPRESSION_MARGIN(). + * NOTE: This applies only to single-pass decompression through ZSTD_decompress() or + * ZSTD_decompressDCtx(). + * NOTE: This function supports multi-frame input. + * + * @param src The compressed frame(s) + * @param srcSize The size of the compressed frame(s) + * @returns The decompression margin or an error that can be checked with ZSTD_isError(). + */ +ZSTDLIB_STATIC_API size_t ZSTD_decompressionMargin(const void* src, size_t srcSize); + +/*! ZSTD_DECOMPRESS_MARGIN() : + * Similar to ZSTD_decompressionMargin(), but instead of computing the margin from + * the compressed frame, compute it from the original size and the blockSizeLog. + * See ZSTD_decompressionMargin() for details. + * + * WARNING: This macro does not support multi-frame input, the input must be a single + * zstd frame. If you need that support use the function, or implement it yourself. + * + * @param originalSize The original uncompressed size of the data. + * @param blockSize The block size == MIN(windowSize, ZSTD_BLOCKSIZE_MAX). + * Unless you explicitly set the windowLog smaller than + * ZSTD_BLOCKSIZELOG_MAX you can just use ZSTD_BLOCKSIZE_MAX. + */ +#define ZSTD_DECOMPRESSION_MARGIN(originalSize, blockSize) ((size_t)( \ + ZSTD_FRAMEHEADERSIZE_MAX /* Frame header */ + \ + 4 /* checksum */ + \ + ((originalSize) == 0 ? 0 : 3 * (((originalSize) + (blockSize) - 1) / blockSize)) /* 3 bytes per block */ + \ + (blockSize) /* One block of margin */ \ + )) + +typedef enum { + ZSTD_sf_noBlockDelimiters = 0, /* ZSTD_Sequence[] has no block delimiters, just sequences */ + ZSTD_sf_explicitBlockDelimiters = 1 /* ZSTD_Sequence[] contains explicit block delimiters */ +} ZSTD_SequenceFormat_e; +#define ZSTD_sequenceFormat_e ZSTD_SequenceFormat_e /* old name */ + +/*! ZSTD_sequenceBound() : + * `srcSize` : size of the input buffer + * @return : upper-bound for the number of sequences that can be generated + * from a buffer of srcSize bytes + * + * note : returns number of sequences - to get bytes, multiply by sizeof(ZSTD_Sequence). + */ +ZSTDLIB_STATIC_API size_t ZSTD_sequenceBound(size_t srcSize); + +/*! ZSTD_generateSequences() : + * WARNING: This function is meant for debugging and informational purposes ONLY! + * Its implementation is flawed, and it will be deleted in a future version. + * It is not guaranteed to succeed, as there are several cases where it will give + * up and fail. You should NOT use this function in production code. + * + * This function is deprecated, and will be removed in a future version. + * + * Generate sequences using ZSTD_compress2(), given a source buffer. + * + * @param zc The compression context to be used for ZSTD_compress2(). Set any + * compression parameters you need on this context. + * @param outSeqs The output sequences buffer of size @p outSeqsSize + * @param outSeqsCapacity The size of the output sequences buffer. + * ZSTD_sequenceBound(srcSize) is an upper bound on the number + * of sequences that can be generated. + * @param src The source buffer to generate sequences from of size @p srcSize. + * @param srcSize The size of the source buffer. + * + * Each block will end with a dummy sequence + * with offset == 0, matchLength == 0, and litLength == length of last literals. + * litLength may be == 0, and if so, then the sequence of (of: 0 ml: 0 ll: 0) + * simply acts as a block delimiter. + * + * @returns The number of sequences generated, necessarily less than + * ZSTD_sequenceBound(srcSize), or an error code that can be checked + * with ZSTD_isError(). + */ +ZSTD_DEPRECATED("For debugging only, will be replaced by ZSTD_extractSequences()") +ZSTDLIB_STATIC_API size_t +ZSTD_generateSequences(ZSTD_CCtx* zc, + ZSTD_Sequence* outSeqs, size_t outSeqsCapacity, + const void* src, size_t srcSize); + +/*! ZSTD_mergeBlockDelimiters() : + * Given an array of ZSTD_Sequence, remove all sequences that represent block delimiters/last literals + * by merging them into the literals of the next sequence. + * + * As such, the final generated result has no explicit representation of block boundaries, + * and the final last literals segment is not represented in the sequences. + * + * The output of this function can be fed into ZSTD_compressSequences() with CCtx + * setting of ZSTD_c_blockDelimiters as ZSTD_sf_noBlockDelimiters + * @return : number of sequences left after merging + */ +ZSTDLIB_STATIC_API size_t ZSTD_mergeBlockDelimiters(ZSTD_Sequence* sequences, size_t seqsSize); + +/*! ZSTD_compressSequences() : + * Compress an array of ZSTD_Sequence, associated with @src buffer, into dst. + * @src contains the entire input (not just the literals). + * If @srcSize > sum(sequence.length), the remaining bytes are considered all literals + * If a dictionary is included, then the cctx should reference the dict (see: ZSTD_CCtx_refCDict(), ZSTD_CCtx_loadDictionary(), etc.). + * The entire source is compressed into a single frame. + * + * The compression behavior changes based on cctx params. In particular: + * If ZSTD_c_blockDelimiters == ZSTD_sf_noBlockDelimiters, the array of ZSTD_Sequence is expected to contain + * no block delimiters (defined in ZSTD_Sequence). Block boundaries are roughly determined based on + * the block size derived from the cctx, and sequences may be split. This is the default setting. + * + * If ZSTD_c_blockDelimiters == ZSTD_sf_explicitBlockDelimiters, the array of ZSTD_Sequence is expected to contain + * valid block delimiters (defined in ZSTD_Sequence). Behavior is undefined if no block delimiters are provided. + * + * When ZSTD_c_blockDelimiters == ZSTD_sf_explicitBlockDelimiters, it's possible to decide generating repcodes + * using the advanced parameter ZSTD_c_repcodeResolution. Repcodes will improve compression ratio, though the benefit + * can vary greatly depending on Sequences. On the other hand, repcode resolution is an expensive operation. + * By default, it's disabled at low (<10) compression levels, and enabled above the threshold (>=10). + * ZSTD_c_repcodeResolution makes it possible to directly manage this processing in either direction. + * + * If ZSTD_c_validateSequences == 0, this function blindly accepts the Sequences provided. Invalid Sequences cause undefined + * behavior. If ZSTD_c_validateSequences == 1, then the function will detect invalid Sequences (see doc/zstd_compression_format.md for + * specifics regarding offset/matchlength requirements) and then bail out and return an error. + * + * In addition to the two adjustable experimental params, there are other important cctx params. + * - ZSTD_c_minMatch MUST be set as less than or equal to the smallest match generated by the match finder. It has a minimum value of ZSTD_MINMATCH_MIN. + * - ZSTD_c_compressionLevel accordingly adjusts the strength of the entropy coder, as it would in typical compression. + * - ZSTD_c_windowLog affects offset validation: this function will return an error at higher debug levels if a provided offset + * is larger than what the spec allows for a given window log and dictionary (if present). See: doc/zstd_compression_format.md + * + * Note: Repcodes are, as of now, always re-calculated within this function, ZSTD_Sequence.rep is effectively unused. + * Dev Note: Once ability to ingest repcodes become available, the explicit block delims mode must respect those repcodes exactly, + * and cannot emit an RLE block that disagrees with the repcode history. + * @return : final compressed size, or a ZSTD error code. + */ +ZSTDLIB_STATIC_API size_t +ZSTD_compressSequences(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const ZSTD_Sequence* inSeqs, size_t inSeqsSize, + const void* src, size_t srcSize); + + +/*! ZSTD_compressSequencesAndLiterals() : + * This is a variant of ZSTD_compressSequences() which, + * instead of receiving (src,srcSize) as input parameter, receives (literals,litSize), + * aka all the literals, already extracted and laid out into a single continuous buffer. + * This can be useful if the process generating the sequences also happens to generate the buffer of literals, + * thus skipping an extraction + caching stage. + * It's a speed optimization, useful when the right conditions are met, + * but it also features the following limitations: + * - Only supports explicit delimiter mode + * - Currently does not support Sequences validation (so input Sequences are trusted) + * - Not compatible with frame checksum, which must be disabled + * - If any block is incompressible, will fail and return an error + * - @litSize must be == sum of all @.litLength fields in @inSeqs. Any discrepancy will generate an error. + * - @litBufCapacity is the size of the underlying buffer into which literals are written, starting at address @literals. + * @litBufCapacity must be at least 8 bytes larger than @litSize. + * - @decompressedSize must be correct, and correspond to the sum of all Sequences. Any discrepancy will generate an error. + * @return : final compressed size, or a ZSTD error code. + */ +ZSTDLIB_STATIC_API size_t +ZSTD_compressSequencesAndLiterals(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const ZSTD_Sequence* inSeqs, size_t nbSequences, + const void* literals, size_t litSize, size_t litBufCapacity, + size_t decompressedSize); + + +/*! ZSTD_writeSkippableFrame() : + * Generates a zstd skippable frame containing data given by src, and writes it to dst buffer. + * + * Skippable frames begin with a 4-byte magic number. There are 16 possible choices of magic number, + * ranging from ZSTD_MAGIC_SKIPPABLE_START to ZSTD_MAGIC_SKIPPABLE_START+15. + * As such, the parameter magicVariant controls the exact skippable frame magic number variant used, + * so the magic number used will be ZSTD_MAGIC_SKIPPABLE_START + magicVariant. + * + * Returns an error if destination buffer is not large enough, if the source size is not representable + * with a 4-byte unsigned int, or if the parameter magicVariant is greater than 15 (and therefore invalid). + * + * @return : number of bytes written or a ZSTD error. + */ +ZSTDLIB_STATIC_API size_t ZSTD_writeSkippableFrame(void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + unsigned magicVariant); + +/*! ZSTD_readSkippableFrame() : + * Retrieves the content of a zstd skippable frame starting at @src, and writes it to @dst buffer. + * + * The parameter @magicVariant will receive the magicVariant that was supplied when the frame was written, + * i.e. magicNumber - ZSTD_MAGIC_SKIPPABLE_START. + * This can be NULL if the caller is not interested in the magicVariant. + * + * Returns an error if destination buffer is not large enough, or if the frame is not skippable. + * + * @return : number of bytes written or a ZSTD error. + */ +ZSTDLIB_STATIC_API size_t ZSTD_readSkippableFrame(void* dst, size_t dstCapacity, + unsigned* magicVariant, + const void* src, size_t srcSize); + +/*! ZSTD_isSkippableFrame() : + * Tells if the content of `buffer` starts with a valid Frame Identifier for a skippable frame. + */ +ZSTDLIB_STATIC_API unsigned ZSTD_isSkippableFrame(const void* buffer, size_t size); + + + +/*************************************** +* Memory management +***************************************/ + +/*! ZSTD_estimate*() : + * These functions make it possible to estimate memory usage + * of a future {D,C}Ctx, before its creation. + * This is useful in combination with ZSTD_initStatic(), + * which makes it possible to employ a static buffer for ZSTD_CCtx* state. + * + * ZSTD_estimateCCtxSize() will provide a memory budget large enough + * to compress data of any size using one-shot compression ZSTD_compressCCtx() or ZSTD_compress2() + * associated with any compression level up to max specified one. + * The estimate will assume the input may be arbitrarily large, + * which is the worst case. + * + * Note that the size estimation is specific for one-shot compression, + * it is not valid for streaming (see ZSTD_estimateCStreamSize*()) + * nor other potential ways of using a ZSTD_CCtx* state. + * + * When srcSize can be bound by a known and rather "small" value, + * this knowledge can be used to provide a tighter budget estimation + * because the ZSTD_CCtx* state will need less memory for small inputs. + * This tighter estimation can be provided by employing more advanced functions + * ZSTD_estimateCCtxSize_usingCParams(), which can be used in tandem with ZSTD_getCParams(), + * and ZSTD_estimateCCtxSize_usingCCtxParams(), which can be used in tandem with ZSTD_CCtxParams_setParameter(). + * Both can be used to estimate memory using custom compression parameters and arbitrary srcSize limits. + * + * Note : only single-threaded compression is supported. + * ZSTD_estimateCCtxSize_usingCCtxParams() will return an error code if ZSTD_c_nbWorkers is >= 1. + */ +ZSTDLIB_STATIC_API size_t ZSTD_estimateCCtxSize(int maxCompressionLevel); +ZSTDLIB_STATIC_API size_t ZSTD_estimateCCtxSize_usingCParams(ZSTD_compressionParameters cParams); +ZSTDLIB_STATIC_API size_t ZSTD_estimateCCtxSize_usingCCtxParams(const ZSTD_CCtx_params* params); +ZSTDLIB_STATIC_API size_t ZSTD_estimateDCtxSize(void); + +/*! ZSTD_estimateCStreamSize() : + * ZSTD_estimateCStreamSize() will provide a memory budget large enough for streaming compression + * using any compression level up to the max specified one. + * It will also consider src size to be arbitrarily "large", which is a worst case scenario. + * If srcSize is known to always be small, ZSTD_estimateCStreamSize_usingCParams() can provide a tighter estimation. + * ZSTD_estimateCStreamSize_usingCParams() can be used in tandem with ZSTD_getCParams() to create cParams from compressionLevel. + * ZSTD_estimateCStreamSize_usingCCtxParams() can be used in tandem with ZSTD_CCtxParams_setParameter(). Only single-threaded compression is supported. This function will return an error code if ZSTD_c_nbWorkers is >= 1. + * Note : CStream size estimation is only correct for single-threaded compression. + * ZSTD_estimateCStreamSize_usingCCtxParams() will return an error code if ZSTD_c_nbWorkers is >= 1. + * Note 2 : ZSTD_estimateCStreamSize* functions are not compatible with the Block-Level Sequence Producer API at this time. + * Size estimates assume that no external sequence producer is registered. + * + * ZSTD_DStream memory budget depends on frame's window Size. + * This information can be passed manually, using ZSTD_estimateDStreamSize, + * or deducted from a valid frame Header, using ZSTD_estimateDStreamSize_fromFrame(); + * Any frame requesting a window size larger than max specified one will be rejected. + * Note : if streaming is init with function ZSTD_init?Stream_usingDict(), + * an internal ?Dict will be created, which additional size is not estimated here. + * In this case, get total size by adding ZSTD_estimate?DictSize + */ +ZSTDLIB_STATIC_API size_t ZSTD_estimateCStreamSize(int maxCompressionLevel); +ZSTDLIB_STATIC_API size_t ZSTD_estimateCStreamSize_usingCParams(ZSTD_compressionParameters cParams); +ZSTDLIB_STATIC_API size_t ZSTD_estimateCStreamSize_usingCCtxParams(const ZSTD_CCtx_params* params); +ZSTDLIB_STATIC_API size_t ZSTD_estimateDStreamSize(size_t maxWindowSize); +ZSTDLIB_STATIC_API size_t ZSTD_estimateDStreamSize_fromFrame(const void* src, size_t srcSize); + +/*! ZSTD_estimate?DictSize() : + * ZSTD_estimateCDictSize() will bet that src size is relatively "small", and content is copied, like ZSTD_createCDict(). + * ZSTD_estimateCDictSize_advanced() makes it possible to control compression parameters precisely, like ZSTD_createCDict_advanced(). + * Note : dictionaries created by reference (`ZSTD_dlm_byRef`) are logically smaller. + */ +ZSTDLIB_STATIC_API size_t ZSTD_estimateCDictSize(size_t dictSize, int compressionLevel); +ZSTDLIB_STATIC_API size_t ZSTD_estimateCDictSize_advanced(size_t dictSize, ZSTD_compressionParameters cParams, ZSTD_dictLoadMethod_e dictLoadMethod); +ZSTDLIB_STATIC_API size_t ZSTD_estimateDDictSize(size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod); + +/*! ZSTD_initStatic*() : + * Initialize an object using a pre-allocated fixed-size buffer. + * workspace: The memory area to emplace the object into. + * Provided pointer *must be 8-bytes aligned*. + * Buffer must outlive object. + * workspaceSize: Use ZSTD_estimate*Size() to determine + * how large workspace must be to support target scenario. + * @return : pointer to object (same address as workspace, just different type), + * or NULL if error (size too small, incorrect alignment, etc.) + * Note : zstd will never resize nor malloc() when using a static buffer. + * If the object requires more memory than available, + * zstd will just error out (typically ZSTD_error_memory_allocation). + * Note 2 : there is no corresponding "free" function. + * Since workspace is allocated externally, it must be freed externally too. + * Note 3 : cParams : use ZSTD_getCParams() to convert a compression level + * into its associated cParams. + * Limitation 1 : currently not compatible with internal dictionary creation, triggered by + * ZSTD_CCtx_loadDictionary(), ZSTD_initCStream_usingDict() or ZSTD_initDStream_usingDict(). + * Limitation 2 : static cctx currently not compatible with multi-threading. + * Limitation 3 : static dctx is incompatible with legacy support. + */ +ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_initStaticCCtx(void* workspace, size_t workspaceSize); +ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_initStaticCStream(void* workspace, size_t workspaceSize); /**< same as ZSTD_initStaticCCtx() */ + +ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_initStaticDCtx(void* workspace, size_t workspaceSize); +ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_initStaticDStream(void* workspace, size_t workspaceSize); /**< same as ZSTD_initStaticDCtx() */ + +ZSTDLIB_STATIC_API const ZSTD_CDict* ZSTD_initStaticCDict( + void* workspace, size_t workspaceSize, + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + ZSTD_compressionParameters cParams); + +ZSTDLIB_STATIC_API const ZSTD_DDict* ZSTD_initStaticDDict( + void* workspace, size_t workspaceSize, + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType); + + +/*! Custom memory allocation : + * These prototypes make it possible to pass your own allocation/free functions. + * ZSTD_customMem is provided at creation time, using ZSTD_create*_advanced() variants listed below. + * All allocation/free operations will be completed using these custom variants instead of regular ones. + */ +typedef void* (*ZSTD_allocFunction) (void* opaque, size_t size); +typedef void (*ZSTD_freeFunction) (void* opaque, void* address); +typedef struct { ZSTD_allocFunction customAlloc; ZSTD_freeFunction customFree; void* opaque; } ZSTD_customMem; +static +#ifdef __GNUC__ +__attribute__((__unused__)) +#endif + +#if defined(__clang__) && __clang_major__ >= 5 +#pragma clang diagnostic push +#pragma clang diagnostic ignored "-Wzero-as-null-pointer-constant" +#endif +ZSTD_customMem const ZSTD_defaultCMem = { NULL, NULL, NULL }; /**< this constant defers to stdlib's functions */ +#if defined(__clang__) && __clang_major__ >= 5 +#pragma clang diagnostic pop +#endif + +ZSTDLIB_STATIC_API ZSTD_CCtx* ZSTD_createCCtx_advanced(ZSTD_customMem customMem); +ZSTDLIB_STATIC_API ZSTD_CStream* ZSTD_createCStream_advanced(ZSTD_customMem customMem); +ZSTDLIB_STATIC_API ZSTD_DCtx* ZSTD_createDCtx_advanced(ZSTD_customMem customMem); +ZSTDLIB_STATIC_API ZSTD_DStream* ZSTD_createDStream_advanced(ZSTD_customMem customMem); + +ZSTDLIB_STATIC_API ZSTD_CDict* ZSTD_createCDict_advanced(const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + ZSTD_compressionParameters cParams, + ZSTD_customMem customMem); + +/*! Thread pool : + * These prototypes make it possible to share a thread pool among multiple compression contexts. + * This can limit resources for applications with multiple threads where each one uses + * a threaded compression mode (via ZSTD_c_nbWorkers parameter). + * ZSTD_createThreadPool creates a new thread pool with a given number of threads. + * Note that the lifetime of such pool must exist while being used. + * ZSTD_CCtx_refThreadPool assigns a thread pool to a context (use NULL argument value + * to use an internal thread pool). + * ZSTD_freeThreadPool frees a thread pool, accepts NULL pointer. + */ +typedef struct POOL_ctx_s ZSTD_threadPool; +ZSTDLIB_STATIC_API ZSTD_threadPool* ZSTD_createThreadPool(size_t numThreads); +ZSTDLIB_STATIC_API void ZSTD_freeThreadPool (ZSTD_threadPool* pool); /* accept NULL pointer */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_refThreadPool(ZSTD_CCtx* cctx, ZSTD_threadPool* pool); + + +/* + * This API is temporary and is expected to change or disappear in the future! + */ +ZSTDLIB_STATIC_API ZSTD_CDict* ZSTD_createCDict_advanced2( + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + const ZSTD_CCtx_params* cctxParams, + ZSTD_customMem customMem); + +ZSTDLIB_STATIC_API ZSTD_DDict* ZSTD_createDDict_advanced( + const void* dict, size_t dictSize, + ZSTD_dictLoadMethod_e dictLoadMethod, + ZSTD_dictContentType_e dictContentType, + ZSTD_customMem customMem); + + +/*************************************** +* Advanced compression functions +***************************************/ + +/*! ZSTD_createCDict_byReference() : + * Create a digested dictionary for compression + * Dictionary content is just referenced, not duplicated. + * As a consequence, `dictBuffer` **must** outlive CDict, + * and its content must remain unmodified throughout the lifetime of CDict. + * note: equivalent to ZSTD_createCDict_advanced(), with dictLoadMethod==ZSTD_dlm_byRef */ +ZSTDLIB_STATIC_API ZSTD_CDict* ZSTD_createCDict_byReference(const void* dictBuffer, size_t dictSize, int compressionLevel); + +/*! ZSTD_getCParams() : + * @return ZSTD_compressionParameters structure for a selected compression level and estimated srcSize. + * `estimatedSrcSize` value is optional, select 0 if not known */ +ZSTDLIB_STATIC_API ZSTD_compressionParameters ZSTD_getCParams(int compressionLevel, unsigned long long estimatedSrcSize, size_t dictSize); + +/*! ZSTD_getParams() : + * same as ZSTD_getCParams(), but @return a full `ZSTD_parameters` object instead of sub-component `ZSTD_compressionParameters`. + * All fields of `ZSTD_frameParameters` are set to default : contentSize=1, checksum=0, noDictID=0 */ +ZSTDLIB_STATIC_API ZSTD_parameters ZSTD_getParams(int compressionLevel, unsigned long long estimatedSrcSize, size_t dictSize); + +/*! ZSTD_checkCParams() : + * Ensure param values remain within authorized range. + * @return 0 on success, or an error code (can be checked with ZSTD_isError()) */ +ZSTDLIB_STATIC_API size_t ZSTD_checkCParams(ZSTD_compressionParameters params); + +/*! ZSTD_adjustCParams() : + * optimize params for a given `srcSize` and `dictSize`. + * `srcSize` can be unknown, in which case use ZSTD_CONTENTSIZE_UNKNOWN. + * `dictSize` must be `0` when there is no dictionary. + * cPar can be invalid : all parameters will be clamped within valid range in the @return struct. + * This function never fails (wide contract) */ +ZSTDLIB_STATIC_API ZSTD_compressionParameters ZSTD_adjustCParams(ZSTD_compressionParameters cPar, unsigned long long srcSize, size_t dictSize); + +/*! ZSTD_CCtx_setCParams() : + * Set all parameters provided within @p cparams into the working @p cctx. + * Note : if modifying parameters during compression (MT mode only), + * note that changes to the .windowLog parameter will be ignored. + * @return 0 on success, or an error code (can be checked with ZSTD_isError()). + * On failure, no parameters are updated. + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_setCParams(ZSTD_CCtx* cctx, ZSTD_compressionParameters cparams); + +/*! ZSTD_CCtx_setFParams() : + * Set all parameters provided within @p fparams into the working @p cctx. + * @return 0 on success, or an error code (can be checked with ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_setFParams(ZSTD_CCtx* cctx, ZSTD_frameParameters fparams); + +/*! ZSTD_CCtx_setParams() : + * Set all parameters provided within @p params into the working @p cctx. + * @return 0 on success, or an error code (can be checked with ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_setParams(ZSTD_CCtx* cctx, ZSTD_parameters params); + +/*! ZSTD_compress_advanced() : + * Note : this function is now DEPRECATED. + * It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_setParameter() and other parameter setters. + * This prototype will generate compilation warnings. */ +ZSTD_DEPRECATED("use ZSTD_compress2") +ZSTDLIB_STATIC_API +size_t ZSTD_compress_advanced(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const void* dict,size_t dictSize, + ZSTD_parameters params); + +/*! ZSTD_compress_usingCDict_advanced() : + * Note : this function is now DEPRECATED. + * It can be replaced by ZSTD_compress2(), in combination with ZSTD_CCtx_loadDictionary() and other parameter setters. + * This prototype will generate compilation warnings. */ +ZSTD_DEPRECATED("use ZSTD_compress2 with ZSTD_CCtx_loadDictionary") +ZSTDLIB_STATIC_API +size_t ZSTD_compress_usingCDict_advanced(ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, + const void* src, size_t srcSize, + const ZSTD_CDict* cdict, + ZSTD_frameParameters fParams); + + +/*! ZSTD_CCtx_loadDictionary_byReference() : + * Same as ZSTD_CCtx_loadDictionary(), but dictionary content is referenced, instead of being copied into CCtx. + * It saves some memory, but also requires that `dict` outlives its usage within `cctx` */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_loadDictionary_byReference(ZSTD_CCtx* cctx, const void* dict, size_t dictSize); + +/*! ZSTD_CCtx_loadDictionary_advanced() : + * Same as ZSTD_CCtx_loadDictionary(), but gives finer control over + * how to load the dictionary (by copy ? by reference ?) + * and how to interpret it (automatic ? force raw mode ? full mode only ?) */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_loadDictionary_advanced(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType); + +/*! ZSTD_CCtx_refPrefix_advanced() : + * Same as ZSTD_CCtx_refPrefix(), but gives finer control over + * how to interpret prefix content (automatic ? force raw mode (default) ? full mode only ?) */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_refPrefix_advanced(ZSTD_CCtx* cctx, const void* prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType); + +/* === experimental parameters === */ +/* these parameters can be used with ZSTD_setParameter() + * they are not guaranteed to remain supported in the future */ + + /* Enables rsyncable mode, + * which makes compressed files more rsync friendly + * by adding periodic synchronization points to the compressed data. + * The target average block size is ZSTD_c_jobSize / 2. + * It's possible to modify the job size to increase or decrease + * the granularity of the synchronization point. + * Once the jobSize is smaller than the window size, + * it will result in compression ratio degradation. + * NOTE 1: rsyncable mode only works when multithreading is enabled. + * NOTE 2: rsyncable performs poorly in combination with long range mode, + * since it will decrease the effectiveness of synchronization points, + * though mileage may vary. + * NOTE 3: Rsyncable mode limits maximum compression speed to ~400 MB/s. + * If the selected compression level is already running significantly slower, + * the overall speed won't be significantly impacted. + */ + #define ZSTD_c_rsyncable ZSTD_c_experimentalParam1 + +/* Select a compression format. + * The value must be of type ZSTD_format_e. + * See ZSTD_format_e enum definition for details */ +#define ZSTD_c_format ZSTD_c_experimentalParam2 + +/* Force back-reference distances to remain < windowSize, + * even when referencing into Dictionary content (default:0) */ +#define ZSTD_c_forceMaxWindow ZSTD_c_experimentalParam3 + +/* Controls whether the contents of a CDict + * are used in place, or copied into the working context. + * Accepts values from the ZSTD_dictAttachPref_e enum. + * See the comments on that enum for an explanation of the feature. */ +#define ZSTD_c_forceAttachDict ZSTD_c_experimentalParam4 + +/* Controlled with ZSTD_ParamSwitch_e enum. + * Default is ZSTD_ps_auto. + * Set to ZSTD_ps_disable to never compress literals. + * Set to ZSTD_ps_enable to always compress literals. (Note: uncompressed literals + * may still be emitted if huffman is not beneficial to use.) + * + * By default, in ZSTD_ps_auto, the library will decide at runtime whether to use + * literals compression based on the compression parameters - specifically, + * negative compression levels do not use literal compression. + */ +#define ZSTD_c_literalCompressionMode ZSTD_c_experimentalParam5 + +/* User's best guess of source size. + * Hint is not valid when srcSizeHint == 0. + * There is no guarantee that hint is close to actual source size, + * but compression ratio may regress significantly if guess considerably underestimates */ +#define ZSTD_c_srcSizeHint ZSTD_c_experimentalParam7 + +/* Controls whether the new and experimental "dedicated dictionary search + * structure" can be used. This feature is still rough around the edges, be + * prepared for surprising behavior! + * + * How to use it: + * + * When using a CDict, whether to use this feature or not is controlled at + * CDict creation, and it must be set in a CCtxParams set passed into that + * construction (via ZSTD_createCDict_advanced2()). A compression will then + * use the feature or not based on how the CDict was constructed; the value of + * this param, set in the CCtx, will have no effect. + * + * However, when a dictionary buffer is passed into a CCtx, such as via + * ZSTD_CCtx_loadDictionary(), this param can be set on the CCtx to control + * whether the CDict that is created internally can use the feature or not. + * + * What it does: + * + * Normally, the internal data structures of the CDict are analogous to what + * would be stored in a CCtx after compressing the contents of a dictionary. + * To an approximation, a compression using a dictionary can then use those + * data structures to simply continue what is effectively a streaming + * compression where the simulated compression of the dictionary left off. + * Which is to say, the search structures in the CDict are normally the same + * format as in the CCtx. + * + * It is possible to do better, since the CDict is not like a CCtx: the search + * structures are written once during CDict creation, and then are only read + * after that, while the search structures in the CCtx are both read and + * written as the compression goes along. This means we can choose a search + * structure for the dictionary that is read-optimized. + * + * This feature enables the use of that different structure. + * + * Note that some of the members of the ZSTD_compressionParameters struct have + * different semantics and constraints in the dedicated search structure. It is + * highly recommended that you simply set a compression level in the CCtxParams + * you pass into the CDict creation call, and avoid messing with the cParams + * directly. + * + * Effects: + * + * This will only have any effect when the selected ZSTD_strategy + * implementation supports this feature. Currently, that's limited to + * ZSTD_greedy, ZSTD_lazy, and ZSTD_lazy2. + * + * Note that this means that the CDict tables can no longer be copied into the + * CCtx, so the dict attachment mode ZSTD_dictForceCopy will no longer be + * usable. The dictionary can only be attached or reloaded. + * + * In general, you should expect compression to be faster--sometimes very much + * so--and CDict creation to be slightly slower. Eventually, we will probably + * make this mode the default. + */ +#define ZSTD_c_enableDedicatedDictSearch ZSTD_c_experimentalParam8 + +/* ZSTD_c_stableInBuffer + * Experimental parameter. + * Default is 0 == disabled. Set to 1 to enable. + * + * Tells the compressor that input data presented with ZSTD_inBuffer + * will ALWAYS be the same between calls. + * Technically, the @src pointer must never be changed, + * and the @pos field can only be updated by zstd. + * However, it's possible to increase the @size field, + * allowing scenarios where more data can be appended after compressions starts. + * These conditions are checked by the compressor, + * and compression will fail if they are not respected. + * Also, data in the ZSTD_inBuffer within the range [src, src + pos) + * MUST not be modified during compression or it will result in data corruption. + * + * When this flag is enabled zstd won't allocate an input window buffer, + * because the user guarantees it can reference the ZSTD_inBuffer until + * the frame is complete. But, it will still allocate an output buffer + * large enough to fit a block (see ZSTD_c_stableOutBuffer). This will also + * avoid the memcpy() from the input buffer to the input window buffer. + * + * NOTE: So long as the ZSTD_inBuffer always points to valid memory, using + * this flag is ALWAYS memory safe, and will never access out-of-bounds + * memory. However, compression WILL fail if conditions are not respected. + * + * WARNING: The data in the ZSTD_inBuffer in the range [src, src + pos) MUST + * not be modified during compression or it will result in data corruption. + * This is because zstd needs to reference data in the ZSTD_inBuffer to find + * matches. Normally zstd maintains its own window buffer for this purpose, + * but passing this flag tells zstd to rely on user provided buffer instead. + */ +#define ZSTD_c_stableInBuffer ZSTD_c_experimentalParam9 + +/* ZSTD_c_stableOutBuffer + * Experimental parameter. + * Default is 0 == disabled. Set to 1 to enable. + * + * Tells he compressor that the ZSTD_outBuffer will not be resized between + * calls. Specifically: (out.size - out.pos) will never grow. This gives the + * compressor the freedom to say: If the compressed data doesn't fit in the + * output buffer then return ZSTD_error_dstSizeTooSmall. This allows us to + * always decompress directly into the output buffer, instead of decompressing + * into an internal buffer and copying to the output buffer. + * + * When this flag is enabled zstd won't allocate an output buffer, because + * it can write directly to the ZSTD_outBuffer. It will still allocate the + * input window buffer (see ZSTD_c_stableInBuffer). + * + * Zstd will check that (out.size - out.pos) never grows and return an error + * if it does. While not strictly necessary, this should prevent surprises. + */ +#define ZSTD_c_stableOutBuffer ZSTD_c_experimentalParam10 + +/* ZSTD_c_blockDelimiters + * Default is 0 == ZSTD_sf_noBlockDelimiters. + * + * For use with sequence compression API: ZSTD_compressSequences(). + * + * Designates whether or not the given array of ZSTD_Sequence contains block delimiters + * and last literals, which are defined as sequences with offset == 0 and matchLength == 0. + * See the definition of ZSTD_Sequence for more specifics. + */ +#define ZSTD_c_blockDelimiters ZSTD_c_experimentalParam11 + +/* ZSTD_c_validateSequences + * Default is 0 == disabled. Set to 1 to enable sequence validation. + * + * For use with sequence compression API: ZSTD_compressSequences*(). + * Designates whether or not provided sequences are validated within ZSTD_compressSequences*() + * during function execution. + * + * When Sequence validation is disabled (default), Sequences are compressed as-is, + * so they must correct, otherwise it would result in a corruption error. + * + * Sequence validation adds some protection, by ensuring that all values respect boundary conditions. + * If a Sequence is detected invalid (see doc/zstd_compression_format.md for + * specifics regarding offset/matchlength requirements) then the function will bail out and + * return an error. + */ +#define ZSTD_c_validateSequences ZSTD_c_experimentalParam12 + +/* ZSTD_c_blockSplitterLevel + * note: this parameter only influences the first splitter stage, + * which is active before producing the sequences. + * ZSTD_c_splitAfterSequences controls the next splitter stage, + * which is active after sequence production. + * Note that both can be combined. + * Allowed values are between 0 and ZSTD_BLOCKSPLITTER_LEVEL_MAX included. + * 0 means "auto", which will select a value depending on current ZSTD_c_strategy. + * 1 means no splitting. + * Then, values from 2 to 6 are sorted in increasing cpu load order. + * + * Note that currently the first block is never split, + * to ensure expansion guarantees in presence of incompressible data. + */ +#define ZSTD_BLOCKSPLITTER_LEVEL_MAX 6 +#define ZSTD_c_blockSplitterLevel ZSTD_c_experimentalParam20 + +/* ZSTD_c_splitAfterSequences + * This is a stronger splitter algorithm, + * based on actual sequences previously produced by the selected parser. + * It's also slower, and as a consequence, mostly used for high compression levels. + * While the post-splitter does overlap with the pre-splitter, + * both can nonetheless be combined, + * notably with ZSTD_c_blockSplitterLevel at ZSTD_BLOCKSPLITTER_LEVEL_MAX, + * resulting in higher compression ratio than just one of them. + * + * Default is ZSTD_ps_auto. + * Set to ZSTD_ps_disable to never use block splitter. + * Set to ZSTD_ps_enable to always use block splitter. + * + * By default, in ZSTD_ps_auto, the library will decide at runtime whether to use + * block splitting based on the compression parameters. + */ +#define ZSTD_c_splitAfterSequences ZSTD_c_experimentalParam13 + +/* ZSTD_c_useRowMatchFinder + * Controlled with ZSTD_ParamSwitch_e enum. + * Default is ZSTD_ps_auto. + * Set to ZSTD_ps_disable to never use row-based matchfinder. + * Set to ZSTD_ps_enable to force usage of row-based matchfinder. + * + * By default, in ZSTD_ps_auto, the library will decide at runtime whether to use + * the row-based matchfinder based on support for SIMD instructions and the window log. + * Note that this only pertains to compression strategies: greedy, lazy, and lazy2 + */ +#define ZSTD_c_useRowMatchFinder ZSTD_c_experimentalParam14 + +/* ZSTD_c_deterministicRefPrefix + * Default is 0 == disabled. Set to 1 to enable. + * + * Zstd produces different results for prefix compression when the prefix is + * directly adjacent to the data about to be compressed vs. when it isn't. + * This is because zstd detects that the two buffers are contiguous and it can + * use a more efficient match finding algorithm. However, this produces different + * results than when the two buffers are non-contiguous. This flag forces zstd + * to always load the prefix in non-contiguous mode, even if it happens to be + * adjacent to the data, to guarantee determinism. + * + * If you really care about determinism when using a dictionary or prefix, + * like when doing delta compression, you should select this option. It comes + * at a speed penalty of about ~2.5% if the dictionary and data happened to be + * contiguous, and is free if they weren't contiguous. We don't expect that + * intentionally making the dictionary and data contiguous will be worth the + * cost to memcpy() the data. + */ +#define ZSTD_c_deterministicRefPrefix ZSTD_c_experimentalParam15 + +/* ZSTD_c_prefetchCDictTables + * Controlled with ZSTD_ParamSwitch_e enum. Default is ZSTD_ps_auto. + * + * In some situations, zstd uses CDict tables in-place rather than copying them + * into the working context. (See docs on ZSTD_dictAttachPref_e above for details). + * In such situations, compression speed is seriously impacted when CDict tables are + * "cold" (outside CPU cache). This parameter instructs zstd to prefetch CDict tables + * when they are used in-place. + * + * For sufficiently small inputs, the cost of the prefetch will outweigh the benefit. + * For sufficiently large inputs, zstd will by default memcpy() CDict tables + * into the working context, so there is no need to prefetch. This parameter is + * targeted at a middle range of input sizes, where a prefetch is cheap enough to be + * useful but memcpy() is too expensive. The exact range of input sizes where this + * makes sense is best determined by careful experimentation. + * + * Note: for this parameter, ZSTD_ps_auto is currently equivalent to ZSTD_ps_disable, + * but in the future zstd may conditionally enable this feature via an auto-detection + * heuristic for cold CDicts. + * Use ZSTD_ps_disable to opt out of prefetching under any circumstances. + */ +#define ZSTD_c_prefetchCDictTables ZSTD_c_experimentalParam16 + +/* ZSTD_c_enableSeqProducerFallback + * Allowed values are 0 (disable) and 1 (enable). The default setting is 0. + * + * Controls whether zstd will fall back to an internal sequence producer if an + * external sequence producer is registered and returns an error code. This fallback + * is block-by-block: the internal sequence producer will only be called for blocks + * where the external sequence producer returns an error code. Fallback parsing will + * follow any other cParam settings, such as compression level, the same as in a + * normal (fully-internal) compression operation. + * + * The user is strongly encouraged to read the full Block-Level Sequence Producer API + * documentation (below) before setting this parameter. */ +#define ZSTD_c_enableSeqProducerFallback ZSTD_c_experimentalParam17 + +/* ZSTD_c_maxBlockSize + * Allowed values are between 1KB and ZSTD_BLOCKSIZE_MAX (128KB). + * The default is ZSTD_BLOCKSIZE_MAX, and setting to 0 will set to the default. + * + * This parameter can be used to set an upper bound on the blocksize + * that overrides the default ZSTD_BLOCKSIZE_MAX. It cannot be used to set upper + * bounds greater than ZSTD_BLOCKSIZE_MAX or bounds lower than 1KB (will make + * compressBound() inaccurate). Only currently meant to be used for testing. + */ +#define ZSTD_c_maxBlockSize ZSTD_c_experimentalParam18 + +/* ZSTD_c_repcodeResolution + * This parameter only has an effect if ZSTD_c_blockDelimiters is + * set to ZSTD_sf_explicitBlockDelimiters (may change in the future). + * + * This parameter affects how zstd parses external sequences, + * provided via the ZSTD_compressSequences*() API + * or from an external block-level sequence producer. + * + * If set to ZSTD_ps_enable, the library will check for repeated offsets within + * external sequences, even if those repcodes are not explicitly indicated in + * the "rep" field. Note that this is the only way to exploit repcode matches + * while using compressSequences*() or an external sequence producer, since zstd + * currently ignores the "rep" field of external sequences. + * + * If set to ZSTD_ps_disable, the library will not exploit repeated offsets in + * external sequences, regardless of whether the "rep" field has been set. This + * reduces sequence compression overhead by about 25% while sacrificing some + * compression ratio. + * + * The default value is ZSTD_ps_auto, for which the library will enable/disable + * based on compression level (currently: level<10 disables, level>=10 enables). + */ +#define ZSTD_c_repcodeResolution ZSTD_c_experimentalParam19 +#define ZSTD_c_searchForExternalRepcodes ZSTD_c_experimentalParam19 /* older name */ + + +/*! ZSTD_CCtx_getParameter() : + * Get the requested compression parameter value, selected by enum ZSTD_cParameter, + * and store it into int* value. + * @return : 0, or an error code (which can be tested with ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_getParameter(const ZSTD_CCtx* cctx, ZSTD_cParameter param, int* value); + + +/*! ZSTD_CCtx_params : + * Quick howto : + * - ZSTD_createCCtxParams() : Create a ZSTD_CCtx_params structure + * - ZSTD_CCtxParams_setParameter() : Push parameters one by one into + * an existing ZSTD_CCtx_params structure. + * This is similar to + * ZSTD_CCtx_setParameter(). + * - ZSTD_CCtx_setParametersUsingCCtxParams() : Apply parameters to + * an existing CCtx. + * These parameters will be applied to + * all subsequent frames. + * - ZSTD_compressStream2() : Do compression using the CCtx. + * - ZSTD_freeCCtxParams() : Free the memory, accept NULL pointer. + * + * This can be used with ZSTD_estimateCCtxSize_advanced_usingCCtxParams() + * for static allocation of CCtx for single-threaded compression. + */ +ZSTDLIB_STATIC_API ZSTD_CCtx_params* ZSTD_createCCtxParams(void); +ZSTDLIB_STATIC_API size_t ZSTD_freeCCtxParams(ZSTD_CCtx_params* params); /* accept NULL pointer */ + +/*! ZSTD_CCtxParams_reset() : + * Reset params to default values. + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_reset(ZSTD_CCtx_params* params); + +/*! ZSTD_CCtxParams_init() : + * Initializes the compression parameters of cctxParams according to + * compression level. All other parameters are reset to their default values. + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_init(ZSTD_CCtx_params* cctxParams, int compressionLevel); + +/*! ZSTD_CCtxParams_init_advanced() : + * Initializes the compression and frame parameters of cctxParams according to + * params. All other parameters are reset to their default values. + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_init_advanced(ZSTD_CCtx_params* cctxParams, ZSTD_parameters params); + +/*! ZSTD_CCtxParams_setParameter() : Requires v1.4.0+ + * Similar to ZSTD_CCtx_setParameter. + * Set one compression parameter, selected by enum ZSTD_cParameter. + * Parameters must be applied to a ZSTD_CCtx using + * ZSTD_CCtx_setParametersUsingCCtxParams(). + * @result : a code representing success or failure (which can be tested with + * ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_setParameter(ZSTD_CCtx_params* params, ZSTD_cParameter param, int value); + +/*! ZSTD_CCtxParams_getParameter() : + * Similar to ZSTD_CCtx_getParameter. + * Get the requested value of one compression parameter, selected by enum ZSTD_cParameter. + * @result : 0, or an error code (which can be tested with ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtxParams_getParameter(const ZSTD_CCtx_params* params, ZSTD_cParameter param, int* value); + +/*! ZSTD_CCtx_setParametersUsingCCtxParams() : + * Apply a set of ZSTD_CCtx_params to the compression context. + * This can be done even after compression is started, + * if nbWorkers==0, this will have no impact until a new compression is started. + * if nbWorkers>=1, new parameters will be picked up at next job, + * with a few restrictions (windowLog, pledgedSrcSize, nbWorkers, jobSize, and overlapLog are not updated). + */ +ZSTDLIB_STATIC_API size_t ZSTD_CCtx_setParametersUsingCCtxParams( + ZSTD_CCtx* cctx, const ZSTD_CCtx_params* params); + +/*! ZSTD_compressStream2_simpleArgs() : + * Same as ZSTD_compressStream2(), + * but using only integral types as arguments. + * This variant might be helpful for binders from dynamic languages + * which have troubles handling structures containing memory pointers. + */ +ZSTDLIB_STATIC_API size_t ZSTD_compressStream2_simpleArgs ( + ZSTD_CCtx* cctx, + void* dst, size_t dstCapacity, size_t* dstPos, + const void* src, size_t srcSize, size_t* srcPos, + ZSTD_EndDirective endOp); + + +/*************************************** +* Advanced decompression functions +***************************************/ + +/*! ZSTD_isFrame() : + * Tells if the content of `buffer` starts with a valid Frame Identifier. + * Note : Frame Identifier is 4 bytes. If `size < 4`, @return will always be 0. + * Note 2 : Legacy Frame Identifiers are considered valid only if Legacy Support is enabled. + * Note 3 : Skippable Frame Identifiers are considered valid. */ +ZSTDLIB_STATIC_API unsigned ZSTD_isFrame(const void* buffer, size_t size); + +/*! ZSTD_createDDict_byReference() : + * Create a digested dictionary, ready to start decompression operation without startup delay. + * Dictionary content is referenced, and therefore stays in dictBuffer. + * It is important that dictBuffer outlives DDict, + * it must remain read accessible throughout the lifetime of DDict */ +ZSTDLIB_STATIC_API ZSTD_DDict* ZSTD_createDDict_byReference(const void* dictBuffer, size_t dictSize); + +/*! ZSTD_DCtx_loadDictionary_byReference() : + * Same as ZSTD_DCtx_loadDictionary(), + * but references `dict` content instead of copying it into `dctx`. + * This saves memory if `dict` remains around., + * However, it's imperative that `dict` remains accessible (and unmodified) while being used, so it must outlive decompression. */ +ZSTDLIB_STATIC_API size_t ZSTD_DCtx_loadDictionary_byReference(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); + +/*! ZSTD_DCtx_loadDictionary_advanced() : + * Same as ZSTD_DCtx_loadDictionary(), + * but gives direct control over + * how to load the dictionary (by copy ? by reference ?) + * and how to interpret it (automatic ? force raw mode ? full mode only ?). */ +ZSTDLIB_STATIC_API size_t ZSTD_DCtx_loadDictionary_advanced(ZSTD_DCtx* dctx, const void* dict, size_t dictSize, ZSTD_dictLoadMethod_e dictLoadMethod, ZSTD_dictContentType_e dictContentType); + +/*! ZSTD_DCtx_refPrefix_advanced() : + * Same as ZSTD_DCtx_refPrefix(), but gives finer control over + * how to interpret prefix content (automatic ? force raw mode (default) ? full mode only ?) */ +ZSTDLIB_STATIC_API size_t ZSTD_DCtx_refPrefix_advanced(ZSTD_DCtx* dctx, const void* prefix, size_t prefixSize, ZSTD_dictContentType_e dictContentType); + +/*! ZSTD_DCtx_setMaxWindowSize() : + * Refuses allocating internal buffers for frames requiring a window size larger than provided limit. + * This protects a decoder context from reserving too much memory for itself (potential attack scenario). + * This parameter is only useful in streaming mode, since no internal buffer is allocated in single-pass mode. + * By default, a decompression context accepts all window sizes <= (1 << ZSTD_WINDOWLOG_LIMIT_DEFAULT) + * @return : 0, or an error code (which can be tested using ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_DCtx_setMaxWindowSize(ZSTD_DCtx* dctx, size_t maxWindowSize); + +/*! ZSTD_DCtx_getParameter() : + * Get the requested decompression parameter value, selected by enum ZSTD_dParameter, + * and store it into int* value. + * @return : 0, or an error code (which can be tested with ZSTD_isError()). + */ +ZSTDLIB_STATIC_API size_t ZSTD_DCtx_getParameter(ZSTD_DCtx* dctx, ZSTD_dParameter param, int* value); + +/* ZSTD_d_format + * experimental parameter, + * allowing selection between ZSTD_format_e input compression formats + */ +#define ZSTD_d_format ZSTD_d_experimentalParam1 +/* ZSTD_d_stableOutBuffer + * Experimental parameter. + * Default is 0 == disabled. Set to 1 to enable. + * + * Tells the decompressor that the ZSTD_outBuffer will ALWAYS be the same + * between calls, except for the modifications that zstd makes to pos (the + * caller must not modify pos). This is checked by the decompressor, and + * decompression will fail if it ever changes. Therefore the ZSTD_outBuffer + * MUST be large enough to fit the entire decompressed frame. This will be + * checked when the frame content size is known. The data in the ZSTD_outBuffer + * in the range [dst, dst + pos) MUST not be modified during decompression + * or you will get data corruption. + * + * When this flag is enabled zstd won't allocate an output buffer, because + * it can write directly to the ZSTD_outBuffer, but it will still allocate + * an input buffer large enough to fit any compressed block. This will also + * avoid the memcpy() from the internal output buffer to the ZSTD_outBuffer. + * If you need to avoid the input buffer allocation use the buffer-less + * streaming API. + * + * NOTE: So long as the ZSTD_outBuffer always points to valid memory, using + * this flag is ALWAYS memory safe, and will never access out-of-bounds + * memory. However, decompression WILL fail if you violate the preconditions. + * + * WARNING: The data in the ZSTD_outBuffer in the range [dst, dst + pos) MUST + * not be modified during decompression or you will get data corruption. This + * is because zstd needs to reference data in the ZSTD_outBuffer to regenerate + * matches. Normally zstd maintains its own buffer for this purpose, but passing + * this flag tells zstd to use the user provided buffer. + */ +#define ZSTD_d_stableOutBuffer ZSTD_d_experimentalParam2 + +/* ZSTD_d_forceIgnoreChecksum + * Experimental parameter. + * Default is 0 == disabled. Set to 1 to enable + * + * Tells the decompressor to skip checksum validation during decompression, regardless + * of whether checksumming was specified during compression. This offers some + * slight performance benefits, and may be useful for debugging. + * Param has values of type ZSTD_forceIgnoreChecksum_e + */ +#define ZSTD_d_forceIgnoreChecksum ZSTD_d_experimentalParam3 + +/* ZSTD_d_refMultipleDDicts + * Experimental parameter. + * Default is 0 == disabled. Set to 1 to enable + * + * If enabled and dctx is allocated on the heap, then additional memory will be allocated + * to store references to multiple ZSTD_DDict. That is, multiple calls of ZSTD_refDDict() + * using a given ZSTD_DCtx, rather than overwriting the previous DDict reference, will instead + * store all references. At decompression time, the appropriate dictID is selected + * from the set of DDicts based on the dictID in the frame. + * + * Usage is simply calling ZSTD_refDDict() on multiple dict buffers. + * + * Param has values of byte ZSTD_refMultipleDDicts_e + * + * WARNING: Enabling this parameter and calling ZSTD_DCtx_refDDict(), will trigger memory + * allocation for the hash table. ZSTD_freeDCtx() also frees this memory. + * Memory is allocated as per ZSTD_DCtx::customMem. + * + * Although this function allocates memory for the table, the user is still responsible for + * memory management of the underlying ZSTD_DDict* themselves. + */ +#define ZSTD_d_refMultipleDDicts ZSTD_d_experimentalParam4 + +/* ZSTD_d_disableHuffmanAssembly + * Set to 1 to disable the Huffman assembly implementation. + * The default value is 0, which allows zstd to use the Huffman assembly + * implementation if available. + * + * This parameter can be used to disable Huffman assembly at runtime. + * If you want to disable it at compile time you can define the macro + * ZSTD_DISABLE_ASM. + */ +#define ZSTD_d_disableHuffmanAssembly ZSTD_d_experimentalParam5 + +/* ZSTD_d_maxBlockSize + * Allowed values are between 1KB and ZSTD_BLOCKSIZE_MAX (128KB). + * The default is ZSTD_BLOCKSIZE_MAX, and setting to 0 will set to the default. + * + * Forces the decompressor to reject blocks whose content size is + * larger than the configured maxBlockSize. When maxBlockSize is + * larger than the windowSize, the windowSize is used instead. + * This saves memory on the decoder when you know all blocks are small. + * + * This option is typically used in conjunction with ZSTD_c_maxBlockSize. + * + * WARNING: This causes the decoder to reject otherwise valid frames + * that have block sizes larger than the configured maxBlockSize. + */ +#define ZSTD_d_maxBlockSize ZSTD_d_experimentalParam6 + + +/*! ZSTD_DCtx_setFormat() : + * This function is REDUNDANT. Prefer ZSTD_DCtx_setParameter(). + * Instruct the decoder context about what kind of data to decode next. + * This instruction is mandatory to decode data without a fully-formed header, + * such ZSTD_f_zstd1_magicless for example. + * @return : 0, or an error code (which can be tested using ZSTD_isError()). */ +ZSTD_DEPRECATED("use ZSTD_DCtx_setParameter() instead") +ZSTDLIB_STATIC_API +size_t ZSTD_DCtx_setFormat(ZSTD_DCtx* dctx, ZSTD_format_e format); + +/*! ZSTD_decompressStream_simpleArgs() : + * Same as ZSTD_decompressStream(), + * but using only integral types as arguments. + * This can be helpful for binders from dynamic languages + * which have troubles handling structures containing memory pointers. + */ +ZSTDLIB_STATIC_API size_t ZSTD_decompressStream_simpleArgs ( + ZSTD_DCtx* dctx, + void* dst, size_t dstCapacity, size_t* dstPos, + const void* src, size_t srcSize, size_t* srcPos); + + +/******************************************************************** +* Advanced streaming functions +* Warning : most of these functions are now redundant with the Advanced API. +* Once Advanced API reaches "stable" status, +* redundant functions will be deprecated, and then at some point removed. +********************************************************************/ + +/*===== Advanced Streaming compression functions =====*/ + +/*! ZSTD_initCStream_srcSize() : + * This function is DEPRECATED, and equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_refCDict(zcs, NULL); // clear the dictionary (if any) + * ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel); + * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); + * + * pledgedSrcSize must be correct. If it is not known at init time, use + * ZSTD_CONTENTSIZE_UNKNOWN. Note that, for compatibility with older programs, + * "0" also disables frame content size field. It may be enabled in the future. + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_initCStream_srcSize(ZSTD_CStream* zcs, + int compressionLevel, + unsigned long long pledgedSrcSize); + +/*! ZSTD_initCStream_usingDict() : + * This function is DEPRECATED, and is equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_setParameter(zcs, ZSTD_c_compressionLevel, compressionLevel); + * ZSTD_CCtx_loadDictionary(zcs, dict, dictSize); + * + * Creates of an internal CDict (incompatible with static CCtx), except if + * dict == NULL or dictSize < 8, in which case no dict is used. + * Note: dict is loaded with ZSTD_dct_auto (treated as a full zstd dictionary if + * it begins with ZSTD_MAGIC_DICTIONARY, else as raw content) and ZSTD_dlm_byCopy. + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_initCStream_usingDict(ZSTD_CStream* zcs, + const void* dict, size_t dictSize, + int compressionLevel); + +/*! ZSTD_initCStream_advanced() : + * This function is DEPRECATED, and is equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_setParams(zcs, params); + * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); + * ZSTD_CCtx_loadDictionary(zcs, dict, dictSize); + * + * dict is loaded with ZSTD_dct_auto and ZSTD_dlm_byCopy. + * pledgedSrcSize must be correct. + * If srcSize is not known at init time, use value ZSTD_CONTENTSIZE_UNKNOWN. + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_initCStream_advanced(ZSTD_CStream* zcs, + const void* dict, size_t dictSize, + ZSTD_parameters params, + unsigned long long pledgedSrcSize); + +/*! ZSTD_initCStream_usingCDict() : + * This function is DEPRECATED, and equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_refCDict(zcs, cdict); + * + * note : cdict will just be referenced, and must outlive compression session + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset and ZSTD_CCtx_refCDict, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_initCStream_usingCDict(ZSTD_CStream* zcs, const ZSTD_CDict* cdict); + +/*! ZSTD_initCStream_usingCDict_advanced() : + * This function is DEPRECATED, and is equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_setFParams(zcs, fParams); + * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); + * ZSTD_CCtx_refCDict(zcs, cdict); + * + * same as ZSTD_initCStream_usingCDict(), with control over frame parameters. + * pledgedSrcSize must be correct. If srcSize is not known at init time, use + * value ZSTD_CONTENTSIZE_UNKNOWN. + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset and ZSTD_CCtx_refCDict, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_initCStream_usingCDict_advanced(ZSTD_CStream* zcs, + const ZSTD_CDict* cdict, + ZSTD_frameParameters fParams, + unsigned long long pledgedSrcSize); + +/*! ZSTD_resetCStream() : + * This function is DEPRECATED, and is equivalent to: + * ZSTD_CCtx_reset(zcs, ZSTD_reset_session_only); + * ZSTD_CCtx_setPledgedSrcSize(zcs, pledgedSrcSize); + * Note: ZSTD_resetCStream() interprets pledgedSrcSize == 0 as ZSTD_CONTENTSIZE_UNKNOWN, but + * ZSTD_CCtx_setPledgedSrcSize() does not do the same, so ZSTD_CONTENTSIZE_UNKNOWN must be + * explicitly specified. + * + * start a new frame, using same parameters from previous frame. + * This is typically useful to skip dictionary loading stage, since it will reuse it in-place. + * Note that zcs must be init at least once before using ZSTD_resetCStream(). + * If pledgedSrcSize is not known at reset time, use macro ZSTD_CONTENTSIZE_UNKNOWN. + * If pledgedSrcSize > 0, its value must be correct, as it will be written in header, and controlled at the end. + * For the time being, pledgedSrcSize==0 is interpreted as "srcSize unknown" for compatibility with older programs, + * but it will change to mean "empty" in future version, so use macro ZSTD_CONTENTSIZE_UNKNOWN instead. + * @return : 0, or an error code (which can be tested using ZSTD_isError()) + * This prototype will generate compilation warnings. + */ +ZSTD_DEPRECATED("use ZSTD_CCtx_reset, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API +size_t ZSTD_resetCStream(ZSTD_CStream* zcs, unsigned long long pledgedSrcSize); + + +typedef struct { + unsigned long long ingested; /* nb input bytes read and buffered */ + unsigned long long consumed; /* nb input bytes actually compressed */ + unsigned long long produced; /* nb of compressed bytes generated and buffered */ + unsigned long long flushed; /* nb of compressed bytes flushed : not provided; can be tracked from caller side */ + unsigned currentJobID; /* MT only : latest started job nb */ + unsigned nbActiveWorkers; /* MT only : nb of workers actively compressing at probe time */ +} ZSTD_frameProgression; + +/* ZSTD_getFrameProgression() : + * tells how much data has been ingested (read from input) + * consumed (input actually compressed) and produced (output) for current frame. + * Note : (ingested - consumed) is amount of input data buffered internally, not yet compressed. + * Aggregates progression inside active worker threads. + */ +ZSTDLIB_STATIC_API ZSTD_frameProgression ZSTD_getFrameProgression(const ZSTD_CCtx* cctx); + +/*! ZSTD_toFlushNow() : + * Tell how many bytes are ready to be flushed immediately. + * Useful for multithreading scenarios (nbWorkers >= 1). + * Probe the oldest active job, defined as oldest job not yet entirely flushed, + * and check its output buffer. + * @return : amount of data stored in oldest job and ready to be flushed immediately. + * if @return == 0, it means either : + * + there is no active job (could be checked with ZSTD_frameProgression()), or + * + oldest job is still actively compressing data, + * but everything it has produced has also been flushed so far, + * therefore flush speed is limited by production speed of oldest job + * irrespective of the speed of concurrent (and newer) jobs. + */ +ZSTDLIB_STATIC_API size_t ZSTD_toFlushNow(ZSTD_CCtx* cctx); + + +/*===== Advanced Streaming decompression functions =====*/ + +/*! + * This function is deprecated, and is equivalent to: + * + * ZSTD_DCtx_reset(zds, ZSTD_reset_session_only); + * ZSTD_DCtx_loadDictionary(zds, dict, dictSize); + * + * note: no dictionary will be used if dict == NULL or dictSize < 8 + */ +ZSTD_DEPRECATED("use ZSTD_DCtx_reset + ZSTD_DCtx_loadDictionary, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API size_t ZSTD_initDStream_usingDict(ZSTD_DStream* zds, const void* dict, size_t dictSize); + +/*! + * This function is deprecated, and is equivalent to: + * + * ZSTD_DCtx_reset(zds, ZSTD_reset_session_only); + * ZSTD_DCtx_refDDict(zds, ddict); + * + * note : ddict is referenced, it must outlive decompression session + */ +ZSTD_DEPRECATED("use ZSTD_DCtx_reset + ZSTD_DCtx_refDDict, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API size_t ZSTD_initDStream_usingDDict(ZSTD_DStream* zds, const ZSTD_DDict* ddict); + +/*! + * This function is deprecated, and is equivalent to: + * + * ZSTD_DCtx_reset(zds, ZSTD_reset_session_only); + * + * reuse decompression parameters from previous init; saves dictionary loading + */ +ZSTD_DEPRECATED("use ZSTD_DCtx_reset, see zstd.h for detailed instructions") +ZSTDLIB_STATIC_API size_t ZSTD_resetDStream(ZSTD_DStream* zds); + + +/* ********************* BLOCK-LEVEL SEQUENCE PRODUCER API ********************* + * + * *** OVERVIEW *** + * The Block-Level Sequence Producer API allows users to provide their own custom + * sequence producer which libzstd invokes to process each block. The produced list + * of sequences (literals and matches) is then post-processed by libzstd to produce + * valid compressed blocks. + * + * This block-level offload API is a more granular complement of the existing + * frame-level offload API compressSequences() (introduced in v1.5.1). It offers + * an easier migration story for applications already integrated with libzstd: the + * user application continues to invoke the same compression functions + * ZSTD_compress2() or ZSTD_compressStream2() as usual, and transparently benefits + * from the specific advantages of the external sequence producer. For example, + * the sequence producer could be tuned to take advantage of known characteristics + * of the input, to offer better speed / ratio, or could leverage hardware + * acceleration not available within libzstd itself. + * + * See contrib/externalSequenceProducer for an example program employing the + * Block-Level Sequence Producer API. + * + * *** USAGE *** + * The user is responsible for implementing a function of type + * ZSTD_sequenceProducer_F. For each block, zstd will pass the following + * arguments to the user-provided function: + * + * - sequenceProducerState: a pointer to a user-managed state for the sequence + * producer. + * + * - outSeqs, outSeqsCapacity: an output buffer for the sequence producer. + * outSeqsCapacity is guaranteed >= ZSTD_sequenceBound(srcSize). The memory + * backing outSeqs is managed by the CCtx. + * + * - src, srcSize: an input buffer for the sequence producer to parse. + * srcSize is guaranteed to be <= ZSTD_BLOCKSIZE_MAX. + * + * - dict, dictSize: a history buffer, which may be empty, which the sequence + * producer may reference as it parses the src buffer. Currently, zstd will + * always pass dictSize == 0 into external sequence producers, but this will + * change in the future. + * + * - compressionLevel: a signed integer representing the zstd compression level + * set by the user for the current operation. The sequence producer may choose + * to use this information to change its compression strategy and speed/ratio + * tradeoff. Note: the compression level does not reflect zstd parameters set + * through the advanced API. + * + * - windowSize: a size_t representing the maximum allowed offset for external + * sequences. Note that sequence offsets are sometimes allowed to exceed the + * windowSize if a dictionary is present, see doc/zstd_compression_format.md + * for details. + * + * The user-provided function shall return a size_t representing the number of + * sequences written to outSeqs. This return value will be treated as an error + * code if it is greater than outSeqsCapacity. The return value must be non-zero + * if srcSize is non-zero. The ZSTD_SEQUENCE_PRODUCER_ERROR macro is provided + * for convenience, but any value greater than outSeqsCapacity will be treated as + * an error code. + * + * If the user-provided function does not return an error code, the sequences + * written to outSeqs must be a valid parse of the src buffer. Data corruption may + * occur if the parse is not valid. A parse is defined to be valid if the + * following conditions hold: + * - The sum of matchLengths and literalLengths must equal srcSize. + * - All sequences in the parse, except for the final sequence, must have + * matchLength >= ZSTD_MINMATCH_MIN. The final sequence must have + * matchLength >= ZSTD_MINMATCH_MIN or matchLength == 0. + * - All offsets must respect the windowSize parameter as specified in + * doc/zstd_compression_format.md. + * - If the final sequence has matchLength == 0, it must also have offset == 0. + * + * zstd will only validate these conditions (and fail compression if they do not + * hold) if the ZSTD_c_validateSequences cParam is enabled. Note that sequence + * validation has a performance cost. + * + * If the user-provided function returns an error, zstd will either fall back + * to an internal sequence producer or fail the compression operation. The user can + * choose between the two behaviors by setting the ZSTD_c_enableSeqProducerFallback + * cParam. Fallback compression will follow any other cParam settings, such as + * compression level, the same as in a normal compression operation. + * + * The user shall instruct zstd to use a particular ZSTD_sequenceProducer_F + * function by calling + * ZSTD_registerSequenceProducer(cctx, + * sequenceProducerState, + * sequenceProducer) + * This setting will persist until the next parameter reset of the CCtx. + * + * The sequenceProducerState must be initialized by the user before calling + * ZSTD_registerSequenceProducer(). The user is responsible for destroying the + * sequenceProducerState. + * + * *** LIMITATIONS *** + * This API is compatible with all zstd compression APIs which respect advanced parameters. + * However, there are three limitations: + * + * First, the ZSTD_c_enableLongDistanceMatching cParam is not currently supported. + * COMPRESSION WILL FAIL if it is enabled and the user tries to compress with a block-level + * external sequence producer. + * - Note that ZSTD_c_enableLongDistanceMatching is auto-enabled by default in some + * cases (see its documentation for details). Users must explicitly set + * ZSTD_c_enableLongDistanceMatching to ZSTD_ps_disable in such cases if an external + * sequence producer is registered. + * - As of this writing, ZSTD_c_enableLongDistanceMatching is disabled by default + * whenever ZSTD_c_windowLog < 128MB, but that's subject to change. Users should + * check the docs on ZSTD_c_enableLongDistanceMatching whenever the Block-Level Sequence + * Producer API is used in conjunction with advanced settings (like ZSTD_c_windowLog). + * + * Second, history buffers are not currently supported. Concretely, zstd will always pass + * dictSize == 0 to the external sequence producer (for now). This has two implications: + * - Dictionaries are not currently supported. Compression will *not* fail if the user + * references a dictionary, but the dictionary won't have any effect. + * - Stream history is not currently supported. All advanced compression APIs, including + * streaming APIs, work with external sequence producers, but each block is treated as + * an independent chunk without history from previous blocks. + * + * Third, multi-threading within a single compression is not currently supported. In other words, + * COMPRESSION WILL FAIL if ZSTD_c_nbWorkers > 0 and an external sequence producer is registered. + * Multi-threading across compressions is fine: simply create one CCtx per thread. + * + * Long-term, we plan to overcome all three limitations. There is no technical blocker to + * overcoming them. It is purely a question of engineering effort. + */ + +#define ZSTD_SEQUENCE_PRODUCER_ERROR ((size_t)(-1)) + +typedef size_t (*ZSTD_sequenceProducer_F) ( + void* sequenceProducerState, + ZSTD_Sequence* outSeqs, size_t outSeqsCapacity, + const void* src, size_t srcSize, + const void* dict, size_t dictSize, + int compressionLevel, + size_t windowSize +); + +/*! ZSTD_registerSequenceProducer() : + * Instruct zstd to use a block-level external sequence producer function. + * + * The sequenceProducerState must be initialized by the caller, and the caller is + * responsible for managing its lifetime. This parameter is sticky across + * compressions. It will remain set until the user explicitly resets compression + * parameters. + * + * Sequence producer registration is considered to be an "advanced parameter", + * part of the "advanced API". This means it will only have an effect on compression + * APIs which respect advanced parameters, such as compress2() and compressStream2(). + * Older compression APIs such as compressCCtx(), which predate the introduction of + * "advanced parameters", will ignore any external sequence producer setting. + * + * The sequence producer can be "cleared" by registering a NULL function pointer. This + * removes all limitations described above in the "LIMITATIONS" section of the API docs. + * + * The user is strongly encouraged to read the full API documentation (above) before + * calling this function. */ +ZSTDLIB_STATIC_API void +ZSTD_registerSequenceProducer( + ZSTD_CCtx* cctx, + void* sequenceProducerState, + ZSTD_sequenceProducer_F sequenceProducer +); + +/*! ZSTD_CCtxParams_registerSequenceProducer() : + * Same as ZSTD_registerSequenceProducer(), but operates on ZSTD_CCtx_params. + * This is used for accurate size estimation with ZSTD_estimateCCtxSize_usingCCtxParams(), + * which is needed when creating a ZSTD_CCtx with ZSTD_initStaticCCtx(). + * + * If you are using the external sequence producer API in a scenario where ZSTD_initStaticCCtx() + * is required, then this function is for you. Otherwise, you probably don't need it. + * + * See tests/zstreamtest.c for example usage. */ +ZSTDLIB_STATIC_API void +ZSTD_CCtxParams_registerSequenceProducer( + ZSTD_CCtx_params* params, + void* sequenceProducerState, + ZSTD_sequenceProducer_F sequenceProducer +); + + +/********************************************************************* +* Buffer-less and synchronous inner streaming functions (DEPRECATED) +* +* This API is deprecated, and will be removed in a future version. +* It allows streaming (de)compression with user allocated buffers. +* However, it is hard to use, and not as well tested as the rest of +* our API. +* +* Please use the normal streaming API instead: ZSTD_compressStream2, +* and ZSTD_decompressStream. +* If there is functionality that you need, but it doesn't provide, +* please open an issue on our GitHub. +********************************************************************* */ + +/** + Buffer-less streaming compression (synchronous mode) + + A ZSTD_CCtx object is required to track streaming operations. + Use ZSTD_createCCtx() / ZSTD_freeCCtx() to manage resource. + ZSTD_CCtx object can be reused multiple times within successive compression operations. + + Start by initializing a context. + Use ZSTD_compressBegin(), or ZSTD_compressBegin_usingDict() for dictionary compression. + + Then, consume your input using ZSTD_compressContinue(). + There are some important considerations to keep in mind when using this advanced function : + - ZSTD_compressContinue() has no internal buffer. It uses externally provided buffers only. + - Interface is synchronous : input is consumed entirely and produces 1+ compressed blocks. + - Caller must ensure there is enough space in `dst` to store compressed data under worst case scenario. + Worst case evaluation is provided by ZSTD_compressBound(). + ZSTD_compressContinue() doesn't guarantee recover after a failed compression. + - ZSTD_compressContinue() presumes prior input ***is still accessible and unmodified*** (up to maximum distance size, see WindowLog). + It remembers all previous contiguous blocks, plus one separated memory segment (which can itself consists of multiple contiguous blocks) + - ZSTD_compressContinue() detects that prior input has been overwritten when `src` buffer overlaps. + In which case, it will "discard" the relevant memory section from its history. + + Finish a frame with ZSTD_compressEnd(), which will write the last block(s) and optional checksum. + It's possible to use srcSize==0, in which case, it will write a final empty block to end the frame. + Without last block mark, frames are considered unfinished (hence corrupted) by compliant decoders. + + `ZSTD_CCtx` object can be reused (ZSTD_compressBegin()) to compress again. +*/ + +/*===== Buffer-less streaming compression functions =====*/ +ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressBegin(ZSTD_CCtx* cctx, int compressionLevel); +ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressBegin_usingDict(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, int compressionLevel); +ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressBegin_usingCDict(ZSTD_CCtx* cctx, const ZSTD_CDict* cdict); /**< note: fails if cdict==NULL */ + +ZSTD_DEPRECATED("This function will likely be removed in a future release. It is misleading and has very limited utility.") +ZSTDLIB_STATIC_API +size_t ZSTD_copyCCtx(ZSTD_CCtx* cctx, const ZSTD_CCtx* preparedCCtx, unsigned long long pledgedSrcSize); /**< note: if pledgedSrcSize is not known, use ZSTD_CONTENTSIZE_UNKNOWN */ + +ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressContinue(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); +ZSTD_DEPRECATED("The buffer-less API is deprecated in favor of the normal streaming API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressEnd(ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); + +/* The ZSTD_compressBegin_advanced() and ZSTD_compressBegin_usingCDict_advanced() are now DEPRECATED and will generate a compiler warning */ +ZSTD_DEPRECATED("use advanced API to access custom parameters") +ZSTDLIB_STATIC_API +size_t ZSTD_compressBegin_advanced(ZSTD_CCtx* cctx, const void* dict, size_t dictSize, ZSTD_parameters params, unsigned long long pledgedSrcSize); /**< pledgedSrcSize : If srcSize is not known at init time, use ZSTD_CONTENTSIZE_UNKNOWN */ +ZSTD_DEPRECATED("use advanced API to access custom parameters") +ZSTDLIB_STATIC_API +size_t ZSTD_compressBegin_usingCDict_advanced(ZSTD_CCtx* const cctx, const ZSTD_CDict* const cdict, ZSTD_frameParameters const fParams, unsigned long long const pledgedSrcSize); /* compression parameters are already set within cdict. pledgedSrcSize must be correct. If srcSize is not known, use macro ZSTD_CONTENTSIZE_UNKNOWN */ +/** + Buffer-less streaming decompression (synchronous mode) + + A ZSTD_DCtx object is required to track streaming operations. + Use ZSTD_createDCtx() / ZSTD_freeDCtx() to manage it. + A ZSTD_DCtx object can be reused multiple times. + + First typical operation is to retrieve frame parameters, using ZSTD_getFrameHeader(). + Frame header is extracted from the beginning of compressed frame, so providing only the frame's beginning is enough. + Data fragment must be large enough to ensure successful decoding. + `ZSTD_frameHeaderSize_max` bytes is guaranteed to always be large enough. + result : 0 : successful decoding, the `ZSTD_frameHeader` structure is correctly filled. + >0 : `srcSize` is too small, please provide at least result bytes on next attempt. + errorCode, which can be tested using ZSTD_isError(). + + It fills a ZSTD_FrameHeader structure with important information to correctly decode the frame, + such as the dictionary ID, content size, or maximum back-reference distance (`windowSize`). + Note that these values could be wrong, either because of data corruption, or because a 3rd party deliberately spoofs false information. + As a consequence, check that values remain within valid application range. + For example, do not allocate memory blindly, check that `windowSize` is within expectation. + Each application can set its own limits, depending on local restrictions. + For extended interoperability, it is recommended to support `windowSize` of at least 8 MB. + + ZSTD_decompressContinue() needs previous data blocks during decompression, up to `windowSize` bytes. + ZSTD_decompressContinue() is very sensitive to contiguity, + if 2 blocks don't follow each other, make sure that either the compressor breaks contiguity at the same place, + or that previous contiguous segment is large enough to properly handle maximum back-reference distance. + There are multiple ways to guarantee this condition. + + The most memory efficient way is to use a round buffer of sufficient size. + Sufficient size is determined by invoking ZSTD_decodingBufferSize_min(), + which can return an error code if required value is too large for current system (in 32-bits mode). + In a round buffer methodology, ZSTD_decompressContinue() decompresses each block next to previous one, + up to the moment there is not enough room left in the buffer to guarantee decoding another full block, + which maximum size is provided in `ZSTD_frameHeader` structure, field `blockSizeMax`. + At which point, decoding can resume from the beginning of the buffer. + Note that already decoded data stored in the buffer should be flushed before being overwritten. + + There are alternatives possible, for example using two or more buffers of size `windowSize` each, though they consume more memory. + + Finally, if you control the compression process, you can also ignore all buffer size rules, + as long as the encoder and decoder progress in "lock-step", + aka use exactly the same buffer sizes, break contiguity at the same place, etc. + + Once buffers are setup, start decompression, with ZSTD_decompressBegin(). + If decompression requires a dictionary, use ZSTD_decompressBegin_usingDict() or ZSTD_decompressBegin_usingDDict(). + + Then use ZSTD_nextSrcSizeToDecompress() and ZSTD_decompressContinue() alternatively. + ZSTD_nextSrcSizeToDecompress() tells how many bytes to provide as 'srcSize' to ZSTD_decompressContinue(). + ZSTD_decompressContinue() requires this _exact_ amount of bytes, or it will fail. + + result of ZSTD_decompressContinue() is the number of bytes regenerated within 'dst' (necessarily <= dstCapacity). + It can be zero : it just means ZSTD_decompressContinue() has decoded some metadata item. + It can also be an error code, which can be tested with ZSTD_isError(). + + A frame is fully decoded when ZSTD_nextSrcSizeToDecompress() returns zero. + Context can then be reset to start a new decompression. + + Note : it's possible to know if next input to present is a header or a block, using ZSTD_nextInputType(). + This information is not required to properly decode a frame. + + == Special case : skippable frames == + + Skippable frames allow integration of user-defined data into a flow of concatenated frames. + Skippable frames will be ignored (skipped) by decompressor. + The format of skippable frames is as follows : + a) Skippable frame ID - 4 Bytes, Little endian format, any value from 0x184D2A50 to 0x184D2A5F + b) Frame Size - 4 Bytes, Little endian format, unsigned 32-bits + c) Frame Content - any content (User Data) of length equal to Frame Size + For skippable frames ZSTD_getFrameHeader() returns zfhPtr->frameType==ZSTD_skippableFrame. + For skippable frames ZSTD_decompressContinue() always returns 0 : it only skips the content. +*/ + +/*===== Buffer-less streaming decompression functions =====*/ + +ZSTDLIB_STATIC_API size_t ZSTD_decodingBufferSize_min(unsigned long long windowSize, unsigned long long frameContentSize); /**< when frame content size is not known, pass in frameContentSize == ZSTD_CONTENTSIZE_UNKNOWN */ + +ZSTDLIB_STATIC_API size_t ZSTD_decompressBegin(ZSTD_DCtx* dctx); +ZSTDLIB_STATIC_API size_t ZSTD_decompressBegin_usingDict(ZSTD_DCtx* dctx, const void* dict, size_t dictSize); +ZSTDLIB_STATIC_API size_t ZSTD_decompressBegin_usingDDict(ZSTD_DCtx* dctx, const ZSTD_DDict* ddict); + +ZSTDLIB_STATIC_API size_t ZSTD_nextSrcSizeToDecompress(ZSTD_DCtx* dctx); +ZSTDLIB_STATIC_API size_t ZSTD_decompressContinue(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); + +/* misc */ +ZSTD_DEPRECATED("This function will likely be removed in the next minor release. It is misleading and has very limited utility.") +ZSTDLIB_STATIC_API void ZSTD_copyDCtx(ZSTD_DCtx* dctx, const ZSTD_DCtx* preparedDCtx); +typedef enum { ZSTDnit_frameHeader, ZSTDnit_blockHeader, ZSTDnit_block, ZSTDnit_lastBlock, ZSTDnit_checksum, ZSTDnit_skippableFrame } ZSTD_nextInputType_e; +ZSTDLIB_STATIC_API ZSTD_nextInputType_e ZSTD_nextInputType(ZSTD_DCtx* dctx); + + + + +/* ========================================= */ +/** Block level API (DEPRECATED) */ +/* ========================================= */ + +/*! + + This API is deprecated in favor of the regular compression API. + You can get the frame header down to 2 bytes by setting: + - ZSTD_c_format = ZSTD_f_zstd1_magicless + - ZSTD_c_contentSizeFlag = 0 + - ZSTD_c_checksumFlag = 0 + - ZSTD_c_dictIDFlag = 0 + + This API is not as well tested as our normal API, so we recommend not using it. + We will be removing it in a future version. If the normal API doesn't provide + the functionality you need, please open a GitHub issue. + + Block functions produce and decode raw zstd blocks, without frame metadata. + Frame metadata cost is typically ~12 bytes, which can be non-negligible for very small blocks (< 100 bytes). + But users will have to take in charge needed metadata to regenerate data, such as compressed and content sizes. + + A few rules to respect : + - Compressing and decompressing require a context structure + + Use ZSTD_createCCtx() and ZSTD_createDCtx() + - It is necessary to init context before starting + + compression : any ZSTD_compressBegin*() variant, including with dictionary + + decompression : any ZSTD_decompressBegin*() variant, including with dictionary + - Block size is limited, it must be <= ZSTD_getBlockSize() <= ZSTD_BLOCKSIZE_MAX == 128 KB + + If input is larger than a block size, it's necessary to split input data into multiple blocks + + For inputs larger than a single block, consider using regular ZSTD_compress() instead. + Frame metadata is not that costly, and quickly becomes negligible as source size grows larger than a block. + - When a block is considered not compressible enough, ZSTD_compressBlock() result will be 0 (zero) ! + ===> In which case, nothing is produced into `dst` ! + + User __must__ test for such outcome and deal directly with uncompressed data + + A block cannot be declared incompressible if ZSTD_compressBlock() return value was != 0. + Doing so would mess up with statistics history, leading to potential data corruption. + + ZSTD_decompressBlock() _doesn't accept uncompressed data as input_ !! + + In case of multiple successive blocks, should some of them be uncompressed, + decoder must be informed of their existence in order to follow proper history. + Use ZSTD_insertBlock() for such a case. +*/ + +/*===== Raw zstd block functions =====*/ +ZSTD_DEPRECATED("The block API is deprecated in favor of the normal compression API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_getBlockSize (const ZSTD_CCtx* cctx); +ZSTD_DEPRECATED("The block API is deprecated in favor of the normal compression API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_compressBlock (ZSTD_CCtx* cctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); +ZSTD_DEPRECATED("The block API is deprecated in favor of the normal compression API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_decompressBlock(ZSTD_DCtx* dctx, void* dst, size_t dstCapacity, const void* src, size_t srcSize); +ZSTD_DEPRECATED("The block API is deprecated in favor of the normal compression API. See docs.") +ZSTDLIB_STATIC_API size_t ZSTD_insertBlock (ZSTD_DCtx* dctx, const void* blockStart, size_t blockSize); /**< insert uncompressed block into `dctx` history. Useful for multi-blocks decompression. */ + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_H_ZSTD_STATIC_LINKING_ONLY */ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd_errors.h b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd_errors.h new file mode 100644 index 0000000000000000000000000000000000000000..8ebc95cbb2ab882027a3e6cc92cdd5abc1a0dee4 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/include/zstd_errors.h @@ -0,0 +1,107 @@ +/* + * Copyright (c) Meta Platforms, Inc. and affiliates. + * All rights reserved. + * + * This source code is licensed under both the BSD-style license (found in the + * LICENSE file in the root directory of this source tree) and the GPLv2 (found + * in the COPYING file in the root directory of this source tree). + * You may select, at your option, one of the above-listed licenses. + */ + +#ifndef ZSTD_ERRORS_H_398273423 +#define ZSTD_ERRORS_H_398273423 + +#if defined (__cplusplus) +extern "C" { +#endif + +/* ===== ZSTDERRORLIB_API : control library symbols visibility ===== */ +#ifndef ZSTDERRORLIB_VISIBLE + /* Backwards compatibility with old macro name */ +# ifdef ZSTDERRORLIB_VISIBILITY +# define ZSTDERRORLIB_VISIBLE ZSTDERRORLIB_VISIBILITY +# elif defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZSTDERRORLIB_VISIBLE __attribute__ ((visibility ("default"))) +# else +# define ZSTDERRORLIB_VISIBLE +# endif +#endif + +#ifndef ZSTDERRORLIB_HIDDEN +# if defined(__GNUC__) && (__GNUC__ >= 4) && !defined(__MINGW32__) +# define ZSTDERRORLIB_HIDDEN __attribute__ ((visibility ("hidden"))) +# else +# define ZSTDERRORLIB_HIDDEN +# endif +#endif + +#if defined(ZSTD_DLL_EXPORT) && (ZSTD_DLL_EXPORT==1) +# define ZSTDERRORLIB_API __declspec(dllexport) ZSTDERRORLIB_VISIBLE +#elif defined(ZSTD_DLL_IMPORT) && (ZSTD_DLL_IMPORT==1) +# define ZSTDERRORLIB_API __declspec(dllimport) ZSTDERRORLIB_VISIBLE /* It isn't required but allows to generate better code, saving a function pointer load from the IAT and an indirect jump.*/ +#else +# define ZSTDERRORLIB_API ZSTDERRORLIB_VISIBLE +#endif + +/*-********************************************* + * Error codes list + *-********************************************* + * Error codes _values_ are pinned down since v1.3.1 only. + * Therefore, don't rely on values if you may link to any version < v1.3.1. + * + * Only values < 100 are considered stable. + * + * note 1 : this API shall be used with static linking only. + * dynamic linking is not yet officially supported. + * note 2 : Prefer relying on the enum than on its value whenever possible + * This is the only supported way to use the error list < v1.3.1 + * note 3 : ZSTD_isError() is always correct, whatever the library version. + **********************************************/ +typedef enum { + ZSTD_error_no_error = 0, + ZSTD_error_GENERIC = 1, + ZSTD_error_prefix_unknown = 10, + ZSTD_error_version_unsupported = 12, + ZSTD_error_frameParameter_unsupported = 14, + ZSTD_error_frameParameter_windowTooLarge = 16, + ZSTD_error_corruption_detected = 20, + ZSTD_error_checksum_wrong = 22, + ZSTD_error_literals_headerWrong = 24, + ZSTD_error_dictionary_corrupted = 30, + ZSTD_error_dictionary_wrong = 32, + ZSTD_error_dictionaryCreation_failed = 34, + ZSTD_error_parameter_unsupported = 40, + ZSTD_error_parameter_combination_unsupported = 41, + ZSTD_error_parameter_outOfBound = 42, + ZSTD_error_tableLog_tooLarge = 44, + ZSTD_error_maxSymbolValue_tooLarge = 46, + ZSTD_error_maxSymbolValue_tooSmall = 48, + ZSTD_error_cannotProduce_uncompressedBlock = 49, + ZSTD_error_stabilityCondition_notRespected = 50, + ZSTD_error_stage_wrong = 60, + ZSTD_error_init_missing = 62, + ZSTD_error_memory_allocation = 64, + ZSTD_error_workSpace_tooSmall= 66, + ZSTD_error_dstSize_tooSmall = 70, + ZSTD_error_srcSize_wrong = 72, + ZSTD_error_dstBuffer_null = 74, + ZSTD_error_noForwardProgress_destFull = 80, + ZSTD_error_noForwardProgress_inputEmpty = 82, + /* following error codes are __NOT STABLE__, they can be removed or changed in future versions */ + ZSTD_error_frameIndex_tooLarge = 100, + ZSTD_error_seekableIO = 102, + ZSTD_error_dstBuffer_wrong = 104, + ZSTD_error_srcBuffer_wrong = 105, + ZSTD_error_sequenceProducer_failed = 106, + ZSTD_error_externalSequences_invalid = 107, + ZSTD_error_maxCode = 120 /* never EVER use this value directly, it can change in future versions! Use ZSTD_isError() instead */ +} ZSTD_ErrorCode; + +ZSTDERRORLIB_API const char* ZSTD_getErrorString(ZSTD_ErrorCode code); /**< Same as ZSTD_getErrorName, but using a `ZSTD_ErrorCode` enum argument */ + + +#if defined (__cplusplus) +} +#endif + +#endif /* ZSTD_ERRORS_H_398273423 */ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfig.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfig.cmake new file mode 100644 index 0000000000000000000000000000000000000000..cd4de6f3923cc29746c707e6c032f2169554fa04 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfig.cmake @@ -0,0 +1,34 @@ + +####### Expanded from @PACKAGE_INIT@ by configure_package_config_file() ####### +####### Any changes to this file will be overwritten by the next CMake run #### +####### The input file was zstdConfig.cmake.in ######## + +get_filename_component(PACKAGE_PREFIX_DIR "${CMAKE_CURRENT_LIST_DIR}/../../../" ABSOLUTE) + +macro(set_and_check _var _file) + set(${_var} "${_file}") + if(NOT EXISTS "${_file}") + message(FATAL_ERROR "File or directory ${_file} referenced by variable ${_var} does not exist !") + endif() +endmacro() + +macro(check_required_components _NAME) + foreach(comp ${${_NAME}_FIND_COMPONENTS}) + if(NOT ${_NAME}_${comp}_FOUND) + if(${_NAME}_FIND_REQUIRED_${comp}) + set(${_NAME}_FOUND FALSE) + endif() + endif() + endforeach() +endmacro() + +#################################################################################### + +include(CMakeFindDependencyMacro) +if(ON AND "") + find_dependency(Threads) +endif() + +include("${CMAKE_CURRENT_LIST_DIR}/zstdTargets.cmake") + +check_required_components("zstd") diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfigVersion.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfigVersion.cmake new file mode 100644 index 0000000000000000000000000000000000000000..91e09f5c7a9849c39e25fd06f3ea7e7b80b935f7 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdConfigVersion.cmake @@ -0,0 +1,65 @@ +# This is a basic version file for the Config-mode of find_package(). +# It is used by write_basic_package_version_file() as input file for configure_file() +# to create a version-file which can be installed along a config.cmake file. +# +# The created file sets PACKAGE_VERSION_EXACT if the current version string and +# the requested version string are exactly the same and it sets +# PACKAGE_VERSION_COMPATIBLE if the current version is >= requested version, +# but only if the requested major version is the same as the current one. +# The variable CVF_VERSION must be set before calling configure_file(). + + +set(PACKAGE_VERSION "1.5.7") + +if(PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION) + set(PACKAGE_VERSION_COMPATIBLE FALSE) +else() + + if("1.5.7" MATCHES "^([0-9]+)\\.") + set(CVF_VERSION_MAJOR "${CMAKE_MATCH_1}") + if(NOT CVF_VERSION_MAJOR VERSION_EQUAL 0) + string(REGEX REPLACE "^0+" "" CVF_VERSION_MAJOR "${CVF_VERSION_MAJOR}") + endif() + else() + set(CVF_VERSION_MAJOR "1.5.7") + endif() + + if(PACKAGE_FIND_VERSION_RANGE) + # both endpoints of the range must have the expected major version + math (EXPR CVF_VERSION_MAJOR_NEXT "${CVF_VERSION_MAJOR} + 1") + if (NOT PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + OR ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX_MAJOR STREQUAL CVF_VERSION_MAJOR) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND NOT PACKAGE_FIND_VERSION_MAX VERSION_LESS_EQUAL CVF_VERSION_MAJOR_NEXT))) + set(PACKAGE_VERSION_COMPATIBLE FALSE) + elseif(PACKAGE_FIND_VERSION_MIN_MAJOR STREQUAL CVF_VERSION_MAJOR + AND ((PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "INCLUDE" AND PACKAGE_VERSION VERSION_LESS_EQUAL PACKAGE_FIND_VERSION_MAX) + OR (PACKAGE_FIND_VERSION_RANGE_MAX STREQUAL "EXCLUDE" AND PACKAGE_VERSION VERSION_LESS PACKAGE_FIND_VERSION_MAX))) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + else() + if(PACKAGE_FIND_VERSION_MAJOR STREQUAL CVF_VERSION_MAJOR) + set(PACKAGE_VERSION_COMPATIBLE TRUE) + else() + set(PACKAGE_VERSION_COMPATIBLE FALSE) + endif() + + if(PACKAGE_FIND_VERSION STREQUAL PACKAGE_VERSION) + set(PACKAGE_VERSION_EXACT TRUE) + endif() + endif() +endif() + + +# if the installed or the using project don't have CMAKE_SIZEOF_VOID_P set, ignore it: +if("${CMAKE_SIZEOF_VOID_P}" STREQUAL "" OR "8" STREQUAL "") + return() +endif() + +# check that the installed version has the same 32/64bit-ness as the one which is currently searching: +if(NOT CMAKE_SIZEOF_VOID_P STREQUAL "8") + math(EXPR installedBits "8 * 8") + set(PACKAGE_VERSION "${PACKAGE_VERSION} (${installedBits}bit)") + set(PACKAGE_VERSION_UNSUITABLE TRUE) +endif() diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets-release.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets-release.cmake new file mode 100644 index 0000000000000000000000000000000000000000..da824f258dab443e5db40bbd90331051868752dc --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets-release.cmake @@ -0,0 +1,19 @@ +#---------------------------------------------------------------- +# Generated CMake target import file for configuration "Release". +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Import target "zstd::libzstd_shared" for configuration "Release" +set_property(TARGET zstd::libzstd_shared APPEND PROPERTY IMPORTED_CONFIGURATIONS RELEASE) +set_target_properties(zstd::libzstd_shared PROPERTIES + IMPORTED_IMPLIB_RELEASE "${_IMPORT_PREFIX}/lib/zstd.lib" + IMPORTED_LOCATION_RELEASE "${_IMPORT_PREFIX}/bin/zstd.dll" + ) + +list(APPEND _cmake_import_check_targets zstd::libzstd_shared ) +list(APPEND _cmake_import_check_files_for_zstd::libzstd_shared "${_IMPORT_PREFIX}/lib/zstd.lib" "${_IMPORT_PREFIX}/bin/zstd.dll" ) + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets.cmake b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets.cmake new file mode 100644 index 0000000000000000000000000000000000000000..7a00a79c3342619aafea7bb3764936f49fea0bac --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/cmake/zstd/zstdTargets.cmake @@ -0,0 +1,114 @@ +# Generated by CMake + +if("${CMAKE_MAJOR_VERSION}.${CMAKE_MINOR_VERSION}" LESS 2.8) + message(FATAL_ERROR "CMake >= 3.0.0 required") +endif() +if(CMAKE_VERSION VERSION_LESS "3.0.0") + message(FATAL_ERROR "CMake >= 3.0.0 required") +endif() +cmake_policy(PUSH) +cmake_policy(VERSION 3.0.0...4.0) +#---------------------------------------------------------------- +# Generated CMake target import file. +#---------------------------------------------------------------- + +# Commands may need to know the format version. +set(CMAKE_IMPORT_FILE_VERSION 1) + +# Protect against multiple inclusion, which would fail when already imported targets are added once more. +set(_cmake_targets_defined "") +set(_cmake_targets_not_defined "") +set(_cmake_expected_targets "") +foreach(_cmake_expected_target IN ITEMS zstd::libzstd_shared zstd::libzstd) + list(APPEND _cmake_expected_targets "${_cmake_expected_target}") + if(TARGET "${_cmake_expected_target}") + list(APPEND _cmake_targets_defined "${_cmake_expected_target}") + else() + list(APPEND _cmake_targets_not_defined "${_cmake_expected_target}") + endif() +endforeach() +unset(_cmake_expected_target) +if(_cmake_targets_defined STREQUAL _cmake_expected_targets) + unset(_cmake_targets_defined) + unset(_cmake_targets_not_defined) + unset(_cmake_expected_targets) + unset(CMAKE_IMPORT_FILE_VERSION) + cmake_policy(POP) + return() +endif() +if(NOT _cmake_targets_defined STREQUAL "") + string(REPLACE ";" ", " _cmake_targets_defined_text "${_cmake_targets_defined}") + string(REPLACE ";" ", " _cmake_targets_not_defined_text "${_cmake_targets_not_defined}") + message(FATAL_ERROR "Some (but not all) targets in this export set were already defined.\nTargets Defined: ${_cmake_targets_defined_text}\nTargets not yet defined: ${_cmake_targets_not_defined_text}\n") +endif() +unset(_cmake_targets_defined) +unset(_cmake_targets_not_defined) +unset(_cmake_expected_targets) + + +# Compute the installation prefix relative to this file. +get_filename_component(_IMPORT_PREFIX "${CMAKE_CURRENT_LIST_FILE}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +get_filename_component(_IMPORT_PREFIX "${_IMPORT_PREFIX}" PATH) +if(_IMPORT_PREFIX STREQUAL "/") + set(_IMPORT_PREFIX "") +endif() + +# Create imported target zstd::libzstd_shared +add_library(zstd::libzstd_shared SHARED IMPORTED) + +set_target_properties(zstd::libzstd_shared PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" +) + +# Create imported target zstd::libzstd +add_library(zstd::libzstd INTERFACE IMPORTED) + +set_target_properties(zstd::libzstd PROPERTIES + INTERFACE_INCLUDE_DIRECTORIES "${_IMPORT_PREFIX}/include" + INTERFACE_LINK_LIBRARIES "zstd::libzstd_shared" +) + +# Load information for each installed configuration. +file(GLOB _cmake_config_files "${CMAKE_CURRENT_LIST_DIR}/zstdTargets-*.cmake") +foreach(_cmake_config_file IN LISTS _cmake_config_files) + include("${_cmake_config_file}") +endforeach() +unset(_cmake_config_file) +unset(_cmake_config_files) + +# Cleanup temporary variables. +set(_IMPORT_PREFIX) + +# Loop over all imported files and verify that they actually exist +foreach(_cmake_target IN LISTS _cmake_import_check_targets) + if(CMAKE_VERSION VERSION_LESS "3.28" + OR NOT DEFINED _cmake_import_check_xcframework_for_${_cmake_target} + OR NOT IS_DIRECTORY "${_cmake_import_check_xcframework_for_${_cmake_target}}") + foreach(_cmake_file IN LISTS "_cmake_import_check_files_for_${_cmake_target}") + if(NOT EXISTS "${_cmake_file}") + message(FATAL_ERROR "The imported target \"${_cmake_target}\" references the file + \"${_cmake_file}\" +but this file does not exist. Possible reasons include: +* The file was deleted, renamed, or moved to another location. +* An install or uninstall procedure did not complete successfully. +* The installation package was faulty and contained + \"${CMAKE_CURRENT_LIST_FILE}\" +but not all the files it references. +") + endif() + endforeach() + endif() + unset(_cmake_file) + unset("_cmake_import_check_files_for_${_cmake_target}") +endforeach() +unset(_cmake_target) +unset(_cmake_import_check_targets) + +# This file does not depend on other imported targets which have +# been exported from the same project but in a separate export set. + +# Commands beyond this point should not need to know the version. +set(CMAKE_IMPORT_FILE_VERSION) +cmake_policy(POP) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/libzstd.lib b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/libzstd.lib new file mode 100644 index 0000000000000000000000000000000000000000..9652aa16f233c24b41ff2265f012d689af00bb48 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/libzstd.lib differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/pkgconfig/libzstd.pc b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/pkgconfig/libzstd.pc new file mode 100644 index 0000000000000000000000000000000000000000..05a0c50964c44b1e25d38b9e9a24241d7dc2dbe8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/pkgconfig/libzstd.pc @@ -0,0 +1,16 @@ +# ZSTD - standard compression algorithm +# Copyright (c) Meta Platforms, Inc. and affiliates. +# BSD 2-Clause License (https://opensource.org/licenses/bsd-license.php) + +prefix=D:/bld/bld/rattler-build_zstd_1764777142/h_env/Library +exec_prefix=${prefix} +includedir=${prefix}/include +libdir=${exec_prefix}/lib + +Name: zstd +Description: fast lossless compression algorithm library +URL: https://facebook.github.io/zstd/ +Version: 1.5.7 +Libs: -L${libdir} -lzstd +Libs.private: +Cflags: -I${includedir} diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/zstd.lib b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/zstd.lib new file mode 100644 index 0000000000000000000000000000000000000000..9652aa16f233c24b41ff2265f012d689af00bb48 Binary files /dev/null and b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/Library/lib/zstd.lib differ diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/etc/conda/test-files/zstd/1/cf_test/CMakeLists.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/etc/conda/test-files/zstd/1/cf_test/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..84d8d3448e55453fcb573e0309019a29ad48d5f8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/etc/conda/test-files/zstd/1/cf_test/CMakeLists.txt @@ -0,0 +1,3 @@ +project(cf_dummy LANGUAGES C) +cmake_minimum_required(VERSION 3.12) +find_package(zstd REQUIRED) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/about.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/about.json new file mode 100644 index 0000000000000000000000000000000000000000..fb3b29e15eee93f4d1197a1393a74b0315e4c70e --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/about.json @@ -0,0 +1,16 @@ +{ + "channels": [ + "https://conda.anaconda.org/conda-forge/" + ], + "description": "Zstandard is a real-time compression algorithm, providing high compression\nratios. It offers a very wide range of compression / speed trade-off, while\nbeing backed by a very fast decoder. It also offers a special mode for\nsmall data, called dictionary compression, and can create dictionaries from\nany sample set. Zstandard library is provided as open source software using\na BSD license.", + "dev_url": "https://github.com/facebook/zstd", + "doc_url": "https://facebook.github.io/zstd/zstd_manual.html", + "extra": { + "flow_run_id": "azure_20251203.5.1", + "remote_url": "https://github.com/conda-forge/zstd-feedstock", + "sha": "1b0cb8a51701b5e80754b865d53aec3e75f89e5a" + }, + "home": "http://www.zstd.net/", + "license": "BSD-3-Clause", + "summary": "Zstandard - Fast real-time compression algorithm" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/hash_input.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/hash_input.json new file mode 100644 index 0000000000000000000000000000000000000000..39aea990cf09c454d7d5b487871b3ac05f385b74 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/hash_input.json @@ -0,0 +1 @@ +{"build_platform": "win-64", "c_compiler": "vs2022", "c_stdlib": "vs", "channel_sources": "conda-forge", "channel_targets": "conda-forge main", "cxx_compiler": "vs2022", "target_platform": "win-64", "zlib": "1"} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/index.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/index.json new file mode 100644 index 0000000000000000000000000000000000000000..0ce24272268de1f3f12f4557b2cdd7a6e7fe2772 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/index.json @@ -0,0 +1,17 @@ +{ + "arch": "x86_64", + "build": "h534d264_6", + "build_number": 6, + "depends": [ + "vc >=14.3,<15", + "vc14_runtime >=14.44.35208", + "ucrt >=10.0.20348.0", + "libzlib >=1.3.1,<2.0a0" + ], + "license": "BSD-3-Clause", + "name": "zstd", + "platform": "win", + "subdir": "win-64", + "timestamp": 1764777142545, + "version": "1.5.7" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/licenses/LICENSE b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/licenses/LICENSE new file mode 100644 index 0000000000000000000000000000000000000000..75800288cc243f164b9d130f125e2ffae28f8e39 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/licenses/LICENSE @@ -0,0 +1,30 @@ +BSD License + +For Zstandard software + +Copyright (c) Meta Platforms, Inc. and affiliates. All rights reserved. + +Redistribution and use in source and binary forms, with or without modification, +are permitted provided that the following conditions are met: + + * Redistributions of source code must retain the above copyright notice, this + list of conditions and the following disclaimer. + + * Redistributions in binary form must reproduce the above copyright notice, + this list of conditions and the following disclaimer in the documentation + and/or other materials provided with the distribution. + + * Neither the name Facebook, nor Meta, nor the names of its contributors may + be used to endorse or promote products derived from this software without + specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND +ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED +WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE +DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES +(INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; +LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON +ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT +(INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS +SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/paths.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/paths.json new file mode 100644 index 0000000000000000000000000000000000000000..74a7d01471af49d280fe490903303a23e7fdade6 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/paths.json @@ -0,0 +1,91 @@ +{ + "paths": [ + { + "_path": "Library/bin/libzstd.dll", + "path_type": "hardlink", + "sha256": "ca228f0f33b8296d6650b4694bb38ba9ea8796c523b6b5e0682fcc05a5edab0a", + "size_in_bytes": 658432 + }, + { + "_path": "Library/bin/zstd.dll", + "path_type": "hardlink", + "sha256": "ca228f0f33b8296d6650b4694bb38ba9ea8796c523b6b5e0682fcc05a5edab0a", + "size_in_bytes": 658432 + }, + { + "_path": "Library/bin/zstd.exe", + "path_type": "hardlink", + "sha256": "ff6f0a9377ef1546fb4e909ced0faddd90e4aefe2737bf43a78661c2d1153070", + "size_in_bytes": 164864 + }, + { + "_path": "Library/include/zdict.h", + "path_type": "hardlink", + "sha256": "abacadb94e3f79e591f4b1648e839b0160fbf4291211fd01bdba1380269b245c", + "size_in_bytes": 26516 + }, + { + "_path": "Library/include/zstd.h", + "path_type": "hardlink", + "sha256": "9b4bc8245565c98ccfc61c07749928b57e7c0f6fddb0530c4f6aa1971893d88b", + "size_in_bytes": 181748 + }, + { + "_path": "Library/include/zstd_errors.h", + "path_type": "hardlink", + "sha256": "66a8c3f71d12ea6e797e4f622f31f3f8f81c41b36f48cad4f5de7d8bfb6aac0a", + "size_in_bytes": 4278 + }, + { + "_path": "Library/lib/cmake/zstd/zstdConfig.cmake", + "path_type": "hardlink", + "sha256": "c8b13fa0c852ab8a2ec1878e724aa36ee0c878051d74dcf90eb22cd5172b132f", + "size_in_bytes": 1086 + }, + { + "_path": "Library/lib/cmake/zstd/zstdConfigVersion.cmake", + "path_type": "hardlink", + "sha256": "d17deaf5d1a66e670685dbe7ec59712e61723614c788285e202b848dcc7324b4", + "size_in_bytes": 2827 + }, + { + "_path": "Library/lib/cmake/zstd/zstdTargets-release.cmake", + "path_type": "hardlink", + "sha256": "a526853fae83669bf1a3bfc37c1e5fb9a6813d60ab3e66b0903825ee95125672", + "size_in_bytes": 928 + }, + { + "_path": "Library/lib/cmake/zstd/zstdTargets.cmake", + "path_type": "hardlink", + "sha256": "463987ce46d270b4bf38ef6f5b307bd46acedbc3bc2b7057ea3a020f353a6249", + "size_in_bytes": 4511 + }, + { + "_path": "Library/lib/libzstd.lib", + "path_type": "hardlink", + "sha256": "0b37055dd632f230baaadf157db315afb331e129661bbe4a3d6d69b7d48934af", + "size_in_bytes": 45308 + }, + { + "_path": "Library/lib/pkgconfig/libzstd.pc", + "path_type": "hardlink", + "file_mode": "text", + "prefix_placeholder": "D:/bld/bld/rattler-build_zstd_1764777142/h_env", + "sha256": "5f8ac25704c8d1e4b8f2c6cb7503c9e6451ad7bf958ef23ce112150867b0b543", + "size_in_bytes": 516 + }, + { + "_path": "Library/lib/zstd.lib", + "path_type": "hardlink", + "sha256": "0b37055dd632f230baaadf157db315afb331e129661bbe4a3d6d69b7d48934af", + "size_in_bytes": 45308 + }, + { + "_path": "etc/conda/test-files/zstd/1/cf_test/CMakeLists.txt", + "path_type": "hardlink", + "sha256": "e597e75ad7a2a133b52643ac3c953736e42243e5f86df0136edcce1c2774751a", + "size_in_bytes": 98 + } + ], + "paths_version": 1 +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/cf_test/CMakeLists.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/cf_test/CMakeLists.txt new file mode 100644 index 0000000000000000000000000000000000000000..84d8d3448e55453fcb573e0309019a29ad48d5f8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/cf_test/CMakeLists.txt @@ -0,0 +1,3 @@ +project(cf_dummy LANGUAGES C) +cmake_minimum_required(VERSION 3.12) +find_package(zstd REQUIRED) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/conda_build_config.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/conda_build_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..2bbc0a73433bd85a67da58f3e12828034781f586 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/conda_build_config.yaml @@ -0,0 +1,6 @@ +c_compiler: # [unix] + - clang_bootstrap # [osx] + - gcc_bootstrap # [linux] +cxx_compiler: # [unix] + - clang_bootstrap # [osx] + - gcc_bootstrap # [linux] diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.bat b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.bat new file mode 100644 index 0000000000000000000000000000000000000000..0abc5906921ff902d8f04078eeae3b219838f10d --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.bat @@ -0,0 +1,39 @@ +@echo on + +if "%PKG_NAME%" == "zstd-static" ( + set ZSTD_BUILD_STATIC=ON + REM cannot build CLI without shared lib + set ZSTD_BUILD_SHARED=ON + set ZSTD_ZLIB_SUPPORT=OFF + echo "static build" +) else ( + set ZSTD_BUILD_STATIC=OFF + set ZSTD_BUILD_SHARED=ON + set ZSTD_ZLIB_SUPPORT=ON +) + +pushd "%SRC_DIR%"\build\cmake +cmake -GNinja %CMAKE_ARGS% ^ + -DCMAKE_BUILD_TYPE=Release ^ + -DCMAKE_INSTALL_PREFIX="%LIBRARY_PREFIX%" ^ + -DCMAKE_INSTALL_LIBDIR="lib" ^ + -DCMAKE_PREFIX_PATH="%LIBRARY_PREFIX%" ^ + -DZSTD_BUILD_SHARED=%ZSTD_BUILD_SHARED% ^ + -DZSTD_BUILD_STATIC=%ZSTD_BUILD_STATIC% ^ + -DZSTD_PROGRAMS_LINK_SHARED=ON ^ + -DZSTD_ZLIB_SUPPORT=%ZSTD_ZLIB_SUPPORT% ^ + . +if %ERRORLEVEL% neq 0 exit 1 + +cmake --build . --target install +if %ERRORLEVEL% neq 0 exit 1 + +:: duplicate DLL (+ importlib) to also have files with "lib" prefix +copy %PREFIX%\Library\bin\zstd.dll %PREFIX%\Library\bin\libzstd.dll +if %ERRORLEVEL% neq 0 exit 1 +copy %PREFIX%\Library\lib\zstd.lib %PREFIX%\Library\lib\libzstd.lib +if %ERRORLEVEL% neq 0 exit 1 + +if "%PKG_NAME%" == "zstd-static" ( + copy %PREFIX%\Library\lib\zstd_static.lib %PREFIX%\Library\lib\libzstd_static.lib +) diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.sh b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.sh new file mode 100644 index 0000000000000000000000000000000000000000..08c484a874af7ac4b082f7bb18658517c99200bc --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/install.sh @@ -0,0 +1,50 @@ +#!/bin/bash + +set -exo pipefail + +export CFLAGS="${CFLAGS} -O3 -fPIC" + +make -j$CPU_COUNT -C contrib/pzstd all + +declare -a _CMAKE_EXTRA_CONFIG + +if [[ ${HOST} =~ .*linux.* ]]; then + # I hate you so much CMake. + LIBPTHREAD=$(find ${PREFIX} -name "libpthread.so") + _CMAKE_EXTRA_CONFIG+=(-DPTHREAD_LIBRARY=${LIBPTHREAD}) + LIBRT=$(find ${PREFIX} -name "librt.so") + _CMAKE_EXTRA_CONFIG+=(-DRT_LIBRARIES=${LIBRT}) +fi + +if [[ "$PKG_NAME" == *static ]]; then + ZSTD_BUILD_STATIC=ON + # cannot build CLI without shared lib + ZSTD_BUILD_SHARED=ON + ZSTD_ZLIB_SUPPORT=OFF +else + ZSTD_BUILD_STATIC=OFF + ZSTD_BUILD_SHARED=ON + # For .gz support + ZSTD_ZLIB_SUPPORT=ON +fi + +pushd build/cmake + FULL_AR=`which ${AR}` + cmake -GNinja \ + -DCMAKE_INSTALL_PREFIX="${PREFIX}" \ + -DCMAKE_INSTALL_LIBDIR="lib" \ + -DCMAKE_PREFIX_PATH="${PREFIX}" \ + -DCMAKE_AR=${FULL_AR} \ + -DZSTD_BUILD_STATIC=${ZSTD_BUILD_STATIC} \ + -DZSTD_BUILD_SHARED=${ZSTD_BUILD_SHARED} \ + -DZSTD_PROGRAMS_LINK_SHARED=ON \ + -DZSTD_ZLIB_SUPPORT=${ZSTD_ZLIB_SUPPORT} \ + "${_CMAKE_EXTRA_CONFIG[@]}" + + ninja install +popd + +# Just remove all installed documentation since users of conda-forge haven't +# asked for it. +rm -rf ${PREFIX}/share/man/man1/unzstd* +rm -rf ${PREFIX}/share/man/man1/zstd* diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe-scripts-license.txt b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe-scripts-license.txt new file mode 100644 index 0000000000000000000000000000000000000000..f093e06198e8f9997e31fe9bf3cedf8d12a5c6dd --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe-scripts-license.txt @@ -0,0 +1,27 @@ +BSD-3-Clause license +Copyright (c) 2015-2022, conda-forge contributors +All rights reserved. + +Redistribution and use in source and binary forms, with or without +modification, are permitted provided that the following conditions are met: + + 1. Redistributions of source code must retain the above copyright notice, + this list of conditions and the following disclaimer. + 2. Redistributions in binary form must reproduce the above copyright + notice, this list of conditions and the following disclaimer in the + documentation and/or other materials provided with the distribution. + 3. Neither the name of the copyright holder nor the names of its + contributors may be used to endorse or promote products derived from + this software without specific prior written permission. + +THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" +AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE +IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE +ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE FOR +ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL +DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR +SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER +CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT +LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY +OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH +DAMAGE. diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..fd4901ef29e5354ab57fb72a6526384a9a264138 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/recipe.yaml @@ -0,0 +1,154 @@ +schema_version: 1 + +context: + version: 1.5.7 + +recipe: + name: zstd-split + version: ${{ version }} + +source: + url: https://github.com/facebook/zstd/archive/v${{ version }}.tar.gz + sha256: 37d7284556b20954e56e1ca85b80226768902e2edabd3b649e9e72c0c9012ee3 + +build: + number: 6 + +outputs: + - package: + name: zstd + build: + script: + file: ${{ 'install.bat' if win else 'install.sh' if unix else '' }} + requirements: + build: + - ${{ stdlib('c') }} + - ${{ compiler('c') }} + - ${{ compiler('cxx') }} + - ninja + - if: unix + then: make + - cmake-no-system + host: + - zlib + run_exports: + - ${{ pin_subpackage('zstd', upper_bound='x.x') }} + tests: + - package_contents: + lib: + - zstd + # duplicated for packages depending on lib-prefixed files + - if: win + then: libzstd + include: + - zstd.h + files: + exists: + - if: unix + then: lib/pkgconfig/libzstd.pc + - if: win + then: Library/lib/pkgconfig/libzstd.pc + not_exists: + - if: unix + then: lib/libzstd.a + - if: win + then: + - Library/lib/zstd_static.lib + - Library/lib/libzstd_static.lib + - script: + - zstd -be -i5 + - files: + recipe: + - cf_test/ + requirements: + run: + - ${{ compiler('c') }} + - cmake + - if: unix + then: make + - pkg-config + script: + - if: unix + then: export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig + else: set "PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig" + - pkg-config --cflags libzstd + - cd cf_test + - if: unix and (build_platform == target_platform) + then: cmake $CMAKE_ARGS . + - if: win + then: cmake %CMAKE_ARGS% . + - package: + name: zstd-static + build: + script: + file: ${{ 'install.bat' if win else 'install.sh' if unix else '' }} + requirements: + build: + - ${{ stdlib('c') }} + - ${{ compiler('c') }} + - ${{ compiler('cxx') }} + - ninja + - if: unix + then: make + - cmake-no-system + host: + - ${{ pin_subpackage('zstd', exact=True) }} + run: + - ${{ pin_subpackage('zstd', exact=True) }} + tests: + - package_contents: + files: + exists: + - if: unix + then: + - lib/libzstd.a + - if: win + then: + - Library/lib/zstd_static.lib + - script: + - zstd -be -i5 + - files: + recipe: + - cf_test/ + requirements: + run: + - ${{ compiler('c') }} + - ${{ stdlib('c') }} + - cmake + - if: unix + then: make + - pkg-config + script: + - if: unix + then: export PKG_CONFIG_PATH=$PREFIX/lib/pkgconfig + else: set "PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig" + - pkg-config --cflags libzstd + - cd cf_test + - if: build_platform == target_platform and unix + then: cmake $CMAKE_ARGS . + - if: win + then: cmake %CMAKE_ARGS% . + +about: + license: BSD-3-Clause + license_file: LICENSE + summary: Zstandard - Fast real-time compression algorithm + description: | + Zstandard is a real-time compression algorithm, providing high compression + ratios. It offers a very wide range of compression / speed trade-off, while + being backed by a very fast decoder. It also offers a special mode for + small data, called dictionary compression, and can create dictionaries from + any sample set. Zstandard library is provided as open source software using + a BSD license. + homepage: http://www.zstd.net + repository: https://github.com/facebook/zstd + documentation: https://facebook.github.io/zstd/zstd_manual.html + +extra: + feedstock-name: zstd + recipe-maintainers: + - JohanMabille + - rmax + - msarahan + - xhochy + - hmaarrfk diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/rendered_recipe.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/rendered_recipe.yaml new file mode 100644 index 0000000000000000000000000000000000000000..42d3ee5a7627bbe3d1645794fe367dfd8ebd59c8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/rendered_recipe.yaml @@ -0,0 +1,496 @@ +recipe: + schema_version: 1 + context: + version: 1.5.7 + package: + name: zstd + version: 1.5.7 + source: + - url: https://github.com/facebook/zstd/archive/v1.5.7.tar.gz + sha256: 37d7284556b20954e56e1ca85b80226768902e2edabd3b649e9e72c0c9012ee3 + build: + number: 6 + string: h534d264_6 + script: + interpreter: cmd + file: install.bat + requirements: + build: + - vs_win-64 + - vs2022_win-64 + - vs2022_win-64 + - ninja + - cmake-no-system + host: + - zlib + run_exports: + weak: + - pin_subpackage: + name: zstd + lower_bound: x.x.x.x.x.x + upper_bound: x.x + tests: + - package_contents: + files: + exists: + - Library/lib/pkgconfig/libzstd.pc + not_exists: + - Library/lib/zstd_static.lib + - Library/lib/libzstd_static.lib + lib: + - zstd + - libzstd + include: + - zstd.h + - script: zstd -be -i5 + - script: + - set "PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig" + - pkg-config --cflags libzstd + - cd cf_test + - cmake %CMAKE_ARGS% . + requirements: + run: + - vs2022_win-64 + - cmake + - pkg-config + files: + recipe: + - cf_test/ + about: + homepage: http://www.zstd.net/ + repository: https://github.com/facebook/zstd + documentation: https://facebook.github.io/zstd/zstd_manual.html + license: BSD-3-Clause + license_file: + - LICENSE + summary: Zstandard - Fast real-time compression algorithm + description: |- + Zstandard is a real-time compression algorithm, providing high compression + ratios. It offers a very wide range of compression / speed trade-off, while + being backed by a very fast decoder. It also offers a special mode for + small data, called dictionary compression, and can create dictionaries from + any sample set. Zstandard library is provided as open source software using + a BSD license. + extra: + feedstock-name: zstd + recipe-maintainers: + - JohanMabille + - rmax + - msarahan + - xhochy + - hmaarrfk +build_configuration: + target_platform: win-64 + host_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v3 + build_platform: + platform: win-64 + virtual_packages: + - __win=10.0.20348=0 + - __archspec=1=x86_64_v3 + variant: + build_platform: win-64 + c_compiler: vs2022 + c_stdlib: vs + channel_sources: conda-forge + channel_targets: conda-forge main + cxx_compiler: vs2022 + target_platform: win-64 + zlib: '1' + hash: + hash: 534d264 + directories: + host_prefix: D:\bld\bld\rattler-build_zstd_1764777142\h_env + build_prefix: D:\bld\bld\rattler-build_zstd_1764777142\build_env + work_dir: D:\bld\bld\rattler-build_zstd_1764777142\work + build_dir: D:\bld\bld\rattler-build_zstd_1764777142 + channels: + - https://conda.anaconda.org/conda-forge + channel_priority: strict + solve_strategy: highest + timestamp: 2025-12-03T15:52:22.545767200Z + subpackages: + zstd: + name: zstd + version: 1.5.7 + build_string: h534d264_6 + packaging_settings: + archive_type: conda + compression_level: 15 +finalized_dependencies: + build: + specs: + - source: vs_win-64 + - source: vs2022_win-64 + - source: vs2022_win-64 + - source: ninja + - source: cmake-no-system + resolved: + - build: ha74f236_32 + build_number: 32 + depends: + - vs2022_win-64 19.44.35207.* + license: BSD-3-Clause + license_family: BSD + md5: 74694372f1fa7e0509b94654f83f39cd + name: vs_win-64 + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + sha256: 54316b692eed6241ba6c51611bdb80399add9ec5505d2723e027bca5237fcd60 + size: 19087 + subdir: win-64 + timestamp: 1760418631199 + track_features: vc14 + version: '2022.14' + fn: vs_win-64-2022.14-ha74f236_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vs_win-64-2022.14-ha74f236_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: ha74f236_32 + build_number: 32 + constrains: + - vs_win-64 2022.14 + depends: + - vswhere + license: BSD-3-Clause + license_family: BSD + md5: c61ef6a81142ee3bd6c3b0c9a0c91e35 + name: vs2022_win-64 + run_exports: + strong: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + sha256: 0694683d118d0d8448cd997fe776dbe33858c0f3957d9886b2b855220babe895 + size: 22206 + subdir: win-64 + timestamp: 1760418596437 + track_features: vc14 + version: 19.44.35207 + fn: vs2022_win-64-19.44.35207-ha74f236_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vs2022_win-64-19.44.35207-ha74f236_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h477610d_0 + build_number: 0 + depends: + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + - ucrt >=10.0.20348.0 + license: Apache-2.0 + license_family: APACHE + md5: 7ecb9f2f112c66f959d2bb7dbdb89b67 + name: ninja + run_exports: {} + sha256: e41a945c34a5f0bd2109b73a65486cd93023fa0a9bcba3ef98f9a3da40ba1180 + size: 309417 + subdir: win-64 + timestamp: 1763688227932 + version: 1.13.2 + fn: ninja-1.13.2-h477610d_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/ninja-1.13.2-h477610d_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: hac47afa_0 + build_number: 0 + constrains: + - cmake ==dev + depends: + - ucrt >=10.0.20348.0 + - vc >=14.3,<15 + - vc14_runtime >=14.44.35208 + license: BSD-3-Clause + license_family: BSD + md5: cc013106e91c6244ace48f57a7ecd93a + name: cmake-no-system + run_exports: {} + sha256: 0688f3075abbb1b31f02fb56eea59a860e6f95d8ba9e5f47317afa820b7bf294 + size: 29094561 + subdir: win-64 + timestamp: 1763580178850 + version: 4.2.0 + fn: cmake-no-system-4.2.0-hac47afa_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/cmake-no-system-4.2.0-hac47afa_0.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h40126e0_1 + build_number: 1 + depends: + - __win + license: MIT + license_family: MIT + md5: f622897afff347b715d046178ad745a5 + name: vswhere + noarch: generic + run_exports: {} + sha256: b72270395326dc56de9bd6ca82f63791b3c8c9e2b98e25242a9869a4ca821895 + size: 238764 + subdir: noarch + timestamp: 1745560912727 + version: 3.1.7 + fn: vswhere-3.1.7-h40126e0_1.conda + url: https://conda.anaconda.org/conda-forge/noarch/vswhere-3.1.7-h40126e0_1.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2b53caa_32 + build_number: 32 + depends: + - vc14_runtime >=14.42.34433 + license: BSD-3-Clause + license_family: BSD + md5: ef02bbe151253a72b8eda264a935db66 + name: vc + run_exports: {} + sha256: 82250af59af9ff3c6a635dd4c4764c631d854feb334d6747d356d949af44d7cf + size: 18861 + subdir: win-64 + timestamp: 1760418772353 + track_features: vc14 + version: '14.3' + fn: vc-14.3-h2b53caa_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h2b53caa_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_32 + build_number: 32 + constrains: + - vs2015_runtime 14.44.35208.* *_32 + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.44.35208 h818238b_32 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 378d5dcec45eaea8d303da6f00447ac0 + name: vc14_runtime + run_exports: {} + sha256: e3a3656b70d1202e0d042811ceb743bd0d9f7e00e2acdf824d231b044ef6c0fd + size: 682706 + subdir: win-64 + timestamp: 1760418629729 + version: 14.44.35208 + fn: vc14_runtime-14.44.35208-h818238b_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_32 + build_number: 32 + constrains: + - vs2015_runtime 14.44.35208.* *_32 + depends: + - ucrt >=10.0.20348.0 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 58f67b437acbf2764317ba273d731f1d + name: vcomp14 + run_exports: + strong: + - vcomp14 >=14.44.35208 + sha256: f3790c88fbbdc55874f41de81a4237b1b91eab75e05d0e58661518ff04d2a8a1 + size: 114846 + subdir: win-64 + timestamp: 1760418593847 + version: 14.44.35208 + fn: vcomp14-14.44.35208-h818238b_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.44.35208-h818238b_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h57928b3_0 + build_number: 0 + constrains: + - vc14_runtime >=14.29.30037 + - vs2015_runtime >=14.29.30037 + depends: [] + license: LicenseRef-MicrosoftWindowsSDK10 + md5: 71b24316859acd00bdb8b38f5e2ce328 + name: ucrt + run_exports: {} + sha256: 3005729dce6f3d3f5ec91dfc49fc75a0095f9cd23bab49efb899657297ac91a5 + size: 694692 + subdir: win-64 + timestamp: 1756385147981 + version: 10.0.26100.0 + fn: ucrt-10.0.26100.0-h57928b3_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + channel: https://conda.anaconda.org/conda-forge/ + host: + specs: + - variant: zlib + spec: zlib 1.* + - spec: vc >=14.3,<15 + from: build + run_export: vs2022_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs2022_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs2022_win-64 + - spec: vc >=14.3,<15 + from: build + run_export: vs_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs_win-64 + resolved: + - build: h2466b09_2 + build_number: 2 + depends: + - libzlib 1.3.1 h2466b09_2 + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: Zlib + license_family: Other + md5: be60c4e8efa55fddc17b4131aa47acbd + name: zlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: 8c688797ba23b9ab50cef404eca4d004a948941b6ee533ead0ff3bf52012528c + size: 107439 + subdir: win-64 + timestamp: 1727963788936 + version: 1.3.1 + fn: zlib-1.3.1-h2466b09_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/zlib-1.3.1-h2466b09_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2466b09_2 + build_number: 2 + constrains: + - zlib 1.3.1 *_2 + depends: + - ucrt >=10.0.20348.0 + - vc >=14.2,<15 + - vc14_runtime >=14.29.30139 + license: Zlib + license_family: Other + md5: 41fbfac52c601159df6c01f875de31b9 + name: libzlib + run_exports: + weak: + - libzlib >=1.3.1,<2.0a0 + sha256: ba945c6493449bed0e6e29883c4943817f7c79cbff52b83360f7b341277c6402 + size: 55476 + subdir: win-64 + timestamp: 1727963768015 + version: 1.3.1 + fn: libzlib-1.3.1-h2466b09_2.conda + url: https://conda.anaconda.org/conda-forge/win-64/libzlib-1.3.1-h2466b09_2.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h2b53caa_32 + build_number: 32 + depends: + - vc14_runtime >=14.42.34433 + license: BSD-3-Clause + license_family: BSD + md5: ef02bbe151253a72b8eda264a935db66 + name: vc + run_exports: {} + sha256: 82250af59af9ff3c6a635dd4c4764c631d854feb334d6747d356d949af44d7cf + size: 18861 + subdir: win-64 + timestamp: 1760418772353 + track_features: vc14 + version: '14.3' + fn: vc-14.3-h2b53caa_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc-14.3-h2b53caa_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_32 + build_number: 32 + constrains: + - vs2015_runtime 14.44.35208.* *_32 + depends: + - ucrt >=10.0.20348.0 + - vcomp14 14.44.35208 h818238b_32 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 378d5dcec45eaea8d303da6f00447ac0 + name: vc14_runtime + run_exports: {} + sha256: e3a3656b70d1202e0d042811ceb743bd0d9f7e00e2acdf824d231b044ef6c0fd + size: 682706 + subdir: win-64 + timestamp: 1760418629729 + version: 14.44.35208 + fn: vc14_runtime-14.44.35208-h818238b_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vc14_runtime-14.44.35208-h818238b_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h818238b_32 + build_number: 32 + constrains: + - vs2015_runtime 14.44.35208.* *_32 + depends: + - ucrt >=10.0.20348.0 + license: LicenseRef-MicrosoftVisualCpp2015-2022Runtime + license_family: Proprietary + md5: 58f67b437acbf2764317ba273d731f1d + name: vcomp14 + run_exports: + strong: + - vcomp14 >=14.44.35208 + sha256: f3790c88fbbdc55874f41de81a4237b1b91eab75e05d0e58661518ff04d2a8a1 + size: 114846 + subdir: win-64 + timestamp: 1760418593847 + version: 14.44.35208 + fn: vcomp14-14.44.35208-h818238b_32.conda + url: https://conda.anaconda.org/conda-forge/win-64/vcomp14-14.44.35208-h818238b_32.conda + channel: https://conda.anaconda.org/conda-forge/ + - build: h57928b3_0 + build_number: 0 + constrains: + - vc14_runtime >=14.29.30037 + - vs2015_runtime >=14.29.30037 + depends: [] + license: LicenseRef-MicrosoftWindowsSDK10 + md5: 71b24316859acd00bdb8b38f5e2ce328 + name: ucrt + run_exports: {} + sha256: 3005729dce6f3d3f5ec91dfc49fc75a0095f9cd23bab49efb899657297ac91a5 + size: 694692 + subdir: win-64 + timestamp: 1756385147981 + version: 10.0.26100.0 + fn: ucrt-10.0.26100.0-h57928b3_0.conda + url: https://conda.anaconda.org/conda-forge/win-64/ucrt-10.0.26100.0-h57928b3_0.conda + channel: https://conda.anaconda.org/conda-forge/ + run: + depends: + - spec: vc >=14.3,<15 + from: build + run_export: vs2022_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs2022_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs2022_win-64 + - spec: vc >=14.3,<15 + from: build + run_export: vs_win-64 + - spec: vc14_runtime >=14.44.35208 + from: build + run_export: vs_win-64 + - spec: ucrt >=10.0.20348.0 + from: build + run_export: vs_win-64 + - spec: libzlib >=1.3.1,<2.0a0 + from: host + run_export: zlib + constraints: [] + run_exports: + weak: + - zstd >=1.5.7,<1.6.0a0 +finalized_sources: +- url: https://github.com/facebook/zstd/archive/v1.5.7.tar.gz + sha256: 37d7284556b20954e56e1ca85b80226768902e2edabd3b649e9e72c0c9012ee3 +system_tools: + rattler-build: 0.53.0 +extra_meta: + flow_run_id: azure_20251203.5.1 + remote_url: https://github.com/conda-forge/zstd-feedstock + sha: 1b0cb8a51701b5e80754b865d53aec3e75f89e5a diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/variant_config.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/variant_config.yaml new file mode 100644 index 0000000000000000000000000000000000000000..008b4e9e85aaae46d57f1624c15b7ccc504593d8 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/recipe/variant_config.yaml @@ -0,0 +1,8 @@ +build_platform: win-64 +c_compiler: vs2022 +c_stdlib: vs +channel_sources: conda-forge +channel_targets: conda-forge main +cxx_compiler: vs2022 +target_platform: win-64 +zlib: '1' diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/repodata_record.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/repodata_record.json new file mode 100644 index 0000000000000000000000000000000000000000..da68413bb235c99da1c8835c0e6d8c3b1af5a633 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/repodata_record.json @@ -0,0 +1,25 @@ +{ + "arch": "x86_64", + "build": "h534d264_6", + "build_number": 6, + "build_string": "h534d264_6", + "channel": "conda-forge", + "constrains": [], + "depends": [ + "vc >=14.3,<15", + "vc14_runtime >=14.44.35208", + "ucrt >=10.0.20348.0", + "libzlib >=1.3.1,<2.0a0" + ], + "fn": "zstd-1.5.7-h534d264_6.conda", + "license": "BSD-3-Clause", + "md5": "053b84beec00b71ea8ff7a4f84b55207", + "name": "zstd", + "platform": "win", + "sha256": "368d8628424966fd8f9c8018326a9c779e06913dd39e646cf331226acc90e5b2", + "size": 388453, + "subdir": "win-64", + "timestamp": 1764777142, + "url": "https://conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6.conda", + "version": "1.5.7" +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/run_exports.json b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/run_exports.json new file mode 100644 index 0000000000000000000000000000000000000000..55de7865b1dad41c6e7987e09ec0cec63d5fd4ab --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/run_exports.json @@ -0,0 +1,5 @@ +{ + "weak": [ + "zstd >=1.5.7,<1.6.0a0" + ] +} \ No newline at end of file diff --git a/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/tests/tests.yaml b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/tests/tests.yaml new file mode 100644 index 0000000000000000000000000000000000000000..0fb1255aa6d19332b062512f4d10d482157293b6 --- /dev/null +++ b/micromamba_root/pkgs/https/conda.anaconda.org/conda-forge/win-64/zstd-1.5.7-h534d264_6/info/tests/tests.yaml @@ -0,0 +1,21 @@ +- script: + content: zstd -be -i5 +- script: + content: |- + set "PKG_CONFIG_PATH=%LIBRARY_LIB%\pkgconfig" + if %errorlevel% neq 0 exit /b %errorlevel% + pkg-config --cflags libzstd + if %errorlevel% neq 0 exit /b %errorlevel% + cd cf_test + if %errorlevel% neq 0 exit /b %errorlevel% + cmake %CMAKE_ARGS% . + if %errorlevel% neq 0 exit /b %errorlevel% + cwd: etc/conda/test-files/zstd/1 + requirements: + run: + - vs2022_win-64 + - cmake + - pkg-config + files: + recipe: + - cf_test/ diff --git a/micromamba_root/share/Cppcheck/addons/ROS_naming.json b/micromamba_root/share/Cppcheck/addons/ROS_naming.json new file mode 100644 index 0000000000000000000000000000000000000000..0262d69c09ba89fda97b096b9e775a1cf669bc7a --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/ROS_naming.json @@ -0,0 +1,24 @@ +{ + "RE_FILE": [".*[A-Z]"], + "RE_NAMESPACE": {".*[A-Z]": [true, "under_scored"], + ".*\\_$": [true, "under_scored"]}, + "RE_FUNCTIONNAME": {".*\\_": [true, "camelCase"], + ".*^[a-z]": [false, "camelCase"]}, + "RE_CLASS_NAME": {".*^[A-Z]": [false, "CamelCase"], + ".*\\_": [true, "CamelCase"]}, + "RE_GLOBAL_VARNAME": {".*^([g]\\_)": [false, "g_under_scored"], + ".*[A-Z]": [true, "g_under_scored"], + ".*\\_$": [true, "g_under_scored"]}, + "RE_VARNAME": {".*^([g]\\_)": [true, "under_scored"], + ".*[A-Z]": [true, "under_scored"], + ".*\\_$": [true, "under_scored"]}, + "RE_PRIVATE_MEMBER_VARIABLE": {".*\\_$": [false, "under_scored_"], + ".*[A-Z]": [true, "under_scored_"]}, + "RE_PUBLIC_MEMBER_VARIABLE": {".*\\_$": [false, "under_scored_"], + ".*[A-Z]": [true, "under_scored_"]}, + "var_prefixes": {"uint32_t": "ui32", + "int*": "intp"}, + "function_prefixes": {"uint16_t": "ui16", + "uint32_t": "ui32"}, + "skip_one_char_variables": false +} \ No newline at end of file diff --git a/micromamba_root/share/Cppcheck/addons/__init__.py b/micromamba_root/share/Cppcheck/addons/__init__.py new file mode 100644 index 0000000000000000000000000000000000000000..e69de29bb2d1d6434b8b29ae775ad8c2e48c5391 diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/__init__.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/__init__.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a1674021374de38b7b0ebafe825789a8db6f4e24 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/__init__.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheck.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheck.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..16303bb34f96b65f8756c1064c538b75d9df60e0 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheck.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheckdata.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheckdata.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..bb02ebc84a40ad90d6853acf67bcb6a336d37742 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/cppcheckdata.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/findcasts.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/findcasts.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..8bb84617ae27963c5303adef827da94b056b4993 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/findcasts.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/misc.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/misc.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..5326c7fa40b53278fb3e5bb025551bfd393bf581 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/misc.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/misra_9.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/misra_9.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..b51bfbdfea329f2dc2d7ef3dd206aabbce71e1bf Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/misra_9.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/naming.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/naming.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..a867272b0974b04cccfc38dcd984d26c60fd30c5 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/naming.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/namingng.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/namingng.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..23a7bec9ca34259f1a3bb6be85c77cb46032db93 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/namingng.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/runaddon.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/runaddon.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..81ca8b9bc3fdbf2e11105789a56357e7c8d6d7b3 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/runaddon.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/threadsafety.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/threadsafety.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..0ab23488c693e0e076c4c9938a85ddeb78ae3fb7 Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/threadsafety.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/__pycache__/y2038.cpython-314.pyc b/micromamba_root/share/Cppcheck/addons/__pycache__/y2038.cpython-314.pyc new file mode 100644 index 0000000000000000000000000000000000000000..475c80072a7f34b07791d9a9cfe6f26e0a68ec0f Binary files /dev/null and b/micromamba_root/share/Cppcheck/addons/__pycache__/y2038.cpython-314.pyc differ diff --git a/micromamba_root/share/Cppcheck/addons/cppcheck.py b/micromamba_root/share/Cppcheck/addons/cppcheck.py new file mode 100644 index 0000000000000000000000000000000000000000..735269d32c535ff74ae6ddbb06ec6419fc0f8846 --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/cppcheck.py @@ -0,0 +1,41 @@ + +import cppcheckdata +import sys +import os + +__checkers__ = [] + +def checker(f): + __checkers__.append(f) + return f + + +__errorid__ = '' +__addon_name__ = '' +def reportError(location, severity, message, errorId=None): + cppcheckdata.reportError(location, severity, message, __addon_name__, errorId or __errorid__) + +def runcheckers(): + # If there are no checkers then don't run + if len(__checkers__) == 0: + return + global __addon_name__ + global __errorid__ + addon = sys.argv[0] + parser = cppcheckdata.ArgumentParser() + args = parser.parse_args() + + __addon_name__ = os.path.splitext(os.path.basename(addon))[0] + + for dumpfile in args.dumpfile: + if not args.quiet: + print('Checking %s...' % dumpfile) + + data = cppcheckdata.CppcheckData(dumpfile) + + for cfg in data.iterconfigurations(): + if not args.quiet: + print('Checking %s, config %s...' % (dumpfile, cfg.name)) + for c in __checkers__: + __errorid__ = c.__name__ + c(cfg, data) diff --git a/micromamba_root/share/Cppcheck/addons/cppcheckdata.py b/micromamba_root/share/Cppcheck/addons/cppcheckdata.py new file mode 100644 index 0000000000000000000000000000000000000000..dbe36d56a57a37f6c954fd1f1e94685275569283 --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/cppcheckdata.py @@ -0,0 +1,1727 @@ +""" +cppcheckdata + +This is a Python module that helps you access Cppcheck dump data. + +License: No restrictions, use this as you need. +""" + +import argparse +import json +import os +import sys +import subprocess + +try: + import pathlib +except ImportError: + message = "Failed to load pathlib. Upgrade Python to 3.x or install pathlib with 'pip install pathlib'." + error_id = 'pythonError' + if '--cli' in sys.argv: + msg = { 'file': '', + 'linenr': 0, + 'column': 0, + 'severity': 'error', + 'message': message, + 'addon': 'cppcheckdata', + 'errorId': error_id, + 'extra': ''} + sys.stdout.write(json.dumps(msg) + '\n') + else: + sys.stderr.write('%s [%s]\n' % (message, error_id)) + sys.exit(1) + +from xml.etree import ElementTree +from fnmatch import fnmatch + +EXIT_CODE = 0 + +current_dumpfile_suppressions = [] + +def _load_location(location, element): + """Load location from element/dict""" + location.file = element.get('file') + line = element.get('line') + if line is None: + line = element.get('linenr') + if line is None: + line = '0' + location.linenr = int(line) + location.column = int(element.get('column', '0')) + + +class Location: + """Utility location class""" + file = None + linenr = None + column = None + def __init__(self, element): + _load_location(self, element) + + +class Directive: + """ + Directive class. Contains information about each preprocessor directive in the source code. + + Attributes: + str The directive line, with all C or C++ comments removed + file Name of (possibly included) file where directive is defined + linenr Line number in (possibly included) file where directive is defined + + To iterate through all directives use such code: + @code + data = cppcheckdata.parsedump(...) + for cfg in data.configurations: + for directive in cfg.directives: + print(directive.str) + @endcode + """ + #preprocessor.cpp/Preprocessor::dump + + str = None + file = None + linenr = None + column = None + + def __init__(self, element): + self.str = element.get('str') + _load_location(self, element) + + def __repr__(self): + attrs = ["str", "file", "linenr"] + return "{}({})".format( + "Directive", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + +class MacroUsage: + """ + Tracks preprocessor macro usage + + Attributes: + name Name of the macro + usefile + useline + usecolumn + isKnownValue + """ + #preprocessor.cpp/Preprocessor::dump + + name = None # Macro name + file = None + linenr = None + column = None + usefile = None + uselinenr = None + usecolumn = None + + def __init__(self, element): + self.name = element.get('name') + _load_location(self, element) + self.usefile = element.get('usefile') + self.useline = element.get('useline') + self.usecolumn = element.get('usecolumn') + self.isKnownValue = element.get('is-known-value', 'false') == 'true' + + def __repr__(self): + attrs = ["name", "file", "linenr", "column", "usefile", "useline", "usecolumn", "isKnownValue"] + return "{}({})".format( + "MacroUsage", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class PreprocessorIfCondition: + """ + Information about #if/#elif conditions + + Attributes: + E + result + """ + #preprocessor.cpp/Preprocessor::dump + + file = None + linenr = None + column = None + E = None + result = None + + def __init__(self, element): + _load_location(self, element) + self.E = element.get('E') + self.result = int(element.get('result')) + + def __repr__(self): + attrs = ["file", "linenr", "column", "E", "result"] + return "{}({})".format( + "PreprocessorIfCondition", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + +class ValueType: + """ + ValueType class. Contains (promoted) type information for each node in the AST. + + Attributes: + type nonstd/pod/record/smart-pointer/container/iterator/void/bool/char/short/wchar_t/int/long/long long/unknown int/float/double/long double + sign signed/unsigned + bits bit count for bit-fields, otherwise None + pointer + constness + reference + typeScopeId + originalTypeName bool/const char */long/char */size_t/int/double/std::string/.. + + """ + #symboldatabase.cpp/ValueType::dump + + type = None + sign = None + bits = None + constness = 0 + pointer = 0 + typeScopeId = None + typeScope = None + originalTypeName = None + + def __init__(self, element): + self.type = element.get('valueType-type') + self.sign = element.get('valueType-sign') + self.bits = element.get('valueType-bits', None) + self.bits = int(self.bits) if self.bits else None + self.pointer = int(element.get('valueType-pointer', 0)) + self.constness = int(element.get('valueType-constness', 0)) + self.reference = element.get('valueType-reference') + self.typeScopeId = element.get('valueType-typeScope') + self.originalTypeName = element.get('valueType-originalTypeName') + #valueType-containerId TODO add + + + def __repr__(self): + attrs = ["type", "sign", "bits", "typeScopeId", "originalTypeName", + "constness", "pointer"] + return "{}({})".format( + "ValueType", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + + def setId(self, IdMap): + self.typeScope = IdMap[self.typeScopeId] + + def isIntegral(self): + return self.type in {'bool', 'char', 'short', 'int', 'long', 'long long'} + + def isFloat(self): + return self.type in {'float', 'double', 'long double'} + + def isEnum(self): + return self.typeScope and self.typeScope.type == "Enum" + + +class Token: + """ + Token class. Contains information about each token in the source code. + + The CppcheckData.tokenlist is a list of Token items + + C++ class: https://cppcheck.sourceforge.io/devinfo/doxyoutput/classToken.html + + Attributes: + str Token string + next Next token in tokenlist. For last token, next is None. + previous Previous token in tokenlist. For first token, previous is None. + link Linked token in tokenlist. Each '(', '[' and '{' are linked to the + corresponding '}', ']' and ')'. For templates, the '<' is linked to + the corresponding '>'. + scope Scope information for this token. See the Scope class. + type Type information: name/op/number/string/.. + isName Is this token a symbol name + isUnsigned Is this token a unsigned type + isSigned Is this token a signed type + isNumber Is this token a number, for example 123, 12.34 + isInt Is this token a int value such as 1234 + isFloat Is this token a float value such as 12.34 + isString Is this token a string literal such as "hello" + strlen string length for string literal + isChar Is this token a char literal such as 'x' + isBoolean Is this token a boolean + isOp Is this token a operator + isArithmeticalOp Is this token a arithmetic operator + isAssignmentOp Is this token a assignment operator + isComparisonOp Is this token a comparison operator + isLogicalOp Is this token a logical operator: && || + isCast + externLang + isExpandedMacro Is this token a expanded macro token + macroName Macro name that this token is expanded from + isRemovedVoidParameter Has void parameter been removed? + isSplittedVarDeclComma Is this a comma changed to semicolon in a split variable declaration ('int a,b;' => 'int a; int b;') + isSplittedVarDeclEq Is this a '=' changed to semicolon in a split variable declaration ('int a=5;' => 'int a; a=5;') + isImplicitInt Is this token an implicit "int"? + isComplex + isRestrict + isAttributeExport + isAnonymous + varId varId for token, each variable has a unique non-zero id + exprId exprId for token, each expression has a unique non-zero id + variable Variable information for this token. See the Variable class. + function If this token points at a function call, this attribute has the Function + information. See the Function class. + values Possible/Known values of token + typeScope type scope (token->type()->classScope) + astParent ast parent + astOperand1 ast operand1 + astOperand2 ast operand2 + orriginalName orriginal name of the token + valueType type information: container/.. + file file name + linenr line number + column column + + To iterate through all tokens use such code: + @code + data = cppcheckdata.parsedump(...) + for cfg in data.configurations: + code = '' + for token in cfg.tokenlist: + code = code + token.str + ' ' + print(code) + @endcode + """ + #tokenize.cpp/Tokenizer::dump + + Id = None + str = None + next = None + previous = None + linkId = None + link = None + scopeId = None + scope = None + isName = False + isNumber = False + isInt = False + isFloat = False + isString = False + strlen = None + isChar = False + isBoolean = False + isOp = False + isArithmeticalOp = False + isAssignmentOp = False + isComparisonOp = False + isLogicalOp = False + isCast = False + isUnsigned = False + isSigned = False + macroName = None + isExpandedMacro = False + isRemovedVoidParameter = False + isSplittedVarDeclComma = False + isSplittedVarDeclEq = False + isImplicitInt = False + isComplex = False + isRestrict = False + isAttributeExport = False + isAnonymous = False + exprId = None + varId = None + variableId = None + variable = None + functionId = None + function = None + valuesId = None + values = None + impossible_values = None + valueType = None + + typeScopeId = None + typeScope = None + type = None + + astParentId = None + astParent = None + astOperand1Id = None + astOperand1 = None + astOperand2Id = None + astOperand2 = None + + file = None + linenr = None + column = None + + def __init__(self, element): + self.Id = element.get('id') + self.str = element.get('str') + self.next = None + self.previous = None + self.scopeId = element.get('scope') + self.scope = None + self.type = element.get('type') + if self.type == 'name': + self.isName = True + if element.get('isUnsigned'): + self.isUnsigned = True + if element.get('isSigned'): + self.isSigned = True + elif self.type == 'number': + self.isNumber = True + if element.get('isInt'): + self.isInt = True + elif element.get('isFloat'): + self.isFloat = True + elif self.type == 'string': + self.isString = True + self.strlen = int(element.get('strlen')) + elif self.type == 'char': + self.isChar = True + elif self.type == 'boolean': + self.isBoolean = True + elif self.type == 'op': + self.isOp = True + if element.get('isArithmeticalOp'): + self.isArithmeticalOp = True + elif element.get('isAssignmentOp'): + self.isAssignmentOp = True + elif element.get('isComparisonOp'): + self.isComparisonOp = True + elif element.get('isLogicalOp'): + self.isLogicalOp = True + if element.get('isCast'): + self.isCast = True + self.externLang = element.get('externLang') + self.macroName = element.get('macroName') + if self.macroName or element.get('isExpandedMacro'): + self.isExpandedMacro = True + if element.get('isRemovedVoidParameter'): + self.isRemovedVoidParameter = True + if element.get('isSplittedVarDeclComma'): + self.isSplittedVarDeclComma = True + if element.get('isSplittedVarDeclEq'): + self.isSplittedVarDeclEq = True + if element.get('isImplicitInt'): + self.isImplicitInt = True + if element.get('isComplex'): + self.isComplex = True + if element.get('isRestrict'): + self.isRestrict = True + if element.get('isAttributeExport'): + self.isAttributeExport = True + if element.get('isAnonymous'): + self.isAnonymous = True + self.linkId = element.get('link') + self.link = None + if element.get('varId'): + self.varId = int(element.get('varId')) + if element.get('exprId'): + self.exprId = int(element.get('exprId')) + self.variableId = element.get('variable') + self.variable = None + self.functionId = element.get('function') + self.function = None + self.valuesId = element.get('values') + self.values = None + self.typeScopeId = element.get('type-scope') + self.typeScope = None + self.astParentId = element.get('astParent') + self.astParent = None + self.astOperand1Id = element.get('astOperand1') + self.astOperand1 = None + self.astOperand2Id = element.get('astOperand2') + self.astOperand2 = None + self.originalName = element.get('originalName') + if element.get('valueType-type'): + self.valueType = ValueType(element) + else: + self.valueType = None + _load_location(self, element) + + def __repr__(self): + attrs = ["Id", "str", "scopeId", "isName", "isUnsigned", "isSigned", + "isNumber", "isInt", "isFloat", "isString", "strlen", + "isChar", "isBoolean", "isOp", "isArithmeticalOp", "isAssignmentOp", + "isComparisonOp", "isLogicalOp", "isCast", "externLang", "isExpandedMacro", + "isRemovedVoidParameter", "isSplittedVarDeclComma", "isSplittedVarDeclEq", + "isImplicitInt", "isComplex", "isRestrict", "isAttributeExport", "isAnonymous", "linkId", + "varId", "variableId", "functionId", "valuesId", "valueType", + "typeScopeId", "astParentId", "astOperand1Id", "file", + "linenr", "column"] + return "{}({})".format( + "Token", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def setId(self, IdMap): + self.scope = IdMap[self.scopeId] + self.link = IdMap[self.linkId] + self.variable = IdMap[self.variableId] + self.function = IdMap[self.functionId] + self.values = [] + self.impossible_values = [] + if IdMap[self.valuesId]: + for v in IdMap[self.valuesId]: + if v.isImpossible(): + self.impossible_values.append(v) + else: + self.values.append(v) + v.setId(IdMap) + self.typeScope = IdMap[self.typeScopeId] + self.astParent = IdMap[self.astParentId] + self.astOperand1 = IdMap[self.astOperand1Id] + self.astOperand2 = IdMap[self.astOperand2Id] + if self.valueType: + self.valueType.setId(IdMap) + + def getValue(self, v): + """ + Get value if it exists + Returns None if it doesn't exist + """ + + if not self.values: + return None + for value in self.values: + if value.intvalue == v: + return value + return None + + def getKnownIntValue(self): + """ + If token has a known int value then return that. + Otherwise returns None + """ + if not self.values: + return None + for value in self.values: + if value.valueKind == 'known': + return value.intvalue + return None + + def isUnaryOp(self, op): + return self.astOperand1 and (self.astOperand2 is None) and self.str == op + + def isBinaryOp(self): + return self.astOperand1 and self.astOperand2 + + def forward(self, end=None): + token = self + while token and token != end: + yield token + token = token.next + + def backward(self, start=None): + token = self + while token and token != start: + yield token + token = token.previous + + def astParents(self): + token = self + while token and token.astParent: + token = token.astParent + yield token + + def astTop(self): + top = None + for parent in self.astParents(): + top = parent + return top + + def tokAt(self, n): + tl = self.forward() + if n < 0: + tl = self.backward() + n = -n + for i, t in enumerate(tl): + if i == n: + return t + return None + + def linkAt(self, n): + token = self.tokAt(n) + if token: + return token.link + return None + +class Scope: + """ + Scope. Information about global scope, function scopes, class scopes, inner scopes, etc. + C++ class: https://cppcheck.sourceforge.io/devinfo/doxyoutput/classScope.html + + Attributes + bodyStart The { Token for this scope + bodyEnd The } Token for this scope + className Name of this scope. + For a function scope, this is the function name; + For a class scope, this is the class name. + function If this scope belongs at a function call, this attribute + has the Function information. See the Function class. + functions if this is a Class type, it may have functions defined + nestedIn + type Type of scope: Function, If/Else/For/While/Switch/Global/Enum/Struct/Namespace/Class/Constructor/Destructor + isExecutable True when the type is: Function/If/Else/For/While/Do/Switch/Try/Catch/Unconditional/Lambda + definedType + """ + #symboldatabase.cpp/SymbolDatabase::printXml + + Id = None + bodyStartId = None + bodyStart = None + bodyEndId = None + bodyEnd = None + className = None + functionId = None + function = None + nestedInId = None + nestedIn = None + nestedList = None + type = None + isExecutable = None + varlistId = None + varlist = None + + def __init__(self, element): + self.Id = element.get('id') + self.className = element.get('className') + self.functionId = element.get('function') + self.function = None + self.functions = [] + self.bodyStartId = element.get('bodyStart') + self.bodyStart = None + self.bodyEndId = element.get('bodyEnd') + self.bodyEnd = None + self.nestedInId = element.get('nestedIn') + self.nestedIn = None + self.nestedList = [] + self.type = element.get('type') + self.definedType = element.get('definedType') + self.isExecutable = (self.type in ('Function', 'If', 'Else', 'For', 'While', 'Do', + 'Switch', 'Try', 'Catch', 'Unconditional', 'Lambda')) + + self.varlistId = [] + self.varlist = [] + + def __repr__(self): + attrs = ["Id", "className", "functionId", "bodyStartId", "bodyEndId", + "nestedInId", "nestedIn", "type", "definedType", "isExecutable", "functions"] + return "{}({})".format( + "Scope", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def setId(self, IdMap): + self.bodyStart = IdMap[self.bodyStartId] + self.bodyEnd = IdMap[self.bodyEndId] + self.nestedIn = IdMap[self.nestedInId] + if self.nestedIn: + self.nestedIn.nestedList.append(self) + self.function = IdMap[self.functionId] + for v in self.varlistId: + value = IdMap.get(v) + if value: + self.varlist.append(value) + + +class Function: + """ + Information about a function + C++ class: + https://cppcheck.sourceforge.io/devinfo/doxyoutput/classFunction.html + + Attributes + argument Argument list (dict of argument number and variable) + token Token in function implementation + tokenDef Token in function definition + name + type Constructor/CopyConstructor/MoveConstructor/OperatorEqual/Destructor/Function/Lambda/Unknown + hasVirtualSpecifier Is this function is virtual + isImplicitlyVirtual Is this function is virtual this in the base classes + access Public/Protected/Private + isInlineKeyword Is inline keyword used + isStatic Is this function static + isAttributeNoreturn + overriddenFunction + """ + #symboldatabase.cpp/SymbolDatabase::printXml + + Id = None + argument = None + argumentId = None + token = None + tokenId = None + tokenDef = None + tokenDefId = None + name = None + type = None + access = None + isImplicitlyVirtual = None + hasVirtualSpecifier = None + isInlineKeyword = None + isStatic = None + isAttributeNoreturn = None + overriddenFunction = None + nestedIn = None + + def __init__(self, element, nestedIn): + self.Id = element.get('id') + self.tokenId = element.get('token') + self.tokenDefId = element.get('tokenDef') + self.name = element.get('name') + self.type = element.get('type') + self.hasVirtualSpecifier = element.get('hasVirtualSpecifier', 'false') == 'true' + self.isImplicitlyVirtual = element.get('isImplicitlyVirtual', 'false') == 'true' + self.access = element.get('access') + self.isInlineKeyword = element.get('isInlineKeyword', 'false') == 'true' + self.isStatic = element.get('isStatic', 'false') == 'true' + self.isAttributeNoreturn = element.get('isAttributeNoreturn', 'false') == 'true' + self.overriddenFunction = element.get('overriddenFunction', 'false') == 'true' + self.nestedIn = nestedIn + + self.argument = {} + self.argumentId = {} + + def __repr__(self): + attrs = ["Id", "tokenId", "tokenDefId", "name", "type", "hasVirtualSpecifier", + "isImplicitlyVirtual", "access", "isInlineKeyword", "isStatic", + "isAttributeNoreturn", "overriddenFunction", "nestedIn", "argumentId"] + return "{}({})".format( + "Function", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def setId(self, IdMap): + for argnr, argid in self.argumentId.items(): + self.argument[argnr] = IdMap[argid] + self.token = IdMap.get(self.tokenId, None) + self.tokenDef = IdMap[self.tokenDefId] + + +#todo add class Types: + #symboldatabase.cpp/SymbolDatabase::printXml + + +class Variable: + """ + Information about a variable + C++ class: + https://cppcheck.sourceforge.io/devinfo/doxyoutput/classVariable.html + + Attributes: + nameToken Name token in variable declaration + typeStartToken Start token of variable declaration + typeEndToken End token of variable declaration + access Global/Local/Namespace/Public/Protected/Public/Throw/Argument/Unknown + scope Variable scope + constness Variable constness (same encoding as ValueType::constness) + isArgument Is this variable a function argument? + isGlobal Is this variable a global variable? + isLocal Is this variable a local variable? + isArray Is this variable an array? + isClass Is this variable a class or struct? + isConst Is this variable a const variable? + isExtern Is this variable an extern variable? + isPointer Is this variable a pointer + isReference Is this variable a reference + isStatic Is this variable static? + isVolatile Is this variable volatile? + """ + #symboldatabase.cpp/SymbolDatabase::printXml + + Id = None + nameTokenId = None + nameToken = None + typeStartTokenId = None + typeStartToken = None + typeEndTokenId = None + typeEndToken = None + access = None + scopeId = None + scope = None + isArgument = False + isArray = False + isClass = False + isConst = False + isExtern = False + isGlobal = False + isLocal = False + isPointer = False + isReference = False + isStatic = False + isVolatile = False + constness = 0 + + def __init__(self, element): + self.Id = element.get('id') + self.nameTokenId = element.get('nameToken') + self.nameToken = None + self.typeStartTokenId = element.get('typeStartToken') + self.typeStartToken = None + self.typeEndTokenId = element.get('typeEndToken') + self.typeEndToken = None + self.access = element.get('access') + self.isArgument = (self.access and self.access == 'Argument') + self.isGlobal = (self.access and self.access == 'Global') + self.isLocal = (self.access and self.access == 'Local') + self.scopeId = element.get('scope') + self.scope = None + self.constness = int(element.get('constness',0)) + self.isArray = element.get('isArray') == 'true' + self.isClass = element.get('isClass') == 'true' + self.isConst = element.get('isConst') == 'true' + self.isExtern = element.get('isExtern') == 'true' + self.isPointer = element.get('isPointer') == 'true' + self.isReference = element.get('isReference') == 'true' + self.isStatic = element.get('isStatic') == 'true' + self.isVolatile = element.get('isVolatile') == 'true' + + def __repr__(self): + attrs = ["Id", "nameTokenId", "typeStartTokenId", "typeEndTokenId", + "access", "scopeId", "isArgument", "isArray", "isClass", + "isConst", "isGlobal", "isExtern", "isLocal", "isPointer", + "isReference", "isStatic", "isVolatile", "constness"] + return "{}({})".format( + "Variable", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def setId(self, IdMap): + self.nameToken = IdMap[self.nameTokenId] + self.typeStartToken = IdMap[self.typeStartTokenId] + self.typeEndToken = IdMap[self.typeEndTokenId] + self.scope = IdMap[self.scopeId] + +class Container: + """ + Container class -- information about containers + + Attributes: + array-like-index-op true/false + stdStringLike true/false + """ + #tokenizer.cpp/tokenizer::dump + Id = None + + def __init__(self, element): + self.Id = element.get('id') + self.arrayLikeIndexOp = element.get('array-like-index-op') == 'true' + self.stdStringLike = element.get('std-string-like') == 'true' + +class TypedefInfo: + """ + TypedefInfo class -- information about typedefs + + Attributes: + name name of the typedef + used 0/1 + """ + #tokenizer.cpp/tokenizer::dump + + name = None + used = None + file = None + linenr = None + column = None + + def __init__(self, element): + self.name = element.get('name') + _load_location(self, element) + self.used = (element.get('used') == '1') + +class Value: + """ + Value class + + Attributes: + intvalue integer value + tokvalue token value + floatvalue float value + movedvalue + uninit + containerSize container size + bufferSize buffer size + lifetimeScope Local/Argument/SubFunction/ThisPointer/ThisValue + lifetimeKind Object/SubObject/Lambda/Iterator/Address + symbolicDelta + condition condition where this Value comes from + bound Upper/Lower/Point + valueKind known/possible/impossible/inconclusive + path 0/1/2/3/.. + """ + #token.cpp/token::printValueFlow + + intvalue = None + tokvalue = None + floatvalue = None + containerSize = None + condition = None + valueKind = None + + def isKnown(self): + return self.valueKind and self.valueKind == 'known' + + def isPossible(self): + return self.valueKind and self.valueKind == 'possible' + + def isImpossible(self): + return self.valueKind and self.valueKind == 'impossible' + + def isInconclusive(self): + return self.valueKind and self.valueKind == 'inconclusive' + + def __init__(self, element): + self.intvalue = element.get('intvalue') + if self.intvalue: + self.intvalue = int(self.intvalue) + self._tokvalueId = element.get('tokvalue') + self.floatvalue = element.get('floatvalue') + self.movedvalue = element.get('movedvalue') + self.uninit = element.get('uninit') + self.bufferSize = element.get('buffer-size') + self.containerSize = element.get('container-size') + self.iteratorStart = element.get('iterator-start') + self.iteratorEnd = element.get('iterator-end') + self._lifetimeId = element.get('lifetime') + self.lifetimeScope = element.get('lifetime-scope') + self.lifetimeKind = element.get('lifetime-kind') + self._symbolicId = element.get('symbolic') + self.symbolicDelta = element.get('symbolic-delta') + self.bound = element.get('bound') + self.condition = element.get('condition-line') + if self.condition: + self.condition = int(self.condition) + if element.get('known'): + self.valueKind = 'known' + elif element.get('possible'): + self.valueKind = 'possible' + elif element.get('impossible'): + self.valueKind = 'impossible' + elif element.get('inconclusive'): + self.valueKind = 'inconclusive' + self.path = element.get('path') + + def setId(self, IdMap): + self.tokvalue = IdMap.get(self._tokvalueId) + self.lifetime = IdMap.get(self._lifetimeId) + self.symbolic = IdMap.get(self._symbolicId) + + def __repr__(self): + attrs = ["intvalue", "tokvalue", "floatvalue", "movedvalue", "uninit", + "bufferSize", "containerSize", "condition", "valueKind"] + return "{}({})".format( + "Value", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class ValueFlow: + """ + ValueFlow::Value class + Each possible value has a ValueFlow::Value item. + Each ValueFlow::Value either has a intvalue or tokvalue + C++ class: + https://cppcheck.sourceforge.io/devinfo/doxyoutput/classValueFlow_1_1Value.html + + Attributes: + values Possible values + """ + + Id = None + values = None + + def __init__(self, element): + self.Id = element.get('id') + self.values = [] + + def __repr__(self): + attrs = ["Id", "values"] + return "{}({})".format( + "ValueFlow", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class Suppression: + """ + Suppression class + This class contains a suppression entry to suppress a warning. + + Attributes + errorId The id string of the error to suppress, can be a wildcard + fileName The name of the file to suppress warnings for, can include wildcards + lineNumber The number of the line to suppress warnings from, can be 0 to represent any line + symbolName The name of the symbol to match warnings for, can include wildcards + lineBegin The first line to suppress warnings from + lineEnd The last line to suppress warnings from + suppressionType The type of suppression which is applied (unique = None (default), file, block, blockBegin, blockEnd, macro) + """ + + errorId = None + fileName = None + lineNumber = None + symbolName = None + lineBegin = None + lineEnd = None + suppressionType = None + + def __init__(self, element): + self.errorId = element.get('errorId') + self.fileName = element.get('fileName') + self.lineNumber = element.get('lineNumber') + self.symbolName = element.get('symbolName') + self.lineBegin = element.get('lineBegin') + self.lineEnd = element.get('lineEnd') + self.suppressionType = element.get('type') + + def __repr__(self): + attrs = ["errorId", "fileName", "lineNumber", "symbolName", "lineBegin", "lineEnd","suppressionType"] + return "{}({})".format( + "Suppression", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def isMatch(self, file, line, message, errorId): + # Line Suppression + if ((self.fileName is None or fnmatch(file, self.fileName)) + and (self.suppressionType is None) # Verify use of default suppression type (None = unique) + and (self.lineNumber is not None and int(line) == int(self.lineNumber)) + and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*')) + and fnmatch(errorId, self.errorId)): + return True + # File Suppression + if ((self.fileName is None or fnmatch(file, self.fileName)) + and (self.suppressionType is not None and self.suppressionType == "file") # Verify use of file (global) suppression type + and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*')) + and fnmatch(errorId, self.errorId)): + return True + # Block Suppression Mode + if ((self.fileName is None or fnmatch(file, self.fileName)) + and (self.suppressionType is not None and self.suppressionType == "block") # Type for Block suppression + and (self.lineBegin is not None and int(line) > int(self.lineBegin)) # Code Match is between the Block suppression + and (self.lineEnd is not None and int(line) < int(self.lineEnd)) # Code Match is between the Block suppression + and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*')) + and fnmatch(errorId, self.errorId)): + return True + # Other Suppression (Globaly set via suppression file or cli command) + if ((self.fileName is None or fnmatch(file, self.fileName)) + and (self.suppressionType is None) + and (self.symbolName is None or fnmatch(message, '*'+self.symbolName+'*')) + and fnmatch(errorId, self.errorId)): + return True + return False + + +class Configuration: + """ + Configuration class + This class contains the directives, tokens, scopes, functions, + variables, value flows, and suppressions for one configuration. + + Attributes: + name Name of the configuration, "" for default + directives List of Directive items + macro_usage List of used macros + preprocessor_if_conditions List of preprocessor if conditions that was evaluated during preprocessing + tokenlist List of Token items + scopes List of Scope items + containers List of Container items + functions List of Function items + variables List of Variable items + valueflow List of ValueFlow values + standards List of Standards values + """ + + name = '' + directives = [] + macro_usage = [] + preprocessor_if_conditions = [] + tokenlist = [] + scopes = [] + containers = [] + functions = [] + variables = [] + typedefInfo = [] + valueflow = [] + standards = None + clang_warnings = [] + + def __init__(self, name): + self.name = name + self.directives = [] + self.macro_usage = [] + self.preprocessor_if_conditions = [] + self.tokenlist = [] + self.scopes = [] + self.containers = [] + self.functions = [] + self.variables = [] + self.typedefInfo = [] + self.valueflow = [] + self.standards = Standards() + self.clang_warnings = [] + + def set_tokens_links(self): + """Set next/previous links between tokens.""" + prev = None + for token in self.tokenlist: + token.previous = prev + if prev: + prev.next = token + prev = token + + def set_id_map(self, arguments): + IdMap = {None: None, '0': None, '00000000': None, '0000000000000000': None, '0x0': None} + for token in self.tokenlist: + IdMap[token.Id] = token + for scope in self.scopes: + IdMap[scope.Id] = scope + for container in self.containers: + IdMap[container.Id] = container + for function in self.functions: + IdMap[function.Id] = function + for variable in self.variables: + IdMap[variable.Id] = variable + for variable in arguments: + IdMap[variable.Id] = variable + for values in self.valueflow: + IdMap[values.Id] = values.values + for token in self.tokenlist: + token.setId(IdMap) + for scope in self.scopes: + scope.setId(IdMap) + #for container in self.containers: + # container.setId(IdMap) + for function in self.functions: + function.setId(IdMap) + for variable in self.variables: + variable.setId(IdMap) + for variable in arguments: + variable.setId(IdMap) + + def setIdMap(self, functions_arguments): + """Set relationships between objects stored in this configuration. + :param functions_arguments: List of Variable objects which are function arguments + """ + self.set_tokens_links() + self.set_id_map(functions_arguments) + + +class Platform: + """ + Platform class + This class contains type sizes + + Attributes: + name Name of the platform: unspecified/native/win32A/win32W/win64/unix32/unix64/platformFile + char_bit CHAR_BIT value + short_bit SHORT_BIT value + int_bit INT_BIT value + long_bit LONG_BIT value + long_long_bit LONG_LONG_BIT value + pointer_bit POINTER_BIT value + """ + + name = '' + char_bit = 0 + short_bit = 0 + int_bit = 0 + long_bit = 0 + long_long_bit = 0 + pointer_bit = 0 + + def __init__(self, platformnode): + self.name = platformnode.get('name') + self.char_bit = int(platformnode.get('char_bit')) + self.short_bit = int(platformnode.get('short_bit')) + self.int_bit = int(platformnode.get('int_bit')) + self.long_bit = int(platformnode.get('long_bit')) + self.long_long_bit = int(platformnode.get('long_long_bit')) + self.pointer_bit = int(platformnode.get('pointer_bit')) + + def __repr__(self): + attrs = ["name", "char_bit", "short_bit", "int_bit", + "long_bit", "long_long_bit", "pointer_bit"] + return "{}({})".format( + "Platform", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class Standards: + """ + Standards class + This class contains versions of standards that were used for the cppcheck + + Attributes: + c C Standard used + cpp C++ Standard used + posix If Posix was used + """ + + c = "" + cpp = "" + posix = False + + def set_c(self, node): + self.c = node.get("version") + + def set_cpp(self, node): + self.cpp = node.get("version") + + def set_posix(self, node): + self.posix = node.get("posix") is not None + + def __repr__(self): + attrs = ["c", "cpp", "posix"] + return "{}({})".format( + "Standards", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class CppcheckData: + """ + Class that makes cppcheck dump data available + Contains a list of Configuration instances + + Attributes: + filename Path to Cppcheck dump file + rawTokens List of rawToken elements + suppressions List of Suppressions + files Source files for elements occurred in this configuration + + To iterate through all configurations use such code: + @code + data = cppcheckdata.parsedump(...) + for cfg in data.configurations: + print('cfg: ' + cfg.name) + @endcode + + To iterate through all tokens in each configuration use such code: + @code + data = cppcheckdata.parsedump(...) + for cfg in data.configurations: + print('cfg: ' + cfg.name) + code = '' + for token in cfg.tokenlist: + code = code + token.str + ' ' + print(' ' + code) + @endcode + + To iterate through all scopes (functions, types, etc) use such code: + @code + data = cppcheckdata.parsedump(...) + for cfg in data.configurations: + print('cfg: ' + cfg.name) + for scope in cfg.scopes: + print(' type:' + scope.type + ' name:' + scope.className) + @endcode + """ + + def __init__(self, filename): + """ + :param filename: Path to Cppcheck dump file + """ + self.language = None + self.filename = filename + self.rawTokens = [] + self.platform = None + self.suppressions = [] + self.files = [] # source files for elements occurred in this configuration + + platform_done = False + rawtokens_done = False + suppressions_done = False + + # Parse general configuration options from node + # We intentionally don't clean node resources here because we + # want to serialize in memory only small part of the XML tree. + for event, node in ElementTree.iterparse(self.filename, events=('start', 'end')): + if platform_done and rawtokens_done and suppressions_done: + break + if node.tag == 'dumps': + self.language = node.get('language') + if node.tag == 'platform' and event == 'start': + self.platform = Platform(node) + platform_done = True + elif node.tag == 'rawtokens' and event == 'end': + for rawtokens_node in node: + if rawtokens_node.tag == 'file': + self.files.append(rawtokens_node.get('name')) + elif rawtokens_node.tag == 'tok': + tok = Token(rawtokens_node) + tok.file = self.files[int(rawtokens_node.get('fileIndex'))] + self.rawTokens.append(tok) + rawtokens_done = True + elif node.tag == 'suppressions' and event == 'end': + for suppressions_node in node: + self.suppressions.append(Suppression(suppressions_node)) + suppressions_done = True + + global current_dumpfile_suppressions + current_dumpfile_suppressions = self.suppressions + + # Set links between rawTokens. + for i in range(len(self.rawTokens)-1): + self.rawTokens[i+1].previous = self.rawTokens[i] + self.rawTokens[i].next = self.rawTokens[i+1] + + @property + def configurations(self): + """ + Return the list of all available Configuration objects. + """ + return list(self.iterconfigurations()) + + def iterconfigurations(self): + """ + Create and return iterator for the available Configuration objects. + The iterator loops over all Configurations in the dump file tree, in document order. + """ + cfg = None + cfg_arguments = [] # function arguments for Configuration node initialization + cfg_function = None + cfg_valueflow = None + + # Iterating in a . + iter_scope_varlist = False + + # Iterating + iter_typedef_info = False + + # Iterating + iter_directive = False + + # Use iterable objects to traverse XML tree for dump files incrementally. + # Iterative approach is required to avoid large memory consumption. + # Calling .clear() is necessary to let the element be garbage collected. + for event, node in ElementTree.iterparse(self.filename, events=('start', 'end')): + # Serialize new configuration node + if node.tag == 'dump': + if event == 'start': + cfg = Configuration(node.get('cfg')) + continue + if event == 'end': + cfg.setIdMap(cfg_arguments) + yield cfg + cfg = None + cfg_arguments = [] + + elif node.tag == 'clang-warning' and event == 'start': + cfg.clang_warnings.append({'file': node.get('file'), + 'line': int(node.get('line')), + 'column': int(node.get('column')), + 'message': node.get('message')}) + # Parse standards + elif node.tag == "standards" and event == 'start': + continue + elif node.tag == 'c' and event == 'start': + cfg.standards.set_c(node) + elif node.tag == 'cpp' and event == 'start': + cfg.standards.set_cpp(node) + elif node.tag == 'posix' and event == 'start': + cfg.standards.set_posix(node) + + # Parse directives list + elif node.tag == 'directive': + if event == 'start': + cfg.directives.append(Directive(node)) + iter_directive = True + elif event == 'end': + iter_directive = False + # Parse macro usage + elif node.tag == 'macro' and event == 'start': + cfg.macro_usage.append(MacroUsage(node)) + + # Preprocessor #if/#elif condition + elif node.tag == "if-cond" and event == 'start': + cfg.preprocessor_if_conditions.append(PreprocessorIfCondition(node)) + + # Parse tokens + elif node.tag == 'tokenlist' and event == 'start': + continue + elif node.tag == 'token' and event == 'start' and not iter_directive and not iter_typedef_info: + cfg.tokenlist.append(Token(node)) + + # Parse scopes + elif node.tag == 'scopes' and event == 'start': + continue + elif node.tag == 'scope' and event == 'start': + cfg.scopes.append(Scope(node)) + elif node.tag == 'varlist': + if event == 'start': + iter_scope_varlist = True + elif event == 'end': + iter_scope_varlist = False + + # Parse functions + elif node.tag == 'functionList' and event == 'start': + continue + elif node.tag == 'function': + if event == 'start': + cfg_function = Function(node, cfg.scopes[-1]) + continue + if event == 'end': + cfg.functions.append(cfg_function) + cfg_function = None + + # Parse function arguments + elif node.tag == 'arg' and event == 'start': + arg_nr = int(node.get('nr')) + arg_variable_id = node.get('variable') + cfg_function.argumentId[arg_nr] = arg_variable_id + + # Parse variables + elif node.tag == 'var' and event == 'start': + if iter_scope_varlist: + cfg.scopes[-1].varlistId.append(node.get('id')) + else: + var = Variable(node) + if var.nameTokenId: + cfg.variables.append(var) + else: + cfg_arguments.append(var) + + # Parse containers + elif node.tag == 'containers' and event == 'start': + continue + elif node.tag == 'container' and event == 'start': + cfg.containers.append(Container(node)) + + # Parse typedef info + elif node.tag == 'typedef-info': + iter_typedef_info = (event == 'start') + elif iter_typedef_info and node.tag == 'info' and event == 'start': + cfg.typedefInfo.append(TypedefInfo(node)) + + # Parse template-token + #elif node.tag == 'TokenAndName' and event == 'start': #todo add processing of containers + # cfg.containers.append(Container(node)) + + # Parse valueflows (list of values) + elif node.tag == 'valueflow' and event == 'start': + continue + elif node.tag == 'values': + if event == 'start': + cfg_valueflow = ValueFlow(node) + continue + if event == 'end': + cfg.valueflow.append(cfg_valueflow) + cfg_valueflow = None + + # Parse values + elif node.tag == 'value' and event == 'start': + cfg_valueflow.values.append(Value(node)) + + # Remove links to the sibling nodes + node.clear() + + def __repr__(self): + attrs = ["configurations", "platform"] + return "{}({})".format( + "CppcheckData", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +# Get function arguments +def getArgumentsRecursive(tok, arguments): + if tok is None: + return + if tok.str == ',': + getArgumentsRecursive(tok.astOperand1, arguments) + getArgumentsRecursive(tok.astOperand2, arguments) + else: + arguments.append(tok) + + +def getArguments(ftok): + if (not ftok.isName) or (ftok.next is None) or ftok.next.str != '(': + return None + args = [] + getArgumentsRecursive(ftok.next.astOperand2, args) + return args + + +def parsedump(filename): + """ + parse a cppcheck dump file + """ + return CppcheckData(filename) + + +def astIsFloat(token): + """ + Check if type of ast node is float/double + """ + + if not token: + return False + if token.str == '.': + return astIsFloat(token.astOperand2) + if token.str in '+-*/%': + return astIsFloat(token.astOperand1) or astIsFloat(token.astOperand2) + if not token.variable: + # float literal? + if token.str[0].isdigit(): + for c in token.str: + if c == 'f' or c == '.' or c == 'E': + return True + return False + typeToken = token.variable.typeStartToken + endToken = token.variable.typeEndToken + while typeToken != endToken: + if typeToken.str == 'float' or typeToken.str == 'double': + return True + typeToken = typeToken.next + if typeToken.str == 'float' or typeToken.str == 'double': + return True + return False + + +class CppCheckFormatter(argparse.HelpFormatter): + """ + Properly formats multiline argument helps + """ + def _split_lines(self, text, width): + # this is the RawTextHelpFormatter._split_lines + if text.startswith('R|'): + return text[2:].splitlines() + return argparse.HelpFormatter._split_lines(self, text, width) + + +def ArgumentParser(): + """ + Returns an argparse argument parser with an already-added + argument definition for -t/--template + """ + parser = argparse.ArgumentParser(formatter_class=CppCheckFormatter) + parser.add_argument('-t', '--template', metavar='', + default='{callstack}: ({severity}) {message}', + help="R|Format the error messages. E.g.\n" + "'{file}:{line},{severity},{id},{message}' or\n" + "'{file}({line}):({severity}) {message}' or\n" + "'{callstack} {message}'\n" + "Pre-defined templates: gcc, vs, edit") + parser.add_argument("dumpfile", nargs='*', + help="Path of dump files from cppcheck.") + parser.add_argument("--cli", + help="Addon is executed from Cppcheck", + action="store_true") + parser.add_argument("--file-list", metavar='', + default=None, + help="file list in a text file") + parser.add_argument("-q", "--quiet", + help='do not print "Checking ..." lines', + action="store_true") + return parser + + +def get_files(args): + """Return dump_files, ctu_info_files""" + all_files = args.dumpfile + if args.file_list: + with open(args.file_list, 'rt') as f: + for line in f.readlines(): + all_files.append(line.rstrip()) + dump_files = [] + ctu_info_files = [] + for f in all_files: + if f.endswith('.ctu-info'): + ctu_info_files.append(f) + else: + dump_files.append(f) + return dump_files, ctu_info_files + +def simpleMatch(token, pattern): + for p in pattern.split(' '): + if not token or token.str != p: + return False + token = token.next + return True + +patterns = { + '%any%': lambda tok: tok, + '%assign%': lambda tok: tok if tok.isAssignmentOp else None, + '%comp%': lambda tok: tok if tok.isComparisonOp else None, + '%name%': lambda tok: tok if tok.isName else None, + '%op%': lambda tok: tok if tok.isOp else None, + '%or%': lambda tok: tok if tok.str == '|' else None, + '%oror%': lambda tok: tok if tok.str == '||' else None, + '%var%': lambda tok: tok if tok.variable else None, + '(*)': lambda tok: tok.link if tok.str == '(' else None, + '[*]': lambda tok: tok.link if tok.str == '[' else None, + '{*}': lambda tok: tok.link if tok.str == '{' else None, + '<*>': lambda tok: tok.link if tok.str == '<' and tok.link else None, +} + +def match_atom(token, p): + if not token: + return None + if not p: + return None + if token.str == p: + return token + if p in ['!', '|', '||', '%', '!=', '*']: + return None + if p in patterns: + return patterns[p](token) + if '|' in p: + for x in p.split('|'): + t = match_atom(token, x) + if t: + return t + elif p.startswith('!!'): + t = match_atom(token, p[2:]) + if not t: + return token + elif p.startswith('**'): + a = p[2:] + t = token + while t: + if match_atom(t, a): + return t + if t.link and t.str in ['(', '[', '<', '{']: + t = t.link + t = t.next + return None + +class MatchResult: + def __init__(self, matches, bindings=None, keys=None): + self.__dict__.update(bindings or {}) + self._matches = matches + self._keys = keys or [] + + def __bool__(self): + return self._matches + + def __nonzero__(self): + return self._matches + + def __getattr__(self, k): + if k in self._keys: + return None + raise AttributeError + +def bind_split(s): + if '@' in s: + p = s.partition('@') + return (p[0], p[2]) + return (s, None) + +def match(token, pattern): + if not pattern: + return MatchResult(False) + end = None + bindings = {} + words = [bind_split(word) for word in pattern.split()] + for p, b in words: + t = match_atom(token, p) + if b: + bindings[b] = token + if not t: + return MatchResult(False, keys=[xx for pp, xx in words]+['end']) + end = t + token = t.next + bindings['end'] = end + return MatchResult(True, bindings=bindings) + +def get_function_call_name_args(token): + """Get function name and arguments for function call + name, args = get_function_call_name_args(tok) + """ + if token is None: + return None, None + if not token.isName or not token.scope.isExecutable: + return None, None + if not simpleMatch(token.next, '('): + return None, None + if token.function: + nametok = token.function.token + if nametok is None: + nametok = token.function.tokenDef + if token in (token.function.token, token.function.tokenDef): + return None, None + name = nametok.str + while nametok.previous and nametok.previous.previous and nametok.previous.str == '::' and nametok.previous.previous.isName: + name = nametok.previous.previous.str + '::' + name + nametok = nametok.previous.previous + scope = token.function.nestedIn + while scope: + if scope.className: + name = scope.className + '::' + name + scope = scope.nestedIn + else: + nametok = token + name = nametok.str + while nametok.previous and nametok.previous.previous and nametok.previous.str == '::' and nametok.previous.previous.isName: + name = nametok.previous.previous.str + '::' + name + nametok = nametok.previous.previous + return name, getArguments(token) + +def is_suppressed(location, message, errorId): + for suppression in current_dumpfile_suppressions: + if suppression.isMatch(location.file, location.linenr, message, errorId): + return True + return False + +def log_checker(message, addon): + if '--cli' in sys.argv: + msg = { 'addon': addon, + 'severity': 'none', + 'message': message, + 'errorId': 'logChecker'} + sys.stdout.write(json.dumps(msg) + '\n') + +def reportError(location, severity, message, addon, errorId, extra='', columnOverride=None): + if '--cli' in sys.argv: + msg = { 'file': location.file, + 'linenr': location.linenr, + 'column': location.column if columnOverride is None else columnOverride, + 'severity': severity, + 'message': message, + 'addon': addon, + 'errorId': errorId, + 'extra': extra} + sys.stdout.write(json.dumps(msg) + '\n') + else: + if is_suppressed(location, message, '%s-%s' % (addon, errorId)): + return + loc = '[%s:%i]' % (location.file, location.linenr) + if len(extra) > 0: + message += ' (' + extra + ')' + sys.stderr.write('%s (%s) %s [%s-%s]\n' % (loc, severity, message, addon, errorId)) + global EXIT_CODE + EXIT_CODE = 1 + +def reportSummary(dumpfile, summary_type, summary_data): + msg = {'summary': summary_type, 'data': summary_data} + if '--cli' in sys.argv: + sys.stdout.write(json.dumps(msg) + '\n') + else: + # dumpfile ends with ".dump" + ctu_info_file = dumpfile[:-4] + "ctu-info" + with open(ctu_info_file, 'at') as f: + f.write(json.dumps(msg) + '\n') + + +def get_path_premium_addon(): + p = pathlib.Path(sys.argv[0]).parent.parent + + for ext in ('.exe', ''): + p1 = os.path.join(p, 'premiumaddon' + ext) + p2 = os.path.join(p, 'cppcheck' + ext) + if os.path.isfile(p1) and os.path.isfile(p2): + return p1 + return None + + +def cmd_output(cmd): + with subprocess.Popen(cmd, stdout=subprocess.PIPE, stderr=subprocess.PIPE) as p: + stdout, stderr = p.communicate() + rc = p.returncode + out = stdout + if rc == 1 and len(stderr) > 2: + out = stderr + return out.decode(encoding='utf-8', errors='ignore') diff --git a/micromamba_root/share/Cppcheck/addons/findcasts.py b/micromamba_root/share/Cppcheck/addons/findcasts.py new file mode 100644 index 0000000000000000000000000000000000000000..d4842b229a6541dd7a6fc237feb6b3f25e0837e7 --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/findcasts.py @@ -0,0 +1,32 @@ +#!/usr/bin/env python3 +# +# Locate casts in the code +# + +import cppcheck + +@cppcheck.checker +def cast(cfg, data): + for token in cfg.tokenlist: + if token.str != '(' or not token.astOperand1 or token.astOperand2: + continue + + # Is it a lambda? + if token.astOperand1.str == '{': + continue + + # we probably have a cast.. if there is something inside the parentheses + # there is a cast. Otherwise this is a function call. + typetok = token.next + if not typetok.isName: + continue + + # cast number => skip output + if token.astOperand1.isNumber: + continue + + # void cast => often used to suppress compiler warnings + if typetok.str == 'void': + continue + + cppcheck.reportError(token, 'information', 'found a cast') diff --git a/micromamba_root/share/Cppcheck/addons/misc.py b/micromamba_root/share/Cppcheck/addons/misc.py new file mode 100644 index 0000000000000000000000000000000000000000..670d6152ff53b5c103c7d1e554f7aa922d544e7a --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/misc.py @@ -0,0 +1,163 @@ +#!/usr/bin/env python3 +# +# Misc: Uncategorized checks that might be moved to some better addon later +# +# Example usage of this addon (scan a sourcefile main.cpp) +# cppcheck --dump main.cpp +# python misc.py main.cpp.dump + +import cppcheckdata +import sys +import re + +DEBUG = ('-debug' in sys.argv) +VERIFY = ('-verify' in sys.argv) +VERIFY_EXPECTED = [] +VERIFY_ACTUAL = [] + +def reportError(token, severity, msg, id): + if id == 'debug' and not DEBUG: + return + if VERIFY: + VERIFY_ACTUAL.append(str(token.linenr) + ':' + id) + else: + cppcheckdata.reportError(token, severity, msg, 'misc', id) + +def simpleMatch(token, pattern): + return cppcheckdata.simpleMatch(token, pattern) + +# Get function arguments +def getArgumentsRecursive(tok, arguments): + if tok is None: + return + if tok.str == ',': + getArgumentsRecursive(tok.astOperand1, arguments) + getArgumentsRecursive(tok.astOperand2, arguments) + else: + arguments.append(tok) + +def getArguments(ftok): + arguments = [] + getArgumentsRecursive(ftok.astOperand2, arguments) + return arguments + +def isStringLiteral(tokenString): + return tokenString.startswith('"') + +# check data +def stringConcatInArrayInit(data): + # Get all string macros + stringMacros = [] + for cfg in data.iterconfigurations(): + for directive in cfg.directives: + res = re.match(r'#define[ ]+([A-Za-z0-9_]+)[ ]+".*', directive.str) + if res: + macroName = res.group(1) + if macroName not in stringMacros: + stringMacros.append(macroName) + + # Check code + arrayInit = False + for i in range(len(data.rawTokens)): + if i < 2: + continue + tok1 = data.rawTokens[i-2].str + tok2 = data.rawTokens[i-1].str + tok3 = data.rawTokens[i-0].str + if tok3 == '}': + arrayInit = False + elif tok1 == ']' and tok2 == '=' and tok3 == '{': + arrayInit = True + elif arrayInit and (tok1 in [',', '{']): + isString2 = (isStringLiteral(tok2) or (tok2 in stringMacros)) + isString3 = (isStringLiteral(tok3) or (tok3 in stringMacros)) + if isString2 and isString3: + reportError(data.rawTokens[i], 'style', 'String concatenation in array initialization, missing comma?', 'stringConcatInArrayInit') + + +def implicitlyVirtual(data): + for cfg in data.iterconfigurations(): + for function in cfg.functions: + if function.isImplicitlyVirtual is None: + continue + if not function.isImplicitlyVirtual: + continue + reportError(function.tokenDef, 'style', 'Function \'' + function.name + '\' overrides base class function but is not marked with \'virtual\' keyword.', 'implicitlyVirtual') + +def ellipsisStructArg(data): + for cfg in data.iterconfigurations(): + for tok in cfg.tokenlist: + if tok.str != '(': + continue + if tok.astOperand1 is None or tok.astOperand2 is None: + continue + if tok.astOperand2.str != ',': + continue + if tok.scope.type in ['Global', 'Class']: + continue + if tok.astOperand1.function is None: + continue + for argnr, argvar in tok.astOperand1.function.argument.items(): + if argnr < 1: + continue + if not simpleMatch(argvar.typeStartToken, '...'): + continue + callArgs = getArguments(tok) + for i in range(argnr-1, len(callArgs)): + valueType = callArgs[i].valueType + if valueType is None: + argStart = callArgs[i].previous + while argStart.str != ',': + if argStart.str == ')': + argStart = argStart.link + argStart = argStart.previous + argEnd = callArgs[i] + while argEnd.str != ',' and argEnd.str != ')': + if argEnd.str == '(': + argEnd = argEnd.link + argEnd = argEnd.next + expression = '' + argStart = argStart.next + while argStart != argEnd: + expression = expression + argStart.str + argStart = argStart.next + reportError(tok, 'debug', 'Bailout, unknown argument type for argument \'' + expression + '\'.', 'debug') + continue + if valueType.pointer > 0: + continue + if valueType.type != 'record' and valueType.type != 'container': + continue + reportError(tok, 'style', 'Passing record to ellipsis function \'' + tok.astOperand1.function.name + '\'.', 'ellipsisStructArg') + break + +for arg in sys.argv[1:]: + if arg in ['-debug', '-verify', '--cli']: + continue + + print("Checking %s..." % arg) + data = cppcheckdata.CppcheckData(arg) + + if VERIFY: + VERIFY_ACTUAL = [] + VERIFY_EXPECTED = [] + for tok in data.rawTokens: + if tok.str.startswith('//'): + for word in tok.str[2:].split(' '): + if word in ['stringConcatInArrayInit', 'implicitlyVirtual', 'ellipsisStructArg']: + VERIFY_EXPECTED.append(str(tok.linenr) + ':' + word) + + stringConcatInArrayInit(data) + implicitlyVirtual(data) + ellipsisStructArg(data) + + if VERIFY: + for expected in VERIFY_EXPECTED: + if expected not in VERIFY_ACTUAL: + print('Expected but not seen: ' + expected) + sys.exit(1) + for actual in VERIFY_ACTUAL: + if actual not in VERIFY_EXPECTED: + print('Not expected: ' + actual) + sys.exit(1) + +sys.exit(cppcheckdata.EXIT_CODE) diff --git a/micromamba_root/share/Cppcheck/addons/misra.py b/micromamba_root/share/Cppcheck/addons/misra.py new file mode 100644 index 0000000000000000000000000000000000000000..cea5596d47dc5b91c9786bd52b43b8c3c7fcfadb --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/misra.py @@ -0,0 +1,5153 @@ +#!/usr/bin/env python3 +# +# MISRA C 2012 checkers (including amendment 1 and 2) +# +# Example usage of this addon (scan a sourcefile main.cpp) +# cppcheck --dump main.cpp +# python misra.py --rule-texts= main.cpp.dump +# +# Limitations: This addon is released as open source. We are not allowed by +# MISRA to distribute rule texts openly. +# +# The MISRA standard documents may be obtained from https://www.misra.org.uk +# +# Total number of rules: 143 + +from __future__ import print_function + +import cppcheckdata +import itertools +import json +import sys +import re +import os +import argparse +import string +import copy + +try: + from itertools import izip as zip +except ImportError: + pass + +import misra_9 + +def grouped(iterable, n): + """s -> (s0,s1,s2,...sn-1), (sn,sn+1,sn+2,...s2n-1), (s2n,s2n+1,s2n+2,...s3n-1), ...""" + return zip(*[iter(iterable)] * n) + + +INT_TYPES = ['bool', 'char', 'short', 'int', 'long', 'long long'] + + +STDINT_TYPES = ['%s%d_t' % (n, v) for n, v in itertools.product( + ['int', 'uint', 'int_least', 'uint_least', 'int_fast', 'uint_fast'], + [8, 16, 32, 64])] + +STDINT_H_DEFINES_MIN = ['%s%d_MIN' % (n, v) for n, v in itertools.product( + ['INT', 'INT_LEAST', 'INT_FAST',], + [8, 16, 32, 64])] + +STDINT_H_DEFINES_MAX = ['%s%d_MAX' % (n, v) for n, v in itertools.product( + ['INT', 'UINT','INT_LEAST','UINT_LEAST', 'INT_FAST', 'UINT_FAST',], + [8, 16, 32, 64])] + +STDINT_H_DEFINES_C = ['%s%d_C' % (n, v) for n, v in itertools.product( + ['INT', 'UINT'], + [8, 16, 32, 64])] + + +INTTYPES_H_DEFINES = ['%s%d' % (n, v) for n, v in itertools.product( + ['PRId', 'PRIi', 'PRIo', 'PRIu', 'PRIx', 'PRIX', 'SCNd', + 'SCNi', 'SCNo', 'SCNu', 'SCNx', 'PRIdLEAST', 'PRIiLEAST', + 'PRIoLEAST', 'PRIuLEAST', 'PRIxLEAST', 'PRIXLEAST', + 'SCNdLEAST', 'SCNiLEAST', 'SCNoLEAST', 'SCNuLEAST', + 'SCNxLEAST', 'PRIdFAST', 'PRIiFAST', 'PRIoFAST', 'PRIuFAST', + 'PRIxFAST', 'PRIXFAST', 'SCNdFAST', 'SCNiFAST', 'SCNoFAST', + 'SCNuFAST', 'SCNxFAST', ], + [8, 16, 32, 64])] +typeBits = { + 'CHAR': None, + 'SHORT': None, + 'INT': None, + 'LONG': None, + 'LONG_LONG': None, + 'POINTER': None +} + + +def isUnsignedType(ty): + return ty == 'unsigned' or ty.startswith('uint') + + +def simpleMatch(token, pattern): + return cppcheckdata.simpleMatch(token, pattern) + + +def rawlink(rawtoken): + if rawtoken.str == '}': + indent = 0 + while rawtoken: + if rawtoken.str == '}': + indent = indent + 1 + elif rawtoken.str == '{': + indent = indent - 1 + if indent == 0: + break + rawtoken = rawtoken.previous + else: + rawtoken = None + return rawtoken + + +# Identifiers described in Section 7 "Library" of C90 Standard +# Based on ISO/IEC9899:1990 Annex D -- Library summary and +# Annex E -- Implementation limits. +C90_STDLIB_IDENTIFIERS = { + # D.1 Errors + 'errno.h': ['EDOM', 'ERANGE', 'errno'], + # D.2 Common definitions + 'stddef.h': ['NULL', 'offsetof', 'ptrdiff_t', 'size_t', 'wchar_t'], + # D.3 Diagnostics + 'assert.h': ['NDEBUG', 'assert'], + # D.4 Character handling + 'ctype.h': [ + 'isalnum', 'isalpha', 'isblank', 'iscntrl', 'isdigit', + 'isgraph', 'islower', 'isprint', 'ispunct', 'isspace', + 'isupper', 'isxdigit', 'tolower', 'toupper', + ], + # D.5 Localization + 'locale.h': [ + 'LC_ALL', 'LC_COLLATE', 'LC_CTYPE', 'LC_MONETARY', + 'LC_NUMERIC', 'LC_TIME', 'NULL', 'lconv', + 'setlocale', 'localeconv', + ], + # D.6 Mathematics + 'math.h': [ + 'HUGE_VAL', 'acos', 'asin' , 'atan2', 'cos', 'sin', 'tan', 'cosh', + 'sinh', 'tanh', 'exp', 'frexp', 'ldexp', 'log', 'loglO', 'modf', + 'pow', 'sqrt', 'ceil', 'fabs', 'floor', 'fmod', + ], + # D.7 Nonlocal jumps + 'setjmp.h': ['jmp_buf', 'setjmp', 'longjmp'], + # D.8 Signal handling + 'signal.h': [ + 'sig_atomic_t', 'SIG_DFL', 'SIG_ERR', 'SIG_IGN', 'SIGABRT', 'SIGFPE', + 'SIGILL', 'SIGINT', 'SIGSEGV', 'SIGTERM', 'signal', 'raise', + ], + # D.9 Variable arguments + 'stdarg.h': ['va_list', 'va_start', 'va_arg', 'va_end'], + # D.10 Input/output + 'stdio.h': [ + '_IOFBF', '_IOLBF', '_IONBF', 'BUFSIZ', 'EOF', 'FILE', 'FILENAME_MAX', + 'FOPEN_MAX', 'fpos_t', 'L_tmpnam', 'NULL', 'SEEK_CUR', 'SEEK_END', + 'SEEK_SET', 'size_t', 'stderr', 'stdin', 'stdout', 'TMP_MAX', + 'remove', 'rename', 'tmpfile', 'tmpnam', 'fclose', 'fflush', 'fopen', + 'freopen', 'setbuf', 'setvbuf', 'fprintf', 'fscanf', 'printf', + 'scanf', 'sprintf', 'sscanf', 'vfprintf', 'vprintf', 'vsprintf', + 'fgetc', 'fgets', 'fputc', 'fputs', 'getc', 'getchar', 'gets', 'putc', + 'putchar', 'puts', 'ungetc', 'fread', 'fwrite', 'fgetpos', 'fseek', + 'fsetpos', 'rewind', 'clearerr', 'feof', 'ferror', 'perror', + ], + # D.11 General utilities + 'stdlib.h': [ + 'EXIT_FAILURE', 'EXIT_SUCCESS', 'MB_CUR_MAX', 'NULL', 'RAND_MAX', + 'div_t', 'ldiv_t', 'wchar_t', 'atof', 'atoi', 'strtod', 'rand', + 'srand', 'calloc', 'free', 'malloc', 'realloc', 'abort', 'atexit', + 'exit', 'getenv', 'system', 'bsearch', 'qsort', 'abs', 'div', 'ldiv', + 'mblen', 'mbtowc', 'wctomb', 'mbstowcs', 'wcstombs', + ], + # D.12 String handling + 'string.h': [ + 'NULL', 'size_t', 'memcpy', 'memmove', 'strcpy', 'strncpy', 'strcat', + 'strncat', 'memcmp', 'strcmp', 'strcoll', 'strncmp', 'strxfrm', + 'memchr', 'strchr', 'strcspn', 'strpbrk', 'strrchr', 'strspn', + 'strstr', 'strtok', 'memset', 'strerror', 'strlen', + ], + # D.13 Date and time + 'time.h': [ + 'CLK_TCK', 'NULL', 'clock_t', 'time_t', 'size_t', 'tm', 'clock', + 'difftime', 'mktime', 'time', 'asctime', 'ctime', 'gmtime', + 'localtime', 'strftime', + ], + # Annex E: Implementation limits + 'limits.h': [ + 'CHAR_BIT', 'SCHAR_MIN', 'SCHAR_MAX', 'UCHAR_MAX', 'CHAR_MIN', + 'CHAR_MAX', 'MB_LEN_MAX', 'SHRT_MIN', 'SHRT_MAX', 'USHRT_MAX', + 'INT_MIN', 'INT_MAX', 'UINT_MAX', 'LONG_MIN', 'LONG_MAX', 'ULONG_MAX', + ], + 'float.h': [ + 'FLT_ROUNDS', 'FLT_RADIX', 'FLT_MANT_DIG', 'DBL_MANT_DIG', + 'LDBL_MANT_DIG', 'DECIMAL_DIG', 'FLT_DIG', 'DBL_DIG', 'LDBL_DIG', + 'DBL_MIN_EXP', 'LDBL_MIN_EXP', 'FLT_MIN_10_EXP', 'DBL_MIN_10_EXP', + 'LDBL_MIN_10_EXP', 'FLT_MAX_EXP', 'DBL_MAX_EXP', 'LDBL_MAX_EXP', + 'FLT_MAX_10_EXP', 'DBL_MAX_10_EXP', 'LDBL_MAX_10_EXP', 'FLT_MAX', + 'DBL_MAX', 'LDBL_MAX', 'FLT_MIN', 'DBL_MIN', 'LDBL_MIN', + 'FLT_EPSILON', 'DBL_EPSILON', 'LDBL_EPSILON' + ], +} + + +# Identifiers described in Section 7 "Library" of C99 Standard +# Based on ISO/IEC 9899:1999 (E) Annex B -- Library summary +# (https://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf) +C99_STDLIB_IDENTIFIERS = { + # B.1 Diagnostics + 'assert.h': C90_STDLIB_IDENTIFIERS['assert.h'], + # B.2 Complex + 'complex.h': [ + 'complex', 'imaginary', 'I', '_Complex_I', '_Imaginary_I', + 'CX_LIMITED_RANGE', + 'cacos', 'cacosf', 'cacosl', + 'casin', 'casinf', 'casinl', + 'catan', 'catanf', 'catanl', + 'ccos', 'ccosf', 'ccosl', + 'csin', 'csinf', 'csinl', + 'ctan', 'ctanf', 'ctanl', + 'cacosh', 'cacoshf', 'cacoshl', + 'casinh', 'casinhf', 'casinhl', + 'catanh', 'catanhf', 'catanhl', + 'ccosh', 'ccoshf', 'ccoshl', + 'csinh', 'csinhf', 'csinhl', + 'ctanh', 'ctanhf', 'ctanhl', + 'cexp', 'cexpf', 'cexpl', + 'clog', 'clogf', 'clogl', + 'cabs', 'cabsf', 'cabsl', + 'cpow', 'cpowf', 'cpowl', + 'csqrt', 'csqrtf', 'csqrtl', + 'carg', 'cargf', 'cargl', + 'cimag', 'cimagf', 'cimagl', + 'conj', 'conjf', 'conjl', + 'cproj', 'cprojf', 'cprojl', + 'creal', 'crealf', 'creall', + ], + # B.3 Character handling + 'ctype.h': C90_STDLIB_IDENTIFIERS['ctype.h'], + # B.4 Errors + 'errno.h': C90_STDLIB_IDENTIFIERS['errno.h'] + ['EILSEQ'], + # B.5 Floating-point environment + 'fenv.h': [ + 'fenv_t', 'FE_OVERFLOW', 'FE_TOWARDZERO', + 'fexcept_t', 'FE_UNDERFLOW', 'FE_UPWARD', + 'FE_DIVBYZERO', 'FE_ALL_EXCEPT', 'FE_DFL_ENV', + 'FE_INEXACT', 'FE_DOWNWARD', + 'FE_INVALID', 'FE_TONEAREST', + 'FENV_ACCESS', + 'feclearexcept', 'fegetexceptflag', 'fegetround', + 'fesetround', 'fegetenv', 'feholdexcept', + 'fesetenv', 'feupdateenv', + ], + # B.6 Characteristics of floating types + 'float.h': C90_STDLIB_IDENTIFIERS['float.h'] + ['FLT_EVAL_METHOD'], + # B.7 Format conversion of integer types + 'inttypes.h': [ + 'PRIdMAX', 'PRIiMAX', 'PRIoMAX', 'PRIuMAX', 'PRIxMAX', 'PRIXMAX', + 'SCNdMAX', 'SCNiMAX', 'SCNoMAX', 'SCNuMAX', 'SCNxMAX', 'PRIdPTR', + 'PRIiPTR', 'PRIoPTR', 'PRIuPTR', 'PRIxPTR', 'PRIXPTR', 'SCNdPTR', + 'SCNiPTR', 'SCNoPTR', 'SCNuPTR', 'SCNxPTR', + 'imaxdiv_t', 'imaxabs', 'imaxdiv', 'strtoimax', + 'strtoumax', 'wcstoimax', 'wcstoumax', + ] + INTTYPES_H_DEFINES, + # B.8 Alternative spellings + 'iso646.h': [ + 'and', 'and_eq', 'bitand', 'bitor', 'compl', 'not', 'not_eq', + 'or', 'or_eq', 'xor', 'xor_eq', + ], + # B.9 Size of integer types + 'limits.h': C90_STDLIB_IDENTIFIERS['limits.h'] + + ['LLONG_MIN', 'LLONG_MAX', 'ULLONG_MAX'], + # B.10 Localization + 'locale.h': C90_STDLIB_IDENTIFIERS['locale.h'], + # B.11 Mathematics + 'math.h': C90_STDLIB_IDENTIFIERS['math.h'] + [ + 'float_t', 'double_t', 'HUGE_VAL', 'HUGE_VALF', 'HUGE_VALL', + 'INFINITY', 'NAN', 'FP_INFINITE', 'FP_NAN', 'FP_NORMAL', + 'FP_SUBNORMAL', 'FP_ZERO', 'FP_FAST_FMA', 'FP_FAST_FMAF', + 'FP_FAST_FMAL', 'FP_ILOGB0', 'FP_ILOGBNAN', 'MATH_ERRNO', + 'MATH_ERREXCEPT', 'math_errhandling', 'FP_CONTRACT', 'fpclassify', + 'isfinite', 'isinf', 'isnan', 'isnormal', 'signbit', 'acosf', 'acosl', + 'asinf', 'asinl', 'atanf', 'atanl', 'atan2', 'atan2f', 'atan2l', + 'cosf', 'cosl', 'sinf', 'sinl', 'tanf', 'tanl', 'acosh', 'acoshf', + 'acoshl', 'asinh', 'asinhf', 'asinhl', 'atanh', 'atanhf', 'atanhl', + 'cosh', 'coshf', 'coshl', 'sinh', 'sinhf', 'sinhl', 'tanh', 'tanhf', + 'tanhl', 'expf', 'expl', 'exp2', 'exp2f', 'exp2l', 'expm1', 'expm1f', + 'expm1l', 'frexpf', 'frexpl', 'ilogb', 'ilogbf', 'ilogbl', 'ldexpf', + 'ldexpl', 'logf', 'logl', 'log10f', 'log10l', 'log1p', 'log1pf', + 'log1pl', 'log2', 'log2f', 'log2l', 'logb', 'logbf', 'logbl', 'modff', + 'modfl', 'scalbn', 'scalbnf', 'scalbnl', 'scalbln', 'scalblnf', + 'scalblnl','cbrt', 'cbrtf','cbrtl', 'fabs', 'fabsf', 'fabsl', + 'hypotl', 'hypotf', 'powf', 'powl', 'sqrtf', 'sqrtl', 'erf', 'erff', + 'erfl', 'erfc', 'erfcf', 'erfcl', 'lgamma', 'lgammaf', 'lgammal', + 'tgamma', 'tgammaf', 'tgammal', 'ceilf', 'ceill', 'floorf', 'floorl', + 'nearbyint', 'nearbyintf', 'nearbyintl', 'rint', 'rintf', 'rintl', + 'lrint', 'lrintf', 'lrintl', 'llrint', 'llrintf', 'llrintl', 'round', + 'roundf', 'roundl', 'lround', 'lroundf', 'lroundl', 'llround', + 'llroundf', 'llroundl', 'trunc', 'truncf', 'truncl', 'fmodf', 'fmodl', + 'remainder', 'remainderf', 'remainderl', 'remquo', 'remquof', + 'remquol', 'copysign', 'copysignf', 'copysignl', 'nan', 'nanf', + 'nanl', 'nextafter', 'nextafterf', 'nextafterl', 'nexttoward', + 'nexttowardf', 'nexttowardl', 'fdim', 'fdimf', 'fdiml', 'fmax', + 'fmaxf', 'fmaxl', 'fmin', 'fminf', 'fminl', 'fmaf','fmal', 'isgreater', + 'isgreaterequal', 'isless', 'islessequal', 'islessgreater', + 'isunordered', + ], + # B.12 Nonlocal jumps + 'setjmp.h': C90_STDLIB_IDENTIFIERS['setjmp.h'], + # B.13 Signal handling + 'signal.h': C90_STDLIB_IDENTIFIERS['signal.h'], + # B.14 Variable arguments + 'stdarg.h': C90_STDLIB_IDENTIFIERS['stdarg.h'] + ['va_copy'], + # B.15 Boolean type and values + 'stdbool.h': ['bool', 'true', 'false', '__bool_true_false_are_defined'], + # B.16 Common definitions + 'stddef.h': C90_STDLIB_IDENTIFIERS['stddef.h'], + # B.17 Integer types + 'stdint.h': [ + 'intptr_t', 'uintptr_t', 'intmax_t', 'uintmax_t', 'INTN_MIN', + 'INTN_MAX', 'UINTN_MAX', 'INT_LEASTN_MIN', 'INT_LEASTN_MAX', + 'UINT_LEASTN_MAX', 'INT_FASTN_MIN', 'INT_FASTN_MAX', 'UINT_FASTN_MAX', + 'INTPTR_MIN', 'INTPTR_MAX', 'UINTPTR_MAX', 'INTMAX_MIN', 'INTMAX_MAX', + 'UINTMAX_MAX', 'PTRDIFF_MIN', 'PTRDIFF_MAX', 'SIG_ATOMIC_MIN', + 'SIG_ATOMIC_MAX', 'SIZE_MAX', 'WCHAR_MIN', 'WCHAR_MAX', 'WINT_MIN', + 'WINT_MAX', 'INTN_C', 'UINTN_C', 'INTMAX_C', 'UINTMAX_C', + ] + STDINT_TYPES + STDINT_H_DEFINES_MIN + STDINT_H_DEFINES_MAX + STDINT_H_DEFINES_C, + # B.18 Input/output + 'stdio.h': C90_STDLIB_IDENTIFIERS['stdio.h'] + [ + 'mode', 'restrict', 'snprintf', 'vfscanf', 'vscanf', + 'vsnprintf', 'vsscanf','ftell' + ], + # B.19 General utilities + 'stdlib.h': C90_STDLIB_IDENTIFIERS['stdlib.h'] + [ + '_Exit', 'labs', 'llabs', 'lldiv', 'lldiv_t', 'strtof', 'strtol', + 'strtold', 'strtoll', 'strtoul', 'strtoull' + ], + # B.20 String handling + 'string.h': C90_STDLIB_IDENTIFIERS['string.h'], + # B.21 Type-generic math + 'tgmath.h': [ + 'acos', 'asin', 'atan', 'acosh', 'asinh', 'atanh', 'cos', 'sin', 'tan', + 'cosh', 'sinh', 'tanh', 'exp', 'log', 'pow', 'sqrt', 'fabs', 'atan2', + 'cbrt', 'ceil', 'copysign', 'erf', 'erfc', 'exp2', 'expm1', 'fdim', + 'floor', 'fma', 'fmax', 'fmin', 'fmod', 'frexp', 'hypot', 'ilogb', + 'ldexp', 'lgamma', 'llrint', 'llround', 'log10', 'log1p', 'log2', + 'logb', 'lrint', 'lround', 'nearbyint', 'nextafter', 'nexttoward', + 'remainder', 'remquo', 'rint', 'round', 'scalbn', 'scalbln', 'tgamma', + 'trunc', 'carg', 'cimag', 'conj', 'cproj', 'creal', + ], + # B.22 Date and time + 'time.h': C90_STDLIB_IDENTIFIERS['time.h'] + ['CLOCKS_PER_SEC'], + # B.23 Extended multibyte/wide character utilities + 'wchar.h': [ + 'wchar_t', 'size_t', 'mbstate_t', 'wint_t', 'tm', 'NULL', 'WCHAR_MAX', + 'WCHAR_MIN', 'WEOF', 'fwprintf', 'fwscanf', 'swprintf', 'swscanf', + 'vfwprintf', 'vfwscanf', 'vswprintf', 'vswscanf', 'vwprintf', + 'vwscanf', 'wprintf', 'wscanf', 'fgetwc', 'fgetws', 'fputwc', 'fputws', + 'fwide', 'getwc', 'getwchar', 'putwc', 'putwchar', 'ungetwc', 'wcstod', + 'wcstof', 'wcstold', 'wcstol', 'wcstoll', 'wcstoul', 'wcstoull', 'wcscpy', + 'wcsncpy', 'wmemcpy', 'wmemmove', 'wcscat', 'wcsncat', 'wcscmp', 'wcscoll', + 'wcsncmp', 'wcsxfrm', 'wmemcmp', 'wcschr', 'wcscspn', 'wcspbrk', + 'wcsrchr', 'wcsspn', 'wcsstr', 'wcstok', 'wmemchr', 'wcslen', + 'wmemset', 'wcsftime', 'btowc', 'wctob', 'mbsinit', 'mbrlen', + 'mbrtowc', 'wcrtomb', 'mbsrtowcs', 'wcsrtombs', + ], + # B.24 Wide character classification and mapping utilities + 'wctype.h': ['wint_t', 'wctrans_t', 'wctype_t', 'WEOF', + 'iswalnum', 'iswalpha', 'iswblank', 'iswcntrl', 'iswdigit', + 'iswgraph', 'iswlower', 'iswprint', 'iswpunct', 'iswspace', 'iswupper', + 'iswxdigit', 'iswctype', 'wctype', 'towlower', 'towupper', 'towctrans', + 'wctrans'], +} + +# Identifiers described in Section 7 "Library" of C11 Standard +# Based on ISO/IEC 9899:201x N1570 (Draft 12.04.2011) Annex B -- Library summary +# (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf) +C11_STDLIB_IDENTIFIERS = { + # B.1 Diagnostics + 'assert.h': C99_STDLIB_IDENTIFIERS['assert.h']+ ['static_assert'], + # B.2 Complex + 'complex.h': C99_STDLIB_IDENTIFIERS['complex.h']+['__STDC_NO_COMPLEX__','CMPLX','CMPLXF','CMPLXL'], + # B.3 Character handling + 'ctype.h': C99_STDLIB_IDENTIFIERS['ctype.h'], + # B.4 Errors + 'errno.h': C99_STDLIB_IDENTIFIERS['errno.h']+['__STDC_WANT_LIB_EXT1__', 'errno_t'], + # B.5 Floating-point environment + 'fenv.h': C99_STDLIB_IDENTIFIERS['fenv.h'], + # B.6 Characteristics of floating types + 'float.h': C99_STDLIB_IDENTIFIERS['float.h']+[ + 'FLT_HAS_SUBNORM','DBL_HAS_SUBNORM','LDBL_HAS_SUBNORM', + 'FLT_DECIMAL_DIG','DBL_DECIMAL_DIG','LDBL_DECIMAL_DIG', + 'FLT_TRUE_MIN','DBL_TRUE_MIN','LDBL_TRUE_MIN'], + # B.7 Format conversion of integer types + 'inttypes.h': C99_STDLIB_IDENTIFIERS["inttypes.h"], + # B.8 Alternative spellings + 'iso646.h': C99_STDLIB_IDENTIFIERS["iso646.h"], + # B.9 Size of integer types + 'limits.h': C99_STDLIB_IDENTIFIERS['limits.h'], + # B.10 Localization + 'locale.h': C99_STDLIB_IDENTIFIERS['locale.h'], + # B.11 Mathematics + 'math.h': C99_STDLIB_IDENTIFIERS['math.h'], + # B.12 Nonlocal jumps + 'setjmp.h': C99_STDLIB_IDENTIFIERS['setjmp.h'], + # B.13 Signal handling + 'signal.h': C99_STDLIB_IDENTIFIERS['signal.h'], + # B.14 Alignment + 'stdalign.h': ['alignas','__alignas_is_defined'], + # B.15 Variable arguments + 'stdarg.h': C99_STDLIB_IDENTIFIERS['stdarg.h'], + # B.16 Atomics + 'stdatomic.h': ['ATOMIC_BOOL_LOCK_FREE', 'ATOMIC_CHAR_LOCK_FREE', + 'ATOMIC_CHAR16_T_LOCK_FREE', 'ATOMIC_CHAR32_T_LOCK_FREE', 'ATOMIC_WCHAR_T_LOCK_FREE', + 'ATOMIC_SHORT_LOCK_FREE', 'ATOMIC_INT_LOCK_FREE', 'ATOMIC_LONG_LOCK_FREE', + 'ATOMIC_LLONG_LOCK_FREE', 'ATOMIC_POINTER_LOCK_FREE', 'ATOMIC_FLAG_INIT', + 'memory_order', 'atomic_flag', 'memory_order_relaxed', 'memory_order_consume', + 'memory_order_acquire', 'memory_order_release', 'memory_order_acq_rel', 'memory_order_seq_cst', + 'atomic_bool', 'atomic_char', 'atomic_schar', 'atomic_uchar', 'atomic_short', 'atomic_ushort', + 'atomic_int', 'atomic_uint', 'atomic_long', 'atomic_ulong', 'atomic_llong', 'atomic_ullong', + 'atomic_char16_t', 'atomic_char32_t', 'atomic_wchar_t', 'atomic_int_least8_t', + 'atomic_uint_least8_t', 'atomic_int_least16_t', 'atomic_uint_least16_t', + 'atomic_int_least32_t', 'atomic_uint_least32_t', 'atomic_int_least64_t', + 'atomic_uint_least64_t', 'atomic_int_fast8_t', 'atomic_uint_fast8_t', + 'atomic_int_fast16_t', 'atomic_uint_fast16_t', 'atomic_int_fast32_t', + 'atomic_uint_fast32_t', 'atomic_int_fast64_t', 'atomic_uint_fast64_t', + 'atomic_intptr_t', 'atomic_uintptr_t', 'atomic_size_t', 'atomic_ptrdiff_t', + 'atomic_intmax_t', 'atomic_uintmax_t', 'ATOMIC_VAR_INIT', 'type kill_dependency', + 'atomic_thread_fence', 'atomic_signal_fence', 'atomic_is_lock_free', + 'atomic_store', 'atomic_store_explicit', 'atomic_load', 'atomic_load_explicit', + 'atomic_exchange', 'atomic_exchange_explicit', 'atomic_compare_exchange_strong', + 'atomic_compare_exchange_strong_explicit', 'atomic_compare_exchange_weak', + 'atomic_compare_exchange_weak_explicit', 'atomic_fetch_key', 'atomic_fetch_key_explicit', + 'atomic_flag_test_and_set', 'atomic_flag_test_and_set_explicit', + 'atomic_flag_clear', 'atomic_flag_clear_explicit', ], + # B.17 Boolean type and values + 'stdbool.h': C99_STDLIB_IDENTIFIERS['stdbool.h'], + # B.18 Common definitions + 'stddef.h': C99_STDLIB_IDENTIFIERS['stddef.h'] + + ['max_align_t','__STDC_WANT_LIB_EXT1__', 'rsize_t'], + # B.19 Integer types + 'stdint.h': C99_STDLIB_IDENTIFIERS['stdint.h']+ + ['__STDC_WANT_LIB_EXT1__', 'RSIZE_MAX'], + # B.20 Input/output + 'stdio.h': C99_STDLIB_IDENTIFIERS['stdio.h'] + + ['__STDC_WANT_LIB_EXT1__', 'L_tmpnam_s', 'TMP_MAX_S', 'errno_t', 'rsize_t', + 'tmpfile_s', 'tmpnam_s', 'fopen_s', 'freopen_s', 'fprintf_s', 'fscanf_s', + 'printf_s','scanf_s','snprintf_s','sprintf_s','sscanf_s','vfprintf_s', + 'vfscanf_s', 'vsprintf_s', 'vsscanf_s', 'gets_s' + ], + # B.21 General utilities + 'stdlib.h': C99_STDLIB_IDENTIFIERS['stdlib.h'] + + ['constraint_handler_t', 'set_constraint_handler_s', 'abort_handler_s', + 'ignore_handler_s', 'getenv_s', 'bsearch_s', 'qsort_s', 'wctomb_s', + 'mbstowcs_s', 'wcstombs_s'], + # B.22 Noretrun + 'stdnoreturn.h': ['noreturn'], + # B.23 String handling + 'string.h': C99_STDLIB_IDENTIFIERS['string.h'] + + ['memcpy_s', 'memmoce_s', 'strcpy_s', 'strncpy_s','strcat_s', + 'strtok_s', 'memset_s', 'strerror_s', 'strerrorlen_s', 'strnlen_s'], + # B.24 Type-generic math + 'tgmath.h': C99_STDLIB_IDENTIFIERS['tgmath.h'], + # B.25 Threads + 'threads.h': ['thread_local', 'ONCE_FLAG_INIT', 'TSS_DTOR_ITERATIONS', + 'cnd_t', 'thrd_t', 'tss_t', 'mtx_t', 'tss_dtor_t', 'thrd_start_t', + 'once_flag', 'mtx_plain', 'mtx_recursive', 'mtx_timed', 'thrd_timedout', + 'thrd_success', 'thrd_busy', 'thrd_error', 'thrd_nomem', 'call_once', + 'cnd_broadcast', 'cnd_destroy','cnd_init', 'cnd_signal', 'cnd_timedwait', + 'cnd_wait','mtx_destroy', 'mtx_init', 'mtx_lock', 'mtx_timedlock', + 'mtx_trylock', 'mtx_unlock', 'thrd_create', 'thrd_current', + 'thrd_detach', 'thrd_equal', 'thrd_exit', 'thrd_join', 'thrd_sleep', + 'thrd_yield', 'tss_create', 'tss_delete', 'tss_get', 'tss_set' ], + # B.26 Date and time + 'time.h': C99_STDLIB_IDENTIFIERS['time.h'] + [ + 'asctime_s', 'ctime_s', 'gmtime_s', 'localtime_s' + ], + # B.27 Unicode utilities + 'uchar.h': ['mbstate_t', 'size_t', 'char16_t', 'char32_t', + 'mbrtoc16', 'c16rtomb', 'mbrtoc32', 'c32rtomb' + ], + # B.28 Extended multibyte/wide character utilities + 'wchar.h': C99_STDLIB_IDENTIFIERS["wchar.h"]+[ + 'fwprintf_s', 'fwscanf_s', 'snwprintf_s', 'swprintf_s', 'swscanf_s', + 'vfwprintf_s', 'vfwscanf_s', 'vsnwprintf_s', 'vswprintf_s', 'vswscanf_s', + 'vwprintf_s', 'vwscanf_s', 'wprintf_s', 'wscanf_s', 'wcscpy_s', 'wcsncpy_s', + 'wmemcpy_s', 'wmemmove_s', 'wcscat_s', 'wcsncat_s', 'wcstok_s', 'wcsnlen_s', + 'wcrtomb_s', 'mbsrtowcs_s', 'wcsrtombs_s', + ], + # B.29 Wide character classification and mapping utilities + 'wctype.h': C99_STDLIB_IDENTIFIERS['wctype.h'], +} + +def getStdLib(standard): + if standard == 'c89': + return C90_STDLIB_IDENTIFIERS + if standard == 'c99': + return C99_STDLIB_IDENTIFIERS + return C11_STDLIB_IDENTIFIERS + +def isStdLibId(id_, standard='c99'): + id_lists = getStdLib(standard).values() + for l in id_lists: + if id_ in l: + return True + return False + +# Reserved keywords defined in ISO/IEC9899:1990 -- ch 6.1.1 +C90_KEYWORDS = { + 'auto', 'break', 'case', 'char', 'const', 'continue', 'default', 'do', + 'double', 'else', 'enum', 'extern', 'float', 'for', 'goto', 'if', + 'int', 'long', 'register', 'return', 'short', 'signed', + 'sizeof', 'static', 'struct', 'switch', 'typedef', 'union', 'unsigned', + 'void', 'volatile', 'while' +} + + +# Reserved keywords defined in Section 6.4.1 "Language" of C99 Standard +# Based on ISO/IEC 9899:1999 (E) 6.4.1 Keywords +# Adding the expanding macros from Section 7 too +# (https://www.dii.uchile.cl/~daespino/files/Iso_C_1999_definition.pdf) +C99_ADDED_KEYWORDS = { + 'inline', 'restrict', '_Bool', '_Complex', '_Imaginary', + 'bool', 'complex', 'imaginary' +} + +# Reserved keywords defined in Section 6.4.1 "Language" of C11 Standard +# Based on ISO/IEC 9899:201x N1570 (Draft 12.04.2011) 6.4.1 Keywords +# Adding the expanding macros from Section 7 too +# (https://www.open-std.org/jtc1/sc22/wg14/www/docs/n1570.pdf) +C11_ADDED_KEYWORDS = { + '_Alignas', '_Alignof', '_Atomic', '_Generic', '_Noreturn', + '_Static_assert', '_Thread_local' , + 'alignas', 'alignof', 'noreturn', 'static_assert','thread_local' +} + +def isKeyword(keyword, standard='c99'): + kw_set = {} + if standard == 'c89': + kw_set = C90_KEYWORDS + elif standard == 'c99': + kw_set = copy.copy(C90_KEYWORDS) + kw_set.update(C99_ADDED_KEYWORDS) + else: + kw_set = copy.copy(C90_KEYWORDS) + kw_set.update(C99_ADDED_KEYWORDS) + kw_set.update(C11_ADDED_KEYWORDS) + return keyword in kw_set + + +def is_source_file(file): + return file.endswith('.c') + + +def is_header(file): + return file.endswith('.h') + + +def is_errno_setting_function(function_name): + return function_name and \ + function_name in ('ftell', 'fgetpos', 'fsetpos', 'fgetwc', 'fputwc' + 'strtoimax', 'strtoumax', 'strtol', 'strtoul', + 'strtoll', 'strtoull', 'strtof', 'strtod', 'strtold' + 'wcstoimax', 'wcstoumax', 'wcstol', 'wcstoul', + 'wcstoll', 'wcstoull', 'wcstof', 'wcstod', 'wcstold' + 'wcrtomb', 'wcsrtombs', 'mbrtowc') + + +def get_type_conversion_to_from(token): + def get_vartok(expr): + while expr: + if isCast(expr): + if expr.astOperand2 is None: + expr = expr.astOperand1 + else: + expr = expr.astOperand2 + elif expr.str in ('.', '::'): + expr = expr.astOperand2 + elif expr.str == '[': + expr = expr.astOperand1 + else: + break + return expr if (expr and expr.variable) else None + + if isCast(token): + vartok = get_vartok(token) + if vartok: + return (token.next, vartok.variable.typeStartToken) + + elif token.str == '=': + lhs = get_vartok(token.astOperand1) + rhs = get_vartok(token.astOperand2) + if lhs and rhs: + return (lhs.variable.typeStartToken, rhs.variable.typeStartToken) + + return None + + +def is_composite_expr(expr, composite_operator=False): + """MISRA C 2012, section 8.10.3""" + if expr is None: + return False + + if not composite_operator: + if expr.str == '?' and simpleMatch(expr.astOperand2, ':'): + colon = expr.astOperand2 + return is_composite_expr(colon.astOperand1,True) or is_composite_expr(colon.astOperand2, True) + if (expr.str in ('+', '-', '*', '/', '%', '&', '|', '^', '>>', "<<", "?", ":", '~')): + return is_composite_expr(expr.astOperand1,True) or is_composite_expr(expr.astOperand2, True) + return False + + # non constant expression? + if expr.isNumber: + return False + if expr.astOperand1 or expr.astOperand2: + return is_composite_expr(expr.astOperand1,True) or is_composite_expr(expr.astOperand2, True) + return True + + +def getEssentialTypeCategory(expr): + if not expr: + return None + if expr.str == ',': + return getEssentialTypeCategory(expr.astOperand2) + if expr.str in ('<', '<=', '==', '!=', '>=', '>', '&&', '||', '!'): + return 'bool' + if expr.str in ('<<', '>>'): + # TODO this is incomplete + return getEssentialTypeCategory(expr.astOperand1) + if len(expr.str) == 1 and expr.str in '+-*/%&|^': + # TODO this is incomplete + e1 = getEssentialTypeCategory(expr.astOperand1) + e2 = getEssentialTypeCategory(expr.astOperand2) + # print('{0}: {1} {2}'.format(expr.str, e1, e2)) + if e1 and e2 and e1 == e2: + return e1 + if expr.valueType: + return expr.valueType.sign + if expr.valueType and expr.valueType.typeScope and expr.valueType.typeScope.className: + return "enum<" + expr.valueType.typeScope.className + ">" + # Unwrap membership, dereferences and array indexing + vartok = expr + while True: + if simpleMatch(vartok, '[') or (vartok and vartok.str == '*' and vartok.astOperand2 is None): + vartok = vartok.astOperand1 + elif simpleMatch(vartok, '.'): + vartok = vartok.astOperand2 + else: + break + if vartok and vartok.variable: + typeToken = vartok.variable.typeStartToken + while typeToken and typeToken.isName: + if typeToken.str == 'char' and not typeToken.isSigned and not typeToken.isUnsigned: + return 'char' + if typeToken.valueType: + if typeToken.valueType.type == 'bool': + return typeToken.valueType.type + if typeToken.valueType.type in ('float', 'double', 'long double'): + return "float" + if typeToken.valueType.sign: + return typeToken.valueType.sign + typeToken = typeToken.next + + # See Appendix D, section D.6, Character constants + if expr.str[0] == "'" and expr.str[-1] == "'": + if len(expr.str) == 3 or (len(expr.str) == 4 and expr.str[1] == '\\'): + return 'char' + return expr.valueType.sign + + if (expr.isCast and expr.str == "("): + castTok = expr.next + while castTok.isName or castTok.str == "*": + if castTok.str == 'char' and not castTok.isSigned and not castTok.isUnsigned: + return 'char' + castTok = castTok.next + + if expr.valueType: + return expr.valueType.sign + return None + + +def getEssentialCategorylist(operand1, operand2): + if not operand1 or not operand2: + return None, None + if (operand1.str in ('++', '--') or + operand2.str in ('++', '--')): + return None, None + if ((operand1.valueType and operand1.valueType.pointer) or + (operand2.valueType and operand2.valueType.pointer)): + return None, None + e1 = getEssentialTypeCategory(operand1) + e2 = getEssentialTypeCategory(operand2) + return e1, e2 + + +def get_essential_type_from_value(value, is_signed): + if value is None: + return None + for t in ('char', 'short', 'int', 'long', 'long long'): + bits = bitsOfEssentialType(t) + if bits >= 64: + continue + if is_signed: + range_min = -(1 << (bits - 1)) + range_max = (1 << (bits - 1)) - 1 + else: + range_min = 0 + range_max = (1 << bits) - 1 + sign = 'signed' if is_signed else 'unsigned' + if is_signed and value < 0 and value >= range_min: + return '%s %s' % (sign, t) + if value >= 0 and value <= range_max: + return '%s %s' % (sign, t) + return None + +def getEssentialType(expr): + if not expr: + return None + + # See Appendix D, section D.6, Character constants + if expr.str[0] == "'" and expr.str[-1] == "'": + if len(expr.str) == 3 or (len(expr.str) == 4 and expr.str[1] == '\\'): + return 'char' + return '%s %s' % (expr.valueType.sign, expr.valueType.type) + + if expr.variable or isCast(expr): + typeToken = expr.variable.typeStartToken if expr.variable else expr.next + while typeToken and typeToken.isName: + if typeToken.str == 'char' and not typeToken.isSigned and not typeToken.isUnsigned: + return 'char' + typeToken = typeToken.next + if expr.valueType: + if expr.valueType.type == 'bool': + return 'bool' + if expr.valueType.isFloat(): + return expr.valueType.type + if expr.valueType.isIntegral(): + if (expr.valueType.sign is None) and expr.valueType.type == 'char': + return 'char' + return '%s %s' % (expr.valueType.sign, expr.valueType.type) + + elif expr.isNumber: + # Appendix D, D.6 The essential type of literal constants + # Integer constants + if expr.valueType.type == 'bool': + return 'bool' + if expr.valueType.isFloat(): + return expr.valueType.type + if expr.valueType.isIntegral(): + if expr.valueType.type != 'int': + return '%s %s' % (expr.valueType.sign, expr.valueType.type) + return get_essential_type_from_value(expr.getKnownIntValue(), expr.valueType.sign == 'signed') + + elif expr.str in ('<', '<=', '>=', '>', '==', '!=', '&&', '||', '!'): + return 'bool' + + elif expr.astOperand1 and expr.astOperand2 and expr.str in ( + '+', '-', '*', '/', '%', '&', '|', '^', '>>', "<<", "?", ":"): + if expr.astOperand1.valueType and expr.astOperand1.valueType.pointer > 0: + return None + if expr.astOperand2.valueType and expr.astOperand2.valueType.pointer > 0: + return None + e1 = getEssentialType(expr.astOperand1) + e2 = getEssentialType(expr.astOperand2) + if e1 is None or e2 is None: + return None + if is_constant_integer_expression(expr): + sign1 = e1.split(' ')[0] + sign2 = e2.split(' ')[0] + if sign1 == sign2 and sign1 in ('signed', 'unsigned'): + e = get_essential_type_from_value(expr.getKnownIntValue(), sign1 == 'signed') + if e: + return e + if bitsOfEssentialType(e2) >= bitsOfEssentialType(e1): + return e2 + return e1 + + elif expr.str == "~": + e1 = getEssentialType(expr.astOperand1) + return e1 + + return None + + +def bitsOfEssentialType(ty): + if ty is None: + return 0 + last_type = ty.split(' ')[-1] + if last_type == 'Boolean': + return 1 + if last_type == 'char': + return typeBits['CHAR'] + if last_type == 'short': + return typeBits['SHORT'] + if last_type == 'int': + return typeBits['INT'] + if ty.endswith('long long'): + return typeBits['LONG_LONG'] + if last_type == 'long': + return typeBits['LONG'] + for sty in STDINT_TYPES: + if ty == sty: + return int(''.join(filter(str.isdigit, sty))) + return 0 + + +def get_function_pointer_type(tok): + ret = '' + while tok and (tok.isName or tok.str == '*'): + ret += ' ' + tok.str + tok = tok.next + if tok is None or tok.str != '(': + return None + tok = tok.link + if not simpleMatch(tok, ') ('): + return None + ret += '(' + tok = tok.next.next + while tok and (tok.str not in '()'): + if tok.varId is None: + ret += ' ' + tok.str + tok = tok.next + if (tok is None) or tok.str != ')': + return None + return ret[1:] + ')' + +def isCast(expr): + if not expr or expr.str != '(' or not expr.astOperand1 or expr.astOperand2: + return False + if simpleMatch(expr, '( )'): + return False + return True + +def is_constant_integer_expression(expr): + if expr is None: + return False + if expr.isInt: + return True + if not expr.isArithmeticalOp: + return False + if expr.astOperand1 and not is_constant_integer_expression(expr.astOperand1): + return False + if expr.astOperand2 and not is_constant_integer_expression(expr.astOperand2): + return False + return True + +def isFunctionCall(expr, std='c99'): + if not expr: + return False + if expr.str != '(' or not expr.astOperand1: + return False + if expr.astOperand1 != expr.previous: + return False + if isKeyword(expr.astOperand1.str, std): + return False + return True + + +def hasExternalLinkage(var): + return var.isGlobal and not var.isStatic + + +def countSideEffects(expr): + if not expr or expr.str in (',', ';'): + return 0 + ret = 0 + if expr.str in ('++', '--', '='): + ret = 1 + return ret + countSideEffects(expr.astOperand1) + countSideEffects(expr.astOperand2) + + +def getForLoopExpressions(forToken): + if not forToken or forToken.str != 'for': + return None + lpar = forToken.next + if not lpar or lpar.str != '(': + return None + if not lpar.astOperand2 or lpar.astOperand2.str != ';': + return None + if not lpar.astOperand2.astOperand2 or lpar.astOperand2.astOperand2.str != ';': + return None + return [lpar.astOperand2.astOperand1, + lpar.astOperand2.astOperand2.astOperand1, + lpar.astOperand2.astOperand2.astOperand2] + + +def get_function_scope(cfg, func): + if func: + for scope in cfg.scopes: + if scope.function == func: + return scope + return None + + +def is_variable_changed(start_token, end_token, var): + """Check if variable is updated between body_start and body_end""" + tok = start_token + while tok != end_token: + if tok.isAssignmentOp: + vartok = tok.astOperand1 + while vartok.astOperand1: + vartok = vartok.astOperand1 + if vartok and vartok.variable == var: + return True + tok = tok.next + return False + +def getForLoopCounterVariables(forToken, cfg): + """ Return a set of Variable objects defined in ``for`` statement and + satisfy requirements to loop counter term from section 8.14 of MISRA + document. + """ + if not forToken or forToken.str != 'for': + return None + tn = forToken.next + if not tn or tn.str != '(': + return None + vars_defined = set() + vars_initialized = set() + vars_exit = set() + vars_modified = set() + cur_clause = 1 + te = tn.link + while tn and tn != te: + if tn.variable: + if cur_clause == 1 and tn.variable.nameToken == tn: + vars_defined.add(tn.variable) + elif cur_clause == 2: + vars_exit.add(tn.variable) + elif cur_clause == 3: + if tn.next and countSideEffectsRecursive(tn.next) > 0: + vars_modified.add(tn.variable) + elif tn.previous and tn.previous.str in ('++', '--'): + tn_ast = tn.astParent + if tn_ast and tn_ast == tn.previous: + vars_modified.add(tn.variable) + elif tn_ast and tn_ast.str == '.' and tn_ast.astOperand2 and tn_ast.astOperand2.variable: + vars_modified.add(tn_ast.astOperand2.variable) + if cur_clause == 1 and tn.isAssignmentOp: + var_token = tn.astOperand1 + while var_token and var_token.str == '.': + var_token = var_token.astOperand2 + if var_token and var_token.variable: + vars_initialized.add(var_token.variable) + if cur_clause == 1 and tn.isName and tn.next.str == '(': + function_args_in_init = getArguments(tn.next) + function_scope = get_function_scope(cfg, tn.function) + for arg_nr in range(len(function_args_in_init)): + init_arg = function_args_in_init[arg_nr] + if init_arg is None or not init_arg.isUnaryOp('&'): + continue + var_token = init_arg.astOperand1 + while var_token and var_token.str == '.': + var_token = var_token.astOperand2 + if var_token is None or var_token.variable is None: + continue + changed = False + if function_scope is None: + changed = True + elif tn.function is None: + changed = True + else: + function_body_start = function_scope.bodyStart + function_body_end = function_scope.bodyEnd + args = tn.function.argument[arg_nr + 1] + if function_scope is None or is_variable_changed(function_body_start, function_body_end, args): + changed = True + if changed: + vars_initialized.add(var_token.variable) + + if tn.str == ';': + cur_clause += 1 + tn = tn.next + return vars_defined | vars_initialized, vars_exit & vars_modified + + +def findCounterTokens(cond): + if not cond: + return [] + if cond.str in ['&&', '||']: + c = findCounterTokens(cond.astOperand1) + c.extend(findCounterTokens(cond.astOperand2)) + return c + ret = [] + if ((cond.isArithmeticalOp and cond.astOperand1 and cond.astOperand2) or + (cond.isComparisonOp and cond.astOperand1 and cond.astOperand2)): + if cond.astOperand1.isName: + ret.append(cond.astOperand1) + if cond.astOperand2.isName: + ret.append(cond.astOperand2) + if cond.astOperand1.isOp: + ret.extend(findCounterTokens(cond.astOperand1)) + if cond.astOperand2.isOp: + ret.extend(findCounterTokens(cond.astOperand2)) + return ret + + +def isFloatCounterInWhileLoop(whileToken): + if not simpleMatch(whileToken, 'while ('): + return False + lpar = whileToken.next + rpar = lpar.link + counterTokens = findCounterTokens(lpar.astOperand2) + tok_varid = tuple(tok.varId for tok in counterTokens if tok.varId) + whileBodyStart = None + if simpleMatch(rpar, ') {'): + whileBodyStart = rpar.next + elif simpleMatch(whileToken.previous, '} while') and simpleMatch(whileToken.previous.link.previous, 'do {'): + whileBodyStart = whileToken.previous.link + else: + return False + token = whileBodyStart + while token != whileBodyStart.link: + token = token.next + if not token.varId: + continue + if token.varId not in tok_varid: + continue + if not token.astParent or not token.valueType or not token.valueType.isFloat(): + continue + parent = token.astParent + if parent.str in ('++', '--'): + return True + while parent: + if parent.isAssignmentOp and parent.str != "=" and parent.astOperand1 == token: + return True + if parent.str == "=" and parent.astOperand1.str == token.str and parent.astOperand1 != token: + return True + parent = parent.astParent + return False + + +def countSideEffectsRecursive(expr): + if not expr or expr.str == ';': + return 0 + if expr.str == '=' and expr.astOperand1 and expr.astOperand1.str == '[': + prev = expr.astOperand1.previous + if prev and (prev.str == '{' or prev.str == '{'): + return countSideEffectsRecursive(expr.astOperand2) + if expr.str == '=' and expr.astOperand1 and expr.astOperand1.str == '.': + e = expr.astOperand1 + while e and e.str == '.' and e.astOperand2: + e = e.astOperand1 + if e and e.str == '.': + return 0 + if expr.isAssignmentOp or expr.str in {'++', '--'}: + return 1 + # Todo: Check function calls + return countSideEffectsRecursive(expr.astOperand1) + countSideEffectsRecursive(expr.astOperand2) + + +def isBoolExpression(expr): + if not expr: + return False + if expr.valueType and (expr.valueType.type == 'bool' or expr.valueType.bits == 1): + return True + return expr.str in ['!', '==', '!=', '<', '<=', '>', '>=', '&&', '||', '0', '1', 'true', 'false'] + + +def isEnumConstant(expr): + if not expr or not expr.values: + return False + values = expr.values + return len(values) == 1 and values[0].valueKind == 'known' + + +def isConstantExpression(expr): + if expr.isNumber: + return True + if expr.isName and not isEnumConstant(expr): + return False + if simpleMatch(expr.previous, 'sizeof ('): + return True + if expr.astOperand1 and not isConstantExpression(expr.astOperand1): + return False + if expr.astOperand2 and not isConstantExpression(expr.astOperand2): + return False + return True + +def isUnknownConstantExpression(expr): + if expr.isName and not isEnumConstant(expr) and expr.variable is None: + return True + if expr.astOperand1 and isUnknownConstantExpression(expr.astOperand1): + return True + if expr.astOperand2 and isUnknownConstantExpression(expr.astOperand2): + return True + return False + +def isUnsignedInt(expr): + return expr and expr.valueType and expr.valueType.type in ('short', 'int') and expr.valueType.sign == 'unsigned' + + +def getPrecedence(expr): + if not expr: + return 16 + if not expr.astOperand1 or not expr.astOperand2: + return 16 + if expr.str in ('*', '/', '%'): + return 12 + if expr.str in ('+', '-'): + return 11 + if expr.str in ('<<', '>>'): + return 10 + if expr.str in ('<', '>', '<=', '>='): + return 9 + if expr.str in ('==', '!='): + return 8 + if expr.str == '&': + return 7 + if expr.str == '^': + return 6 + if expr.str == '|': + return 5 + if expr.str == '&&': + return 4 + if expr.str == '||': + return 3 + if expr.str in ('?', ':'): + return 2 + if expr.isAssignmentOp: + return 1 + if expr.str == ',': + return 0 + return -1 + + +def findRawLink(token): + tok1 = None + tok2 = None + forward = False + + if token.str in '{([': + tok1 = token.str + tok2 = '})]'['{(['.find(token.str)] + forward = True + elif token.str in '})]': + tok1 = token.str + tok2 = '{(['['})]'.find(token.str)] + forward = False + else: + return None + + # try to find link + indent = 0 + while token: + if token.str == tok1: + indent = indent + 1 + elif token.str == tok2: + if indent <= 1: + return token + indent = indent - 1 + if forward is True: + token = token.next + else: + token = token.previous + + # raw link not found + return None + + +def numberOfParentheses(tok1, tok2): + while tok1 and tok1 != tok2: + if tok1.str == '(' or tok1.str == ')': + return False + tok1 = tok1.next + return tok1 == tok2 + + +def findGotoLabel(gotoToken): + label = gotoToken.next.str + tok = gotoToken.next.next + while tok: + if tok.str == '}' and tok.scope.type == 'Function': + break + if tok.str == label and tok.next.str == ':': + return tok + tok = tok.next + return None + + +def findInclude(directives, header): + for directive in directives: + if directive.str == '#include ' + header: + return directive + return None + + +# Get function arguments +def getArgumentsRecursive(tok, arguments): + if tok is None: + return + if tok.str == ',': + getArgumentsRecursive(tok.astOperand1, arguments) + getArgumentsRecursive(tok.astOperand2, arguments) + else: + arguments.append(tok) + + +def getArguments(ftok): + arguments = [] + getArgumentsRecursive(ftok.astOperand2, arguments) + return arguments + + +def isalnum(c): + return c in string.digits or c in string.ascii_letters + + +def isHexEscapeSequence(symbols): + """Checks that given symbols are valid hex escape sequence. + + hexadecimal-escape-sequence: + \\x hexadecimal-digit + hexadecimal-escape-sequence hexadecimal-digit + + Reference: n1570 6.4.4.4""" + if len(symbols) < 3 or symbols[:2] != '\\x': + return False + return all([s in string.hexdigits for s in symbols[2:]]) + + +def isOctalEscapeSequence(symbols): + r"""Checks that given symbols are valid octal escape sequence: + + octal-escape-sequence: + \ octal-digit + \ octal-digit octal-digit + \ octal-digit octal-digit octal-digit + + Reference: n1570 6.4.4.4""" + if len(symbols) not in range(2, 5) or symbols[0] != '\\': + return False + return all([s in string.octdigits for s in symbols[1:]]) + + +def isSimpleEscapeSequence(symbols): + """Checks that given symbols are simple escape sequence. + Reference: n1570 6.4.4.4""" + if len(symbols) != 2 or symbols[0] != '\\': + return False + return symbols[1] in ("'", '"', '?', '\\', 'a', 'b', 'f', 'n', 'r', 't', 'v') + + +def isTernaryOperator(token): + if not token: + return False + if not token.astOperand2: + return False + return token.str == '?' and token.astOperand2.str == ':' + + +def getTernaryOperandsRecursive(token): + """Returns list of ternary operands including nested ones.""" + if not isTernaryOperator(token): + return [] + result = [] + result += getTernaryOperandsRecursive(token.astOperand2.astOperand1) + if token.astOperand2.astOperand1 and not isTernaryOperator(token.astOperand2.astOperand1): + result += [token.astOperand2.astOperand1] + result += getTernaryOperandsRecursive(token.astOperand2.astOperand2) + if token.astOperand2.astOperand2 and not isTernaryOperator(token.astOperand2.astOperand2): + result += [token.astOperand2.astOperand2] + return result + + +def hasNumericEscapeSequence(symbols): + """Check that given string contains octal or hexadecimal escape sequences.""" + if '\\' not in symbols: + return False + for c, cn in grouped(symbols, 2): + if c == '\\' and cn in ('x' + string.octdigits): + return True + return False + + +def isNoReturnScope(tok): + if tok is None or tok.str != '}': + return False + if tok.previous is None or tok.previous.str != ';': + return False + if simpleMatch(tok.previous.previous, 'break ;'): + return True + prev = tok.previous.previous + while prev and prev.str not in ';{}': + if prev.str in '])': + prev = prev.link + prev = prev.previous + if prev and prev.next.str in ['throw', 'return']: + return True + return False + + +# Return the token which the value is assigned to +def getAssignedVariableToken(vartok): + if not vartok: + return None + parent = vartok.astParent + while parent and parent.isArithmeticalOp: + parent = parent.astParent + if parent and parent.isAssignmentOp: + return parent.astOperand1 + return None + +# If the value is used as a return value, return the function definition +def getFunctionUsingReturnValue(valueToken): + if not valueToken: + return None + if not valueToken.astParent: + return None + operator = valueToken.astParent + if operator.str == 'return': + return operator.scope.function + if operator.isArithmeticalOp: + return getFunctionUsingReturnValue(operator) + return None + +# Return true if the token follows a specific sequence of token str values +def tokenFollowsSequence(token, sequence): + if not token: + return False + for i in reversed(sequence): + prev = token.previous + if not prev: + return False + if prev.str != i: + return False + token = prev + return True + +class Define: + def __init__(self, directive): + self.name = '' + self.args = [] + self.expansionList = '' + + res = re.match(r'#define ([A-Za-z0-9_]+)\(([A-Za-z0-9_, ]+)\)[ ]+(.*)', directive.str) + if res: + self.name = res.group(1) + self.args = res.group(2).strip().split(',') + self.expansionList = res.group(3) + else: + res = re.match(r'#define ([A-Za-z0-9_]+)[ ]+(.*)', directive.str) + if res: + self.name = res.group(1) + self.expansionList = res.group(2) + + def __repr__(self): + attrs = ["name", "args", "expansionList"] + return "{}({})".format( + "Define", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +def getAddonRules(): + """Returns dict of MISRA rules handled by this addon.""" + addon_rules = [] + compiled = re.compile(r'.*def[ ]+misra_([0-9]+)_([0-9]+)[(].*') + with open(__file__) as f: + for line in f: + res = compiled.match(line) + if res is None: + continue + addon_rules.append(res.group(1) + '.' + res.group(2)) + return addon_rules + + +def getCppcheckRules(): + """Returns list of rules handled by cppcheck.""" + return ['1.3', # + '2.1', # alwaysFalse, duplicateBreak + '2.2', # alwaysTrue, redundantCondition, redundantAssignment, redundantAssignInSwitch, unreadVariable + '2.6', # unusedLabel + '5.3', # shadowVariable + '8.3', # funcArgNamesDifferent + '8.13', # constPointer + '9.1', # uninitvar + '14.3', # alwaysTrue, alwaysFalse, compareValueOutOfTypeRangeError + '13.2', # unknownEvaluationOrder + '13.6', # sizeofCalculation + '17.4', # missingReturn + '17.5', # argumentSize + '18.1', # pointerOutOfBounds + '18.2', # comparePointers + '18.3', # comparePointers + '18.6', # danglingLifetime + '19.1', # overlappingWriteUnion, overlappingWriteFunction + '20.6', # preprocessorErrorDirective + '21.13', # invalidFunctionArg + '21.17', # bufferAccessOutOfBounds + '21.18', # bufferAccessOutOfBounds + '22.1', # memleak, resourceLeak, memleakOnRealloc, leakReturnValNotUsed, leakNoVarFunctionCall + '22.2', # autovarInvalidDeallocation + '22.3', # incompatibleFileOpen + '22.4', # writeReadOnlyFile + '22.6' # useClosedFile + ] + + +def generateTable(): + # print table + numberOfRules = {} + numberOfRules[1] = 3 + numberOfRules[2] = 7 + numberOfRules[3] = 2 + numberOfRules[4] = 2 + numberOfRules[5] = 9 + numberOfRules[6] = 2 + numberOfRules[7] = 4 + numberOfRules[8] = 14 + numberOfRules[9] = 5 + numberOfRules[10] = 8 + numberOfRules[11] = 9 + numberOfRules[12] = 4 + numberOfRules[13] = 6 + numberOfRules[14] = 4 + numberOfRules[15] = 7 + numberOfRules[16] = 7 + numberOfRules[17] = 8 + numberOfRules[18] = 8 + numberOfRules[19] = 2 + numberOfRules[20] = 14 + numberOfRules[21] = 21 + numberOfRules[22] = 10 + + # Rules that can be checked with compilers: + # compiler = ['1.1', '1.2'] + + addon = getAddonRules() + cppcheck = getCppcheckRules() + for i1 in range(1, 23): + for i2 in range(1, numberOfRules[i1] + 1): + num = str(i1) + '.' + str(i2) + s = '' + if num in addon: + s = 'X (Addon)' + elif num in cppcheck: + s = 'X (Cppcheck)' + num = num + ' ' + print(num[:8] + s) + + +def remove_file_prefix(file_path, prefix): + """ + Remove a file path prefix from a give path. leftover + directory separators at the beginning of a file + after the removal are also stripped. + + Example: + '/remove/this/path/file.c' + with a prefix of: + '/remove/this/path' + becomes: + file.c + """ + result = None + if file_path.startswith(prefix): + result = file_path[len(prefix):] + # Remove any leftover directory separators at the + # beginning + result = result.lstrip('\\/') + else: + result = file_path + return result + + +class Rule(): + """Class to keep rule text and metadata""" + + MISRA_SEVERITY_LEVELS = ['Required', 'Mandatory', 'Advisory'] + + def __init__(self, num1, num2): + self.num1 = num1 + self.num2 = num2 + self.text = '' + self.misra_severity = '' + + @property + def num(self): + return self.num1 * 100 + self.num2 + + @property + def misra_severity(self): + return self._misra_severity + + @misra_severity.setter + def misra_severity(self, val): + if val in self.MISRA_SEVERITY_LEVELS: + self._misra_severity = val + else: + self._misra_severity = '' + + @property + def cppcheck_severity(self): + return 'style' + + def __repr__(self): + return "%d.%d (%s)" % (self.num1, self.num2, self.misra_severity) + + +class MisraSettings(): + """Hold settings for misra.py script.""" + + __slots__ = ["verify", "quiet", "show_summary"] + + def __init__(self, args): + """ + :param args: Arguments given by argparse. + """ + self.verify = False + self.quiet = False + self.show_summary = True + + if args.verify: + self.verify = True + if args.cli: + self.quiet = True + self.show_summary = False + if args.quiet: + self.quiet = True + if args.no_summary: + self.show_summary = False + + def __repr__(self): + attrs = ["verify", "quiet", "show_summary", "verify"] + return "{}({})".format( + "MisraSettings", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + +class MisraChecker: + + def __init__(self, settings, stdversion="c89"): + """ + :param settings: misra.py script settings. + """ + + self.settings = settings + + # Test validation rules lists + self.verify_expected = [] + self.verify_actual = [] + + # List of formatted violation messages + self.violations = {} + + # if --rule-texts is specified this dictionary + # is loaded with descriptions of each rule + # by rule number (in hundreds). + # ie rule 1.2 becomes 102 + self.ruleTexts = {} + self.ruleText_filename = None + + # Dictionary of dictionaries for rules to suppress + # Dict1 is keyed by rule number in the hundreds format of + # Major * 100 + minor. ie Rule 5.2 = (5*100) + 2 + # Dict 2 is keyed by filename. An entry of None means suppress globally. + # Each file name entry contains a list of tuples of (lineNumber, symbolName) + # or an item of None which indicates suppress rule for the entire file. + # The line and symbol name tuple may have None as either of its elements but + # should not be None for both. + self.suppressedRules = {} + + # Prefix to ignore when matching suppression files. + self.filePrefix = None + + # Number of all violations suppressed per rule + self.suppressionStats = {} + + self.stdversion = stdversion + + self.severity = None + + self.existing_violations = set() + + self._ctu_summary_typedefs = False + self._ctu_summary_tagnames = False + self._ctu_summary_identifiers = False + self._ctu_summary_usage = False + + self.path_premium_addon = None + + def __repr__(self): + attrs = ["settings", "verify_expected", "verify_actual", "violations", + "ruleTexts", "suppressedRules", "filePrefix", + "suppressionStats", "stdversion", "severity"] + return "{}({})".format( + "MisraChecker", + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + def get_num_significant_naming_chars(self, cfg): + if cfg.standards and cfg.standards.c == "c89": + return 31 + return 63 + + def _save_ctu_summary_typedefs(self, dumpfile, typedef_info): + if self._ctu_summary_typedefs: + return + + self._ctu_summary_typedefs = True + + summary = [] + for ti in typedef_info: + summary.append({ 'name': ti.name, 'file': ti.file, 'line': ti.linenr, 'column': ti.column, 'used': ti.used }) + if len(summary) > 0: + cppcheckdata.reportSummary(dumpfile, 'MisraTypedefInfo', summary) + + def _save_ctu_summary_tagnames(self, dumpfile, cfg): + if self._ctu_summary_tagnames: + return + + self._ctu_summary_tagnames = True + + summary = [] + # structs/enums + for scope in cfg.scopes: + if scope.className is None: + continue + if scope.className.startswith('Anonymous'): + continue + if scope.type not in ('Struct', 'Enum'): + continue + used = False + tok = scope.bodyEnd + while tok: + if tok.str == scope.className: + used = True + break + tok = tok.next + summary.append({'name': scope.className, 'used':used, 'file': scope.bodyStart.file, 'line': scope.bodyStart.linenr, 'column': scope.bodyStart.column}) + if len(summary) > 0: + cppcheckdata.reportSummary(dumpfile, 'MisraTagName', summary) + + def _save_ctu_summary_identifiers(self, dumpfile, cfg): + if self._ctu_summary_identifiers: + return + self._ctu_summary_identifiers = True + + external_identifiers = [] + internal_identifiers = [] + local_identifiers = [] + + def identifier(nameToken): + return {'name':nameToken.str, 'file':nameToken.file, 'line':nameToken.linenr, 'column':nameToken.column} + + names = [] + + for var in cfg.variables: + if var.nameToken is None: + continue + if var.access != 'Global': + if var.nameToken.str in names: + continue + names.append(var.nameToken.str) + local_identifiers.append(identifier(var.nameToken)) + elif var.isStatic: + names.append(var.nameToken.str) + i = identifier(var.nameToken) + i['inlinefunc'] = False + internal_identifiers.append(i) + else: + names.append(var.nameToken.str) + i = identifier(var.nameToken) + i['decl'] = var.isExtern + external_identifiers.append(i) + + for func in cfg.functions: + if func.tokenDef is None: + continue + if func.isStatic: + i = identifier(func.tokenDef) + i['inlinefunc'] = func.isInlineKeyword + internal_identifiers.append(i) + else: + if func.token is None: + i = identifier(func.tokenDef) + else: + i = identifier(func.token) + i['decl'] = func.token is None + external_identifiers.append(i) + + cppcheckdata.reportSummary(dumpfile, 'MisraExternalIdentifiers', external_identifiers) + cppcheckdata.reportSummary(dumpfile, 'MisraInternalIdentifiers', internal_identifiers) + cppcheckdata.reportSummary(dumpfile, 'MisraLocalIdentifiers', local_identifiers) + + def _save_ctu_summary_usage(self, dumpfile, cfg): + if self._ctu_summary_usage: + return + self._ctu_summary_usage = True + + names = [] + for token in cfg.tokenlist: + if not token.isName: + continue + if token.function and token != token.function.tokenDef: + if (not token.function.isStatic) and (token.str not in names): + names.append({'name': token.str, 'file': token.file}) + elif token.variable: + if token == token.variable.nameToken: + continue + if token.variable.access == 'Global' and (not token.variable.isStatic) and (token.str not in names): + names.append({'name': token.str, 'file': token.file}) + + if len(names) > 0: + cppcheckdata.reportSummary(dumpfile, 'MisraUsage', names) + + + def misra_1_2(self, cfg): + # gcc language extensions: https://gcc.gnu.org/onlinedocs/gcc/C-Extensions.html + for token in cfg.tokenlist: + if simpleMatch(token, '? :'): + self.reportError(token, 1, 2) + elif simpleMatch(token, '( {') and simpleMatch(token.next.link.previous, '; } )'): + self.reportError(token, 1, 2) + + + def misra_1_4(self, cfg): + for token in cfg.tokenlist: + if token.str in ('_Atomic', '_Noreturn', '_Generic', '_Thread_local', '_Alignas', '_Alignof'): + self.reportError(token, 1, 4) + if token.str.endswith('_s') and isFunctionCall(token.next, cfg.standards.c): + # See C specification C11 - Annex K, page 578 + if token.str in ('tmpfile_s', 'tmpnam_s', 'fopen_s', 'freopen_s', 'fprintf_s', 'fscanf_s', 'printf_s', 'scanf_s', + 'snprintf_s', 'sprintf_s', 'sscanf_s', 'vfprintf_s', 'vfscanf_s', 'vprintf_s', 'vscanf_s', + 'vsnprintf_s', 'vsprintf_s', 'vsscanf_s', 'gets_s', 'set_constraint_handler_s', 'abort_handler_s', + 'ignore_handler_s', 'getenv_s', 'bsearch_s', 'qsort_s', 'wctomb_s', 'mbstowcs_s', 'wcstombs_s', + 'memcpy_s', 'memmove_s', 'strcpy_s', 'strncpy_s', 'strcat_s', 'strncat_s', 'strtok_s', 'memset_s', + 'strerror_s', 'strerrorlen_s', 'strnlen_s', 'asctime_s', 'ctime_s', 'gmtime_s', 'localtime_s', + 'fwprintf_s', 'fwscanf_s', 'snwprintf_s', 'swprintf_s', 'swscanf_s', 'vfwprintf_s', 'vfwscanf_s', + 'vsnwprintf_s', 'vswprintf_s', 'vswscanf_s', 'vwprintf_s', 'vwscanf_s', 'wprintf_s', 'wscanf_s', + 'wcscpy_s', 'wcsncpy_s', 'wmemcpy_s', 'wmemmove_s', 'wcscat_s', 'wcsncat_s', 'wcstok_s', 'wcsnlen_s', + 'wcrtomb_s', 'mbsrtowcs_s', 'wcsrtombs_s'): + self.reportError(token, 1, 4) + + def misra_2_2(self, cfg): + for token in cfg.tokenlist: + if token.isExpandedMacro: + continue + if (token.str in '+-') and token.astOperand2: + if simpleMatch(token.astOperand1, '0'): + self.reportError(token.astOperand1, 2, 2) + elif simpleMatch(token.astOperand2, '0'): + self.reportError(token.astOperand2, 2, 2) + if token.str == '*' and token.astOperand2: + if simpleMatch(token.astOperand2, '0'): + self.reportError(token.astOperand1, 2, 2) + elif simpleMatch(token.astOperand1, '0'): + self.reportError(token.astOperand2, 2, 2) + elif simpleMatch(token.astOperand1, '1'): + self.reportError(token.astOperand1, 2, 2) + elif simpleMatch(token.astOperand2, '1'): + self.reportError(token.astOperand2, 2, 2) + + def misra_2_3(self, dumpfile, typedefInfo): + self._save_ctu_summary_typedefs(dumpfile, typedefInfo) + + def misra_2_4(self, dumpfile, cfg): + self._save_ctu_summary_tagnames(dumpfile, cfg) + + def misra_2_5(self, dumpfile, cfg): + used_macros = [] + unused_macro = {} + for m in cfg.macro_usage: + used_macros.append(m.name) + for directive in cfg.directives: + res_define = re.match(r'#define[ \t]+([a-zA-Z_][a-zA-Z_0-9]*).*', directive.str) + res_undef = re.match(r'#undef[ \t]+([a-zA-Z_][a-zA-Z_0-9]*).*', directive.str) + if res_define: + macro_name = res_define.group(1) + unused_macro[macro_name] = {'name': macro_name, 'used': (macro_name in used_macros), + 'file': directive.file, 'line': directive.linenr, 'column': directive.column} + elif res_undef: + macro_name = res_undef.group(1) + # assuming that if we have #undef, we also have #define somewhere + if macro_name in unused_macro: + unused_macro[macro_name]['used'] = True + else: + unused_macro[macro_name] = {'name': macro_name, 'used': True, 'file': directive.file, + 'line': directive.linenr, 'column': directive.column} + used_macros.append(macro_name) + + if unused_macro: + cppcheckdata.reportSummary(dumpfile, 'MisraMacro', list(unused_macro.values())) + + def misra_2_7(self, data): + for func in data.functions: + # Skip function with no parameter + if len(func.argument) == 0: + continue + # Setup list of function parameters + func_param_list = [] + for arg in func.argument: + func_arg = func.argument[arg] + if func_arg.typeStartToken and func_arg.typeStartToken.str == '...': + continue + func_param_list.append(func_arg) + # Search for scope of current function + for scope in data.scopes: + if (scope.type == "Function") and (scope.function == func): + # Search function body: remove referenced function parameter from list + token = scope.bodyStart + while token.next is not None and token != scope.bodyEnd and len(func_param_list) > 0: + if token.variable is not None and token.variable in func_param_list: + func_param_list.remove(token.variable) + token = token.next + # Emit a warning for each unused variable, but no more that one warning per line + reported_linenrs = set() + for func_param in func_param_list: + if func_param.nameToken: + linenr = func_param.nameToken + if linenr not in reported_linenrs: + self.reportError(func_param.nameToken, 2, 7) + reported_linenrs.add(linenr) + else: + linenr = func.tokenDef.linenr + if linenr not in reported_linenrs: + self.reportError(func.tokenDef, 2, 7) + reported_linenrs.add(linenr) + + def misra_3_1(self, rawTokens): + for token in rawTokens: + starts_with_double_slash = token.str.startswith('//') + starts_with_block_comment = token.str.startswith("/*") + s = token.str.lstrip('/') + if (starts_with_double_slash or starts_with_block_comment) and "/*" in s: + # Block comment inside of regular comment, violation + self.reportError(token, 3, 1) + elif starts_with_block_comment and "//" in s: + # "//" in block comment, check if it's a uri + while "//" in s: + possible_uri, s = s.split("//", 1) + if not re.search(r"\w+:$", possible_uri): + # Violation if no uri was found + self.reportError(token, 3, 1) + break + + def misra_4_1(self, rawTokens): + for token in rawTokens: + if (token.str[0] != '"') and (token.str[0] != '\''): + continue + if len(token.str) < 3: + continue + + delimiter = token.str[0] + symbols = token.str[1:-1] + + # No closing delimiter. This will not compile. + if token.str[-1] != delimiter: + continue + + if len(symbols) < 2: + continue + + if not hasNumericEscapeSequence(symbols): + continue + + # String literals that contains one or more escape sequences. All of them should be + # terminated. + for sequence in ['\\' + t for t in symbols.split('\\')][1:]: + if (isHexEscapeSequence(sequence) or isOctalEscapeSequence(sequence) or + isSimpleEscapeSequence(sequence)): + continue + self.reportError(token, 4, 1) + + def misra_4_2(self, rawTokens): + for token in rawTokens: + if (token.str[0] != '"') or (token.str[-1] != '"'): + continue + # Check for trigraph sequence as defined by ISO/IEC 9899:1999 + for sequence in ['??=', '??(', '??/', '??)', '??\'', '??<', '??!', '??>', '??-']: + if sequence in token.str[1:-1]: + # First trigraph sequence match, report error and leave loop. + self.reportError(token, 4, 2) + break + + def misra_5_1(self, data): + long_vars = {} + num_sign_chars = self.get_num_significant_naming_chars(data) + for var in data.variables: + if var.nameToken is None: + continue + if len(var.nameToken.str) <= num_sign_chars: + continue + if not hasExternalLinkage(var): + continue + long_vars.setdefault(var.nameToken.str[:num_sign_chars], []).append(var.nameToken) + for name_prefix in long_vars: + tokens = long_vars[name_prefix] + if len(tokens) < 2: + continue + for tok in sorted(tokens, key=lambda t: (t.linenr, t.column))[1:]: + self.reportError(tok, 5, 1) + + def misra_5_2(self, data): + scopeVars = {} + num_sign_chars = self.get_num_significant_naming_chars(data) + for var in data.variables: + if var.nameToken is None: + continue + if len(var.nameToken.str) <= num_sign_chars: + continue + if var.nameToken.scope not in scopeVars: + scopeVars.setdefault(var.nameToken.scope, {})["varlist"] = [] + scopeVars.setdefault(var.nameToken.scope, {})["scopelist"] = [] + scopeVars[var.nameToken.scope]["varlist"].append(var) + for scope in data.scopes: + if scope.nestedIn and scope.className: + if scope.nestedIn not in scopeVars: + scopeVars.setdefault(scope.nestedIn, {})["varlist"] = [] + scopeVars.setdefault(scope.nestedIn, {})["scopelist"] = [] + scopeVars[scope.nestedIn]["scopelist"].append(scope) + for scope in scopeVars: + if len(scopeVars[scope]["varlist"]) <= 1: + continue + for i, variable1 in enumerate(scopeVars[scope]["varlist"]): + for variable2 in scopeVars[scope]["varlist"][i + 1:]: + if variable1.isArgument and variable2.isArgument: + continue + if hasExternalLinkage(variable1) or hasExternalLinkage(variable2): + continue + if (variable1.nameToken.str[:num_sign_chars] == variable2.nameToken.str[:num_sign_chars] and + variable1 is not variable2): + if int(variable1.nameToken.linenr) > int(variable2.nameToken.linenr): + self.reportError(variable1.nameToken, 5, 2) + else: + self.reportError(variable2.nameToken, 5, 2) + for innerscope in scopeVars[scope]["scopelist"]: + if variable1.nameToken.str[:num_sign_chars] == innerscope.className[:num_sign_chars]: + if int(variable1.nameToken.linenr) > int(innerscope.bodyStart.linenr): + self.reportError(variable1.nameToken, 5, 2) + else: + self.reportError(innerscope.bodyStart, 5, 2) + if len(scopeVars[scope]["scopelist"]) <= 1: + continue + for i, scopename1 in enumerate(scopeVars[scope]["scopelist"]): + for scopename2 in scopeVars[scope]["scopelist"][i + 1:]: + if scopename1.className[:num_sign_chars] == scopename2.className[:num_sign_chars]: + if int(scopename1.bodyStart.linenr) > int(scopename2.bodyStart.linenr): + self.reportError(scopename1.bodyStart, 5, 2) + else: + self.reportError(scopename2.bodyStart, 5, 2) + + def misra_5_4(self, data): + num_sign_chars = self.get_num_significant_naming_chars(data) + macro = {} + compile_name = re.compile(r'#define ([a-zA-Z0-9_]+)') + compile_param = re.compile(r'#define ([a-zA-Z0-9_]+)[(]([a-zA-Z0-9_, ]+)[)]') + short_names = {} + macro_w_arg = [] + for dir in data.directives: + res1 = compile_name.match(dir.str) + if res1: + if dir not in macro: + macro.setdefault(dir, {})["name"] = [] + macro.setdefault(dir, {})["params"] = [] + full_name = res1.group(1) + macro[dir]["name"] = full_name + short_name = full_name[:num_sign_chars] + if short_name in short_names: + _dir = short_names[short_name] + if full_name != macro[_dir]["name"]: + self.reportError(dir, 5, 4) + else: + short_names[short_name] = dir + res2 = compile_param.match(dir.str) + if res2: + res_gp2 = res2.group(2).split(",") + res_gp2 = [macroname.replace(" ", "") for macroname in res_gp2] + macro[dir]["params"].extend(res_gp2) + macro_w_arg.append(dir) + for mvar in macro_w_arg: + for i, macroparam1 in enumerate(macro[mvar]["params"]): + for j, macroparam2 in enumerate(macro[mvar]["params"]): + if j > i and macroparam1[:num_sign_chars] == macroparam2[:num_sign_chars]: + self.reportError(mvar, 5, 4) + param = macroparam1 + if param[:num_sign_chars] in short_names: + m_var1 = short_names[param[:num_sign_chars]] + if m_var1.linenr > mvar.linenr: + self.reportError(m_var1, 5, 4) + else: + self.reportError(mvar, 5, 4) + + def misra_5_5(self, data): + num_sign_chars = self.get_num_significant_naming_chars(data) + macroNames = {} + compiled = re.compile(r'#define ([A-Za-z0-9_]+)') + for dir in data.directives: + res = compiled.match(dir.str) + if res: + macroNames[res.group(1)[:num_sign_chars]] = dir + for var in data.variables: + if var.nameToken and var.nameToken.str[:num_sign_chars] in macroNames: + self.reportError(var.nameToken, 5, 5) + for scope in data.scopes: + if scope.className and scope.className[:num_sign_chars] in macroNames: + self.reportError(scope.bodyStart, 5, 5) + + + def misra_5_6(self, dumpfile, typedefInfo): + self._save_ctu_summary_typedefs(dumpfile, typedefInfo) + + def misra_5_7(self, dumpfile, cfg): + self._save_ctu_summary_tagnames(dumpfile, cfg) + + def misra_5_8(self, dumpfile, cfg): + self._save_ctu_summary_identifiers(dumpfile, cfg) + + def misra_5_9(self, dumpfile, cfg): + self._save_ctu_summary_identifiers(dumpfile, cfg) + + def misra_6_1(self, data): + # Bitfield type must be bool or explicitly signed/unsigned int + for token in data.tokenlist: + if not token.valueType: + continue + if token.valueType.bits is None: + continue + if not token.variable: + continue + if not token.scope: + continue + if token.scope.type not in 'Struct': + continue + + if data.standards.c == 'c89': + if token.valueType.type != 'int' and not isUnsignedType(token.variable.typeStartToken.str): + self.reportError(token, 6, 1) + elif data.standards.c in ('c99', 'c11', 'c17', 'c18'): + if token.valueType.type == 'bool': + continue + + isExplicitlySignedOrUnsigned = False + typeToken = token.variable.typeStartToken + while typeToken: + if typeToken.isUnsigned or typeToken.isSigned or isUnsignedType(typeToken.str): + isExplicitlySignedOrUnsigned = True + break + + if typeToken is token.variable.typeEndToken: + break + + typeToken = typeToken.next + + if not isExplicitlySignedOrUnsigned: + self.reportError(token, 6, 1) + + + def misra_6_2(self, data): + # Bitfields of size 1 can not be signed + for token in data.tokenlist: + if not token.valueType: + continue + if not token.scope: + continue + if token.scope.type not in 'Struct': + continue + if token.valueType.bits == 1 and token.valueType.sign == 'signed': + self.reportError(token, 6, 2) + + + def misra_7_1(self, rawTokens): + compiled = re.compile(r'^0[0-7]+$') + for tok in rawTokens: + if compiled.match(tok.str): + self.reportError(tok, 7, 1) + + def misra_7_2(self, data): + for token in data.tokenlist: + if token.isInt and ('U' not in token.str.upper()) and token.valueType and token.valueType.sign == 'unsigned': + self.reportError(token, 7, 2) + + def misra_7_3(self, rawTokens): + # Match decimal digits, hex digits, decimal point, and e/E p/P floating + # point constant exponent separators. + compiled = re.compile(r'^(0[xX])?[0-9a-fA-FpP.]+[Uu]*l+[Uu]*$') + for tok in rawTokens: + if compiled.match(tok.str): + self.reportError(tok, 7, 3) + + def misra_7_4(self, data): + # A string literal shall not be assigned to an object unless the object's type + # is constant. + def reportErrorIfVariableIsNotConst(variable, stringLiteral): + if variable.valueType: + if (variable.valueType.constness % 2) != 1: + self.reportError(stringLiteral, 7, 4) + + for token in data.tokenlist: + if token.isString: + # Check normal variable assignment + variable = getAssignedVariableToken(token) + if variable: + reportErrorIfVariableIsNotConst(variable, token) + + # Check use as return value + function = getFunctionUsingReturnValue(token) + if function: + # "Primitive" test since there is no info available on return value type + if not tokenFollowsSequence(function.tokenDef, ['const', 'char', '*']): + self.reportError(token, 7, 4) + + # Check use as function parameter + if isFunctionCall(token, data.standards.c) and token.astOperand1 and token.astOperand1.function: + functionDeclaration = token.astOperand1.function + + if functionDeclaration.tokenDef: + if functionDeclaration.tokenDef is token.astOperand1: + # Token is not a function call, but it is the definition of the function + continue + + parametersUsed = getArguments(token) + for i in range(len(parametersUsed)): + usedParameter = parametersUsed[i] + parameterDefinition = functionDeclaration.argument.get(i+1) + + if usedParameter.isString and parameterDefinition and parameterDefinition.nameToken: + reportErrorIfVariableIsNotConst(parameterDefinition.nameToken, usedParameter) + + def misra_8_1(self, cfg): + for token in cfg.tokenlist: + if token.isImplicitInt and not token.isUnsigned and not token.isSigned: + self.reportError(token, 8, 1) + + def misra_8_2(self, data, rawTokens): + def getFollowingRawTokens(rawTokens, token, count): + following =[] + for rawToken in rawTokens: + if (rawToken.file == token.file and + rawToken.linenr == token.linenr and + rawToken.column == token.column): + for _ in range(count): + rawToken = rawToken.next + # Skip comments + while rawToken and (rawToken.str.startswith('/*') or rawToken.str.startswith('//')): + rawToken = rawToken.next + if rawToken is None: + break + following.append(rawToken) + return following + + # Zero arguments should be in form ( void ) + def checkZeroArguments(func, startCall, endCall): + if not startCall.isRemovedVoidParameter and len(func.argument) == 0: + if func.tokenDef.next: + self.reportError(func.tokenDef.next, 8, 2) + else: + self.reportError(func.tokenDef, 8, 2) + + def checkDeclarationArgumentsViolations(func, startCall, endCall): + # Collect the tokens for the arguments in function definition + argNameTokens = set() + for arg in func.argument: + argument = func.argument[arg] + typeStartToken = argument.typeStartToken + if typeStartToken is None: + continue + nameToken = argument.nameToken + if nameToken is None: + continue + argNameTokens.add(nameToken) + + # Check if we have the same number of variables in both the + # declaration and the definition. + # + # TODO: We actually need to check if the names of the arguments are + # the same. But we can't do this because we have no links to + # variables in the arguments in function definition in the dump file. + foundVariables = 0 + while startCall and startCall != endCall: + if startCall.varId: + foundVariables += 1 + startCall = startCall.next + + if len(argNameTokens) != foundVariables: + if func.tokenDef.next: + self.reportError(func.tokenDef.next, 8, 2) + else: + self.reportError(func.tokenDef, 8, 2) + + def checkDefinitionArgumentsViolations(func, startCall, endCall): + for arg in func.argument: + argument = func.argument[arg] + typeStartToken = argument.typeStartToken + if typeStartToken is None: + continue + + # Arguments should have a name unless variable length arg + nameToken = argument.nameToken + if nameToken is None and typeStartToken.str != '...': + self.reportError(typeStartToken, 8, 2) + + # Type declaration on next line (old style declaration list) is not allowed + if typeStartToken.linenr > endCall.linenr: + self.reportError(typeStartToken, 8, 2) + + # Check arguments in function declaration + for func in data.functions: + + # Check arguments in function definition + tokenImpl = func.token + if tokenImpl: + startCall = tokenImpl.next + if startCall is None or startCall.str != '(': + continue + endCall = startCall.link + if endCall is None or endCall.str != ')': + continue + checkZeroArguments(func, startCall, endCall) + checkDefinitionArgumentsViolations(func, startCall, endCall) + + # Check arguments in function declaration + tokenDef = func.tokenDef + if tokenDef: + startCall = func.tokenDef.next + if startCall is None or startCall.str != '(': + continue + endCall = startCall.link + if endCall is None or endCall.str != ')': + continue + checkZeroArguments(func, startCall, endCall) + if tokenImpl: + checkDeclarationArgumentsViolations(func, startCall, endCall) + else: + # When there is no function definition, we should execute + # its checks for the declaration token. The point is that without + # a known definition we have no Function.argument list required + # for declaration check. + checkDefinitionArgumentsViolations(func, startCall, endCall) + + # Check arguments in pointer declarations + for var in data.variables: + if not var.isPointer: + continue + + if var.nameToken is None: + continue + + rawTokensFollowingPtr = getFollowingRawTokens(rawTokens, var.nameToken, 3) + if len(rawTokensFollowingPtr) != 3: + continue + + # Compliant: returnType (*ptrName) ( ArgType ) + # Non-compliant: returnType (*ptrName) ( ) + if (rawTokensFollowingPtr[0].str == ')' and + rawTokensFollowingPtr[1].str == '(' and + rawTokensFollowingPtr[2].str == ')'): + self.reportError(var.nameToken, 8, 2) + + def insert_in_dict(self, dict_name,key, value): + if key not in dict_name: + dict_name[key] = [] + dict_name[key].append(value) + def misra_8_4(self, cfg): + for func in cfg.functions: + if func.isStatic: + continue + if func.token is None: + continue + if not is_source_file(func.token.file): + continue + if func.token != func.tokenDef: + continue + if func.tokenDef.str == 'main': + continue + self.reportError(func.tokenDef, 8, 4) + extern_var_with_def = {} + extern_var_without_def = {} + for var in cfg.variables: + if not var.isGlobal: + continue + if var.isStatic: + continue + if var.nameToken is None: + continue + tok = var.nameToken + if tok.next.str == ";": + if tok.next.isSplittedVarDeclEq: + self.insert_in_dict(extern_var_with_def, tok.str, tok) + else: + self.insert_in_dict(extern_var_without_def, tok.str, tok) + else: + self.insert_in_dict(extern_var_without_def, var.nameToken.str, var.nameToken) + + for var in extern_var_with_def: + if var not in extern_var_without_def: + for t in extern_var_with_def[var]: + self.reportError(t, 8, 4) + + for var_str, var_tok in extern_var_without_def.items(): + warn = True + if var_str not in extern_var_with_def: + for t in var_tok: + if t.variable.isExtern: + warn = False + break + if warn: + for t in var_tok: + self.reportError(t, 8, 4) + + def misra_8_5(self, dumpfile, cfg): + self._save_ctu_summary_identifiers(dumpfile, cfg) + + def misra_8_6(self, dumpfile, cfg): + self._save_ctu_summary_identifiers(dumpfile, cfg) + + def misra_8_7(self, dumpfile, cfg): + self._save_ctu_summary_usage(dumpfile, cfg) + + def misra_8_8(self, cfg): + vars = {} + for var in cfg.variables: + if var.access != 'Global': + continue + if var.nameToken is None: + continue + varname = var.nameToken.str + if varname in vars: + vars[varname].append(var) + else: + vars[varname] = [var] + for varname, varlist in vars.items(): + static_var = None + extern_var = None + for var in varlist: + if var.isStatic: + static_var = var + elif var.isExtern: + extern_var = var + if static_var and extern_var: + self.reportError(extern_var.nameToken, 8, 8) + + def misra_8_9(self, cfg): + variables = {} + for scope in cfg.scopes: + if scope.type != 'Function': + continue + variables_used_in_scope = [] + tok = scope.bodyStart + while tok != scope.bodyEnd: + if tok.variable and tok.variable.access == 'Global' and tok.variable.isStatic: + if tok.variable not in variables_used_in_scope: + variables_used_in_scope.append(tok.variable) + tok = tok.next + for var in variables_used_in_scope: + if var in variables: + variables[var] += 1 + else: + variables[var] = 1 + for var, count in variables.items(): + if count == 1: + self.reportError(var.nameToken, 8, 9) + + + def misra_8_10(self, cfg): + for func in cfg.functions: + if func.isInlineKeyword and not func.isStatic: + self.reportError(func.tokenDef, 8, 10) + + def misra_8_11(self, data): + for var in data.variables: + if var.isExtern and simpleMatch(var.nameToken.next, '[ ]') and var.nameToken.scope.type == 'Global': + self.reportError(var.nameToken, 8, 11) + + def misra_8_12(self, data): + for scope in data.scopes: + if scope.type != 'Enum': + continue + enum_values = [] + implicit_enum_values = [] + e_token = scope.bodyStart.next + while e_token != scope.bodyEnd: + if e_token.str == '(': + e_token = e_token.link + continue + if e_token.previous.str not in ',{': + e_token = e_token.next + continue + if e_token.isName and e_token.values and e_token.valueType and e_token.valueType.typeScope == scope: + token_values = [v.intvalue for v in e_token.values] + enum_values += token_values + if e_token.next.str != "=": + implicit_enum_values += token_values + e_token = e_token.next + for implicit_enum_value in implicit_enum_values: + if enum_values.count(implicit_enum_value) != 1: + self.reportError(scope.bodyStart, 8, 12) + + def misra_8_14(self, rawTokens): + for token in rawTokens: + if token.str == 'restrict': + self.reportError(token, 8, 14) + + def misra_9_2(self, data): + misra_9.misra_9_x(self, data, 902) + + def misra_9_3(self, data): + misra_9.misra_9_x(self, data, 903) + + def misra_9_4(self, data): + misra_9.misra_9_x(self, data, 904) + + def misra_9_5(self, data, rawTokens): + misra_9.misra_9_x(self, data, 905, rawTokens) + #for token in rawTokens: + # if simpleMatch(token, '[ ] = { ['): + # self.reportError(token, 9, 5) + + def misra_10_1(self, data): + for token in data.tokenlist: + if not token.isOp: + continue + + for t1, t2 in itertools.product( + list(getTernaryOperandsRecursive(token.astOperand1) or [token.astOperand1]), + list(getTernaryOperandsRecursive(token.astOperand2) or [token.astOperand2]), + ): + e1 = getEssentialTypeCategory(t1) + e2 = getEssentialTypeCategory(t2) + if not e1 or not e2: + continue + if token.str in ('<<', '>>'): + if not isUnsignedType(e1): + self.reportError(token, 10, 1) + elif not isUnsignedType(e2) and not token.astOperand2.isNumber: + self.reportError(token, 10, 1) + elif token.str in ('~', '&', '|', '^'): + e1_et = getEssentialType(token.astOperand1) + e2_et = getEssentialType(token.astOperand2) + if e1_et == 'char' or e2_et == 'char': + self.reportError(token, 10, 1) + + def misra_10_2(self, data): + def isEssentiallySignedOrUnsigned(op): + e = getEssentialType(op) + return e and (e.split(' ')[0] in ('unsigned', 'signed')) + + def isEssentiallyChar(op): + if op is None: + return False + if op.str == '+': + return isEssentiallyChar(op.astOperand1) or isEssentiallyChar(op.astOperand2) + return op.isChar + + for token in data.tokenlist: + if token.str not in ('+', '-'): + continue + + if (not isEssentiallyChar(token.astOperand1)) and (not isEssentiallyChar(token.astOperand2)): + continue + + if token.str == '+': + if isEssentiallyChar(token.astOperand1) and not isEssentiallySignedOrUnsigned(token.astOperand2): + self.reportError(token, 10, 2) + if isEssentiallyChar(token.astOperand2) and not isEssentiallySignedOrUnsigned(token.astOperand1): + self.reportError(token, 10, 2) + + if token.str == '-': + e1 = getEssentialType(token.astOperand1) + if e1 and e1.split(' ')[-1] != 'char': + self.reportError(token, 10, 2) + if not isEssentiallyChar(token.astOperand2) and not isEssentiallySignedOrUnsigned(token.astOperand2): + self.reportError(token, 10, 2) + + def misra_10_3(self, cfg): + def get_category(essential_type): + if essential_type: + if essential_type in ('bool', 'char'): + return essential_type + if essential_type.split(' ')[-1] in ('float', 'double'): + return 'floating' + if essential_type.split(' ')[0] in ('unsigned', 'signed'): + return essential_type.split(' ')[0] + return None + for tok in cfg.tokenlist: + if tok.isAssignmentOp: + lhs = getEssentialType(tok.astOperand1) + rhs = getEssentialType(tok.astOperand2) + #print(lhs) + #print(rhs) + if lhs is None or rhs is None: + continue + lhs_category = get_category(lhs) + rhs_category = get_category(rhs) + if lhs_category and rhs_category and lhs_category != rhs_category and rhs_category not in ('signed','unsigned'): + self.reportError(tok, 10, 3) + if bitsOfEssentialType(lhs) < bitsOfEssentialType(rhs) and (lhs != "bool" or tok.astOperand2.str not in ('0','1')): + self.reportError(tok, 10, 3) + + def misra_10_4(self, data): + op = {'+', '-', '*', '/', '%', '&', '|', '^', '+=', '-=', ':'} + for token in data.tokenlist: + if token.str not in op and not token.isComparisonOp: + continue + if not token.astOperand1 or not token.astOperand2: + continue + if not token.astOperand1.valueType or not token.astOperand2.valueType: + continue + if ((token.astOperand1.str in op or token.astOperand1.isComparisonOp) and + (token.astOperand2.str in op or token.astOperand2.isComparisonOp)): + e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2.astOperand1) + elif token.astOperand1.str in op or token.astOperand1.isComparisonOp: + e1, e2 = getEssentialCategorylist(token.astOperand1.astOperand2, token.astOperand2) + elif token.astOperand2.str in op or token.astOperand2.isComparisonOp: + e1, e2 = getEssentialCategorylist(token.astOperand1, token.astOperand2.astOperand1) + else: + e1, e2 = getEssentialCategorylist(token.astOperand1, token.astOperand2) + if token.str == "+=" or token.str == "+": + if e1 == "char" and (e2 == "signed" or e2 == "unsigned"): + continue + if e2 == "char" and (e1 == "signed" or e1 == "unsigned"): + continue + if token.str == "-=" or token.str == "-": + if e1 == "char" and (e2 == "signed" or e2 == "unsigned"): + continue + if e1 and e2 and (e1.find('Anonymous') != -1 and (e2 == "signed" or e2 == "unsigned")): + continue + if e1 and e2 and (e2.find('Anonymous') != -1 and (e1 == "signed" or e1 == "unsigned")): + continue + if e1 and e2 and e1 != e2: + self.reportError(token, 10, 4) + + def misra_10_5(self, cfg): + def _get_essential_category(token): + essential_type = getEssentialType(token) + #print(essential_type) + if essential_type: + if essential_type in ('bool', 'char'): + return essential_type + if essential_type.split(' ')[-1] in ('float', 'double'): + return 'floating' + if essential_type.split(' ')[0] in ('unsigned', 'signed'): + return essential_type.split(' ')[0] + return None + for token in cfg.tokenlist: + if not isCast(token): + continue + to_type = _get_essential_category(token) + #print(to_type) + if to_type is None: + continue + from_type = _get_essential_category(token.astOperand1) + #print(from_type) + if from_type is None: + continue + if to_type == from_type: + continue + if to_type == 'bool' or from_type == 'bool': + if token.astOperand1.isInt and token.astOperand1.getKnownIntValue() == 1: + # Exception + continue + self.reportError(token, 10, 5) + continue + if to_type == 'enum': + self.reportError(token, 10, 5) + continue + if from_type == 'float' and to_type == 'char': + self.reportError(token, 10, 5) + continue + if from_type == 'char' and to_type == 'float': + self.reportError(token, 10, 5) + continue + + def misra_10_6(self, data): + for token in data.tokenlist: + if token.str != '=' or not token.astOperand1 or not token.astOperand2: + continue + if not is_composite_expr(token.astOperand2): + continue + vt1 = token.astOperand1.valueType + vt2 = token.astOperand2.valueType + if not vt1 or vt1.pointer > 0: + continue + if not vt2 or vt2.pointer > 0: + continue + try: + if isCast(token.astOperand2): + e = vt2.type + else: + e = getEssentialType(token.astOperand2) + if not e: + continue + if e == "char" and vt1.type == "int": + # When arithmetic operations are performed on char values, they are usually promoted to int + continue + lhsbits = vt1.bits if vt1.bits else bitsOfEssentialType(vt1.type) + if lhsbits > bitsOfEssentialType(e): + self.reportError(token, 10, 6) + except ValueError: + pass + + def misra_10_7(self, cfg): + for token in cfg.tokenlist: + if token.astOperand1 is None or token.astOperand2 is None: + continue + if not token.isArithmeticalOp: + continue + if not is_composite_expr(token): + continue + parent = token.astParent + if parent is None: + continue + if not parent.isArithmeticalOp: + if not parent.isAssignmentOp: + continue + if parent.str == '=': + continue + token_type = getEssentialType(token) + if token_type is None: + continue + sibling = parent.astOperand1 if (token == parent.astOperand2) else parent.astOperand2 + sibling_type = getEssentialType(sibling) + if sibling_type is None: + continue + b1 = bitsOfEssentialType(token_type) + b2 = bitsOfEssentialType(sibling_type) + if b1 > 0 and b1 < b2: + self.reportError(token, 10, 7) + + def misra_10_8(self, data): + for token in data.tokenlist: + if not isCast(token): + continue + if not token.valueType or token.valueType.pointer > 0: + continue + if not token.astOperand1.valueType or token.astOperand1.valueType.pointer > 0: + continue + if not token.astOperand1.astOperand1: + continue + if token.astOperand1.str not in ('+', '-', '*', '/', '%', '&', '|', '^', '>>', "<<", "?", ":", '~'): + continue + if token.astOperand1.str != '~' and not token.astOperand1.astOperand2: + continue + if token.astOperand1.str == '~': + e2 = getEssentialTypeCategory(token.astOperand1.astOperand1) + else: + e2, e3 = getEssentialCategorylist(token.astOperand1.astOperand1, token.astOperand1.astOperand2) + if e2 != e3: + continue + e1 = getEssentialTypeCategory(token) + if e1 != e2: + self.reportError(token, 10, 8) + else: + try: + e = getEssentialType(token.astOperand1) + if not e: + continue + if bitsOfEssentialType(token.valueType.type) > bitsOfEssentialType(e): + self.reportError(token, 10, 8) + except ValueError: + pass + + def misra_11_1(self, data): + for token in data.tokenlist: + to_from = get_type_conversion_to_from(token) + if to_from is None: + continue + from_type = get_function_pointer_type(to_from[1]) + if from_type is None: + continue + to_type = get_function_pointer_type(to_from[0]) + if to_type is None or to_type != from_type: + self.reportError(token, 11, 1) + + def misra_11_2(self, data): + def get_pointer_type(type_token): + while type_token and (type_token.str in ('const', 'struct')): + type_token = type_token.next + if type_token is None: + return None + if not type_token.isName: + return None + return type_token if (type_token.next and type_token.next.str == '*') else None + + incomplete_types = [] + + for token in data.tokenlist: + if token.str == 'struct' and token.next and token.next.next and token.next.isName and token.next.next.str == ';': + incomplete_types.append(token.next.str) + to_from = get_type_conversion_to_from(token) + if to_from is None: + continue + to_pointer_type_token = get_pointer_type(to_from[0]) + if to_pointer_type_token is None: + continue + from_pointer_type_token = get_pointer_type(to_from[1]) + if from_pointer_type_token is None: + continue + if to_pointer_type_token.str == from_pointer_type_token.str: + continue + if from_pointer_type_token.typeScope is None and (from_pointer_type_token.str in incomplete_types): + self.reportError(token, 11, 2) + elif to_pointer_type_token.typeScope is None and (to_pointer_type_token.str in incomplete_types): + self.reportError(token, 11, 2) + + def misra_11_3(self, data): + for token in data.tokenlist: + if not isCast(token): + continue + vt1 = token.valueType + vt2 = token.astOperand1.valueType + if not vt1 or not vt2: + continue + if vt1.type == 'void' or vt2.type == 'void': + continue + if (vt1.pointer > 0 and vt1.type == 'record' and + vt2.pointer > 0 and vt2.type == 'record' and + vt1.typeScopeId != vt2.typeScopeId): + self.reportError(token, 11, 3) + elif (vt1.pointer == vt2.pointer and vt1.pointer > 0 and + vt1.type != vt2.type and vt1.type != 'char'): + self.reportError(token, 11, 3) + + def misra_11_4(self, data): + # Get list of macro definitions + macros = {} + for directive in data.directives: + #define X ((peripheral_t *)0x40000U) + res = re.match(r'#define ([A-Za-z0-9_]+).*', directive.str) + if res: + if res.group(1) in macros: + macros[res.group(1)].append(directive) + else: + macros[res.group(1)] = [directive] + + # If macro definition is non-compliant then warn about the macro definition instead of + # the macro usages. To reduce diagnostics for a non-compliant macro. + bad_macros = [] + for token in data.tokenlist: + if not isCast(token): + continue + vt1 = token.valueType + vt2 = token.astOperand1.valueType + if not vt1 or not vt2: + continue + if vt2.pointer > 0 and vt1.pointer == 0 and (vt1.isIntegral() or vt1.isEnum()) and vt2.type != 'void': + self.reportError(token, 11, 4) + elif vt1.pointer > 0 and vt2.pointer == 0 and (vt2.isIntegral() or vt2.isEnum()) and vt1.type != 'void': + if token.macroName is not None and \ + token.macroName == token.astOperand1.macroName and \ + token.astOperand1.isInt and \ + token.link.previous.str == '*' and \ + token.macroName == token.link.previous.macroName and \ + token.macroName in macros and \ + len(macros[token.macroName]) == 1: + if token.macroName not in bad_macros: + bad_macros.append(token.macroName) + self.reportError(macros[token.macroName][0], 11, 4) + continue + self.reportError(token, 11, 4) + + def misra_11_5(self, data): + for token in data.tokenlist: + if not isCast(token): + if token.astOperand1 and token.astOperand2 and token.str == "=" and token.next.str != "(": + vt1 = token.astOperand1.valueType + vt2 = token.astOperand2.valueType + if not vt1 or not vt2: + continue + if vt1.pointer > 0 and vt1.type != 'void' and vt2.pointer == vt1.pointer and vt2.type == 'void': + self.reportError(token, 11, 5) + continue + if token.astOperand1.astOperand1 and token.astOperand1.astOperand1.str in ( + 'malloc', 'calloc', 'realloc', 'free'): + continue + vt1 = token.valueType + vt2 = token.astOperand1.valueType + if not vt1 or not vt2: + continue + if vt1.pointer > 0 and vt1.type != 'void' and vt2.pointer == vt1.pointer and vt2.type == 'void': + self.reportError(token, 11, 5) + + def misra_11_6(self, data): + for token in data.tokenlist: + if not isCast(token): + continue + vt1 = token.valueType + vt2 = token.astOperand1.valueType + if not vt1 or not vt2: + continue + if vt1.pointer == 1 and vt1.type == 'void' and vt2.pointer == 0 and token.astOperand1.getKnownIntValue() != 0: + self.reportError(token, 11, 6) + elif vt1.pointer == 0 and vt1.type != 'void' and vt2.pointer == 1 and vt2.type == 'void': + self.reportError(token, 11, 6) + + def misra_11_7(self, data): + for token in data.tokenlist: + if not isCast(token): + continue + vt1 = token.valueType + vt2 = token.astOperand1.valueType + if not vt1 or not vt2: + continue + if token.astOperand1.astOperand1: + continue + if (vt2.pointer > 0 and vt1.pointer == 0 and + not vt1.isIntegral() and not vt1.isEnum() and + vt1.type != 'void'): + self.reportError(token, 11, 7) + elif (vt1.pointer > 0 and vt2.pointer == 0 and + not vt2.isIntegral() and not vt2.isEnum() and + vt1.type != 'void'): + self.reportError(token, 11, 7) + + def misra_11_8(self, data): + # TODO: reuse code in CERT-EXP05 + for token in data.tokenlist: + if isCast(token): + # C-style cast + if not token.valueType: + continue + if not token.astOperand1.valueType: + continue + if token.valueType.pointer == 0: + continue + if token.astOperand1.valueType.pointer == 0: + continue + const1 = token.valueType.constness + const2 = token.astOperand1.valueType.constness + if (const1 % 2) < (const2 % 2): + self.reportError(token, 11, 8) + + elif token.str == '(' and token.astOperand1 and token.astOperand2 and token.astOperand1.function: + # Function call + function = token.astOperand1.function + arguments = getArguments(token) + for argnr, argvar in function.argument.items(): + if argnr < 1 or argnr > len(arguments): + continue + if not argvar.isPointer: + continue + argtok = arguments[argnr - 1] + if not argtok.valueType: + continue + if argtok.valueType.pointer == 0: + continue + const1 = argvar.constness + const2 = arguments[argnr - 1].valueType.constness + if (const1 % 2) < (const2 % 2): + self.reportError(token, 11, 8) + + def misra_11_9(self, data): + for token in data.tokenlist: + if token.astOperand1 and token.astOperand2 and token.str in ["=", "==", "!=", "?", ":"]: + vt1 = token.astOperand1.valueType + vt2 = token.astOperand2.valueType + if not vt1 or not vt2: + continue + if vt1.pointer > 0 and vt2.pointer == 0 and token.astOperand2.str == "NULL": + continue + if (token.astOperand2.values and vt1.pointer > 0 and + vt2.pointer == 0 and token.astOperand2.values): + if token.astOperand2.getValue(0): + self.reportError(token, 11, 9) + + def misra_12_1_sizeof(self, rawTokens): + state = 0 + compiled = re.compile(r'^[a-zA-Z_]') + for tok in rawTokens: + if tok.str.startswith('//') or tok.str.startswith('/*'): + continue + if tok.str == 'sizeof': + state = 1 + elif state == 1: + if compiled.match(tok.str): + state = 2 + else: + state = 0 + elif state == 2: + if tok.str in ('+', '-', '*', '/', '%'): + self.reportError(tok, 12, 1) + else: + state = 0 + + def misra_12_1(self, data): + for token in data.tokenlist: + p = getPrecedence(token) + if p < 2 or p > 12: + continue + p1 = getPrecedence(token.astOperand1) + if p < p1 <= 12 and numberOfParentheses(token.astOperand1, token): + self.reportError(token, 12, 1) + continue + p2 = getPrecedence(token.astOperand2) + if p < p2 <= 12 and numberOfParentheses(token, token.astOperand2): + self.reportError(token, 12, 1) + continue + + def misra_12_2(self, data): + for token in data.tokenlist: + if not (token.str in ('<<', '>>')): + continue + if (not token.astOperand2) or (not token.astOperand2.values): + continue + maxval = 0 + for val in token.astOperand2.values: + if val.intvalue and val.intvalue > maxval: + maxval = val.intvalue + if maxval == 0: + continue + sz = bitsOfEssentialType(getEssentialType(token.astOperand1)) + if sz <= 0: + continue + if maxval >= sz: + self.reportError(token, 12, 2) + + def misra_12_3(self, data): + for token in data.tokenlist: + if token.str == ';' and (token.isSplittedVarDeclComma is True): + self.reportError(token, 12, 3) + if token.str == ',' and token.astParent and token.astParent.str == ';': + self.reportError(token, 12, 3) + if token.str == ',' and token.astParent is None: + if token.scope.type in ('Class', 'Struct'): + # Is this initlist.. + tok = token + while tok and tok.str == ',': + tok = tok.next + if tok and tok.next and tok.isName and tok.next.str == '(': + tok = tok.next.link.next + if tok.str == '{': + # This comma is used in initlist, do not warn + continue + prev = token.previous + while prev: + if prev.str == ';': + self.reportError(token, 12, 3) + break + if prev.str in '({[': + break + if prev.str in ')}]': + prev = prev.link + prev = prev.previous + + def misra_12_4_check_expr(self, expr): + if not expr.astOperand2 or not expr.astOperand1: + return + if expr.valueType is None: + return + if expr.valueType.sign is None or expr.valueType.sign != 'unsigned': + return + if expr.valueType.pointer > 0: + return + if not expr.valueType.isIntegral(): + return + op1 = expr.astOperand1.getKnownIntValue() + if op1 is None: + return + op2 = expr.astOperand2.getKnownIntValue() + if op2 is None: + return + bits = bitsOfEssentialType('unsigned ' + expr.valueType.type) + if bits <= 0 or bits >= 64: + return + max_value = (1 << bits) - 1 + if not is_constant_integer_expression(expr): + return + if expr.str == '+' and op1 + op2 > max_value: + self.reportError(expr, 12, 4) + elif expr.str == '-' and op1 - op2 < 0: + self.reportError(expr, 12, 4) + elif expr.str == '*' and op1 * op2 > max_value: + self.reportError(expr, 12, 4) + def misra_12_4(self, cfg): + if not cfg.tokenlist: + return + expr = cfg.tokenlist[0] + while expr.next: + expr = expr.next + if expr.str == "?" and expr.astOperand2.str == ":": + known_value = expr.astOperand1.getKnownIntValue() + if known_value == 1: + tok = expr + while tok != expr.astOperand2: + self.misra_12_4_check_expr(tok) + tok = tok.next + expr = tok + while expr.str not in (";", "{", "}"): + expr = expr.next + continue + if known_value == 0: + expr = expr.astOperand2 + self.misra_12_4_check_expr(expr) + + + def misra_13_1(self, data): + for token in data.tokenlist: + if simpleMatch(token, ") {") and token.next.astParent == token.link: + pass + elif not simpleMatch(token, '= {'): + continue + init = token.next + end = init.link + if not end: + continue # syntax is broken + + tn = init + while tn and tn != end: + if tn.str == '[' and tn.link: + tn = tn.link + if tn and tn.next and tn.next.str == '=': + tn = tn.next.next + continue + break + if tn.str == '.' and tn.next and tn.next.isName: + tn = tn.next + if tn.next and tn.next.str == '=': + tn = tn.next.next + continue + if tn.str in {'++', '--'} or tn.isAssignmentOp: + self.reportError(init, 13, 1) + tn = tn.next + + def misra_13_3(self, data): + for token in data.tokenlist: + if token.str not in ('++', '--'): + continue + astTop = token + while astTop.astParent and astTop.astParent.str not in (',', ';'): + astTop = astTop.astParent + if countSideEffects(astTop) >= 2: + self.reportError(astTop, 13, 3) + + def misra_13_4(self, data): + for token in data.tokenlist: + if token.str != '=': + continue + if not token.astParent: + continue + if (token.astOperand1 is None) or (token.astOperand2 is None): + continue + if token.astOperand1.str == '[' and token.astOperand1.previous.str in ('{', ','): + continue + if not (token.astParent.str in [',', ';', '{']): + self.reportError(token, 13, 4) + + def misra_13_5(self, data): + for token in data.tokenlist: + if token.isLogicalOp and countSideEffectsRecursive(token.astOperand2) > 0: + self.reportError(token, 13, 5) + + def misra_13_6(self, data): + for token in data.tokenlist: + if token.str == 'sizeof' and countSideEffectsRecursive(token.next) > 0: + self.reportError(token, 13, 6) + + def misra_14_1(self, data): + for token in data.tokenlist: + if token.str == 'for': + exprs = getForLoopExpressions(token) + if not exprs: + continue + for counter in findCounterTokens(exprs[1]): + if counter.valueType and counter.valueType.isFloat(): + self.reportError(token, 14, 1) + elif token.str == 'while': + if isFloatCounterInWhileLoop(token): + self.reportError(token, 14, 1) + + def misra_14_2(self, data): + for token in data.tokenlist: + if token.str == 'for': + expressions = getForLoopExpressions(token) + if not expressions: + continue + if expressions[0] and not expressions[0].isAssignmentOp: + if expressions[0].str != "(" or not expressions[0].previous.isName: + self.reportError(token, 14, 2) + if countSideEffectsRecursive(expressions[1]) > 0: + self.reportError(token, 14, 2) + if countSideEffectsRecursive(expressions[2]) > 1: + self.reportError(token, 14, 2) + + counter_vars_first_clause, counter_vars_exit_modified = getForLoopCounterVariables(token, data) + if len(counter_vars_exit_modified) == 0: + # if it's not possible to identify a loop counter, all 3 clauses must be empty + for idx in range(len(expressions)): + if expressions[idx]: + self.reportError(token, 14, 2) + break + elif len(counter_vars_exit_modified) > 1: + # there shall be a single loop counter + self.reportError(token, 14, 2) + else: # len(counter_vars_exit_modified) == 1: + loop_counter = counter_vars_exit_modified.pop() + # if the first clause is not empty, then it shall (declare and) initialize the loop counter + if expressions[0] is not None and loop_counter not in counter_vars_first_clause: + self.reportError(token, 14, 2) + + # Inspect modification of loop counter in loop body + body_scope = token.next.link.next.scope + if not body_scope: + continue + tn = body_scope.bodyStart + while tn and tn != body_scope.bodyEnd: + if tn.variable == loop_counter: + if tn.next: + # TODO: Check modifications in function calls + if countSideEffectsRecursive(tn.next) > 0: + self.reportError(tn, 14, 2) + tn = tn.next + + def misra_14_4(self, data): + for token in data.tokenlist: + if token.str != '(': + continue + if not token.astOperand1 or not (token.astOperand1.str in ['if', 'while']): + continue + if isBoolExpression(token.astOperand2): + continue + if token.astOperand2.valueType: + self.reportError(token, 14, 4) + + def misra_15_1(self, data): + for token in data.tokenlist: + if token.str == "goto": + self.reportError(token, 15, 1) + + def misra_15_2(self, data): + for token in data.tokenlist: + if token.str != 'goto': + continue + if (not token.next) or (not token.next.isName): + continue + if not findGotoLabel(token): + self.reportError(token, 15, 2) + + def misra_15_3(self, data): + for token in data.tokenlist: + if token.str != 'goto': + continue + if (not token.next) or (not token.next.isName): + continue + tok = findGotoLabel(token) + if not tok: + continue + scope = token.scope + while scope and scope != tok.scope: + scope = scope.nestedIn + if not scope: + self.reportError(token, 15, 3) + # Jump crosses from one switch-clause to another is non-compliant + elif scope.type == 'Switch': + # Search for start of a current case block + tcase_start = token + while tcase_start and tcase_start.str not in ('case', 'default'): + tcase_start = tcase_start.previous + # Make sure that goto label doesn't occurs in the other + # switch-clauses + if tcase_start: + t = scope.bodyStart + in_this_case = False + while t and t != scope.bodyEnd: + if t == tcase_start: + in_this_case = True + if in_this_case and t.str not in ('case', 'default'): + in_this_case = False + if t == tok and not in_this_case: + self.reportError(token, 15, 3) + break + t = t.next + + def misra_15_4(self, data): + # Return a list of scopes affected by a break or goto + def getLoopsAffectedByBreak(knownLoops, scope, isGoto): + if scope and scope.type and scope.type not in ['Global', 'Function']: + if not isGoto and scope.type == 'Switch': + return + if scope.type in ['For', 'While', 'Do']: + knownLoops.append(scope) + if not isGoto: + return + getLoopsAffectedByBreak(knownLoops, scope.nestedIn, isGoto) + + loopWithBreaks = {} + for token in data.tokenlist: + if token.str not in ['break', 'goto']: + continue + + affectedLoopScopes = [] + getLoopsAffectedByBreak(affectedLoopScopes, token.scope, token.str == 'goto') + for scope in affectedLoopScopes: + if scope in loopWithBreaks: + loopWithBreaks[scope] += 1 + else: + loopWithBreaks[scope] = 1 + + for scope, breakCount in loopWithBreaks.items(): + if breakCount > 1: + self.reportError(scope.bodyStart, 15, 4) + + def misra_15_5(self, data): + for token in data.tokenlist: + if token.str == 'return' and token.scope.type != 'Function': + self.reportError(token, 15, 5) + + def misra_15_6(self, rawTokens): + state = 0 + indent = 0 + tok1 = None + def tokAt(tok,i): + while i < 0 and tok: + tok = tok.previous + if tok.str.startswith('//') or tok.str.startswith('/*'): + continue + i += 1 + while i > 0 and tok: + tok = tok.next + if tok.str.startswith('//') or tok.str.startswith('/*'): + continue + i -= 1 + return tok + + def strtokens(tok, i1, i2): + tok1 = tokAt(tok, i1) + tok2 = tokAt(tok, i2) + tok = tok1 + s = '' + while tok != tok2: + if tok.str.startswith('//') or tok.str.startswith('/*'): + tok = tok.next + continue + s += ' ' + tok.str + tok = tok.next + s += ' ' + tok.str + return s[1:] + + for token in rawTokens: + if token.str in ['if', 'for', 'while']: + if strtokens(token,-1,0) == '# if': + continue + if strtokens(token,-1,0) == "} while": + # is there a 'do { .. } while'? + start = rawlink(tokAt(token,-1)) + if start and strtokens(start, -1, 0) == 'do {': + continue + if state == 2: + self.reportError(tok1, 15, 6) + state = 1 + indent = 0 + tok1 = token + elif token.str == 'else': + if strtokens(token,-1,0) == '# else': + continue + if strtokens(token,0,1) == 'else if': + continue + if state == 2: + self.reportError(tok1, 15, 6) + state = 2 + indent = 0 + tok1 = token + elif state == 1: + if indent == 0 and token.str != '(': + state = 0 + continue + if token.str == '(': + indent = indent + 1 + elif token.str == ')': + if indent == 0: + state = 0 + elif indent == 1: + state = 2 + indent = indent - 1 + elif state == 2: + if token.str.startswith('//') or token.str.startswith('/*'): + continue + state = 0 + if token.str not in ('{', '#'): + self.reportError(tok1, 15, 6) + + def misra_15_7(self, data): + for scope in data.scopes: + if scope.type != 'Else': + continue + if not simpleMatch(scope.bodyStart, '{ if ('): + continue + if scope.bodyStart.column > 0: + continue + tok = scope.bodyStart.next.next.link + if not simpleMatch(tok, ') {'): + continue + tok = tok.next.link + if not simpleMatch(tok, '} else'): + self.reportError(tok, 15, 7) + + def misra_16_1(self, cfg): + for scope in cfg.scopes: + if scope.type != 'Switch': + continue + in_case_or_default = False + tok = scope.bodyStart.next + while tok != scope.bodyEnd: + if not in_case_or_default: + if tok.str not in ('case', 'default'): + self.reportError(tok, 16, 1) + else: + in_case_or_default = True + else: + if simpleMatch(tok, 'break ;'): + in_case_or_default = False + tok = tok.next + if tok.str == '{': + tok = tok.link + if tok.scope.type == 'Unconditional' and simpleMatch(tok.previous.previous, 'break ;'): + in_case_or_default = False + tok = tok.next + + def misra_16_2(self, data): + for token in data.tokenlist: + if token.str == 'case' and token.scope.type != 'Switch': + self.reportError(token, 16, 2) + + def misra_16_3(self, rawTokens): + STATE_NONE = 0 # default state, not in switch case/default block + STATE_BREAK = 1 # break/comment is seen but not its ';' + STATE_OK = 2 # a case/default is allowed (we have seen 'break;'/'comment'/'{'/attribute) + STATE_SWITCH = 3 # walking through switch statement scope + + directive = None + state = STATE_NONE + end_switch_token = None # end '}' for the switch scope + for token in rawTokens: + if simpleMatch(token, '# define') or simpleMatch(token, '# pragma'): + directive = token + if directive: + if token.linenr != directive.linenr: + directive = None + else: + continue + + # Find switch scope borders + if token.str == 'switch': + state = STATE_SWITCH + if state == STATE_SWITCH: + if token.str == '{': + end_switch_token = findRawLink(token) + else: + continue + + if token.str == 'break' or token.str == 'return' or token.str == 'throw': + state = STATE_BREAK + elif token.str == ';': + if state == STATE_BREAK: + state = STATE_OK + elif token.next and token.next == end_switch_token: + self.reportError(token.next, 16, 3) + else: + state = STATE_NONE + elif token.str.startswith('/*') or token.str.startswith('//'): + if 'fallthrough' in token.str.lower(): + state = STATE_OK + elif simpleMatch(token, '[ [ fallthrough ] ] ;'): + state = STATE_BREAK + elif token.str == '{': + state = STATE_OK + elif token.str == '}' and state == STATE_OK: + # is this {} an unconditional block of code? + prev = findRawLink(token) + if prev: + prev = prev.previous + while prev and prev.str[:2] in ('//', '/*'): + prev = prev.previous + if (prev is None) or (prev.str not in ':;{}'): + state = STATE_NONE + elif token.str == 'case' or token.str == 'default': + if state != STATE_OK: + self.reportError(token, 16, 3) + state = STATE_OK + + def misra_16_4(self, data): + for token in data.tokenlist: + if token.str != 'switch': + continue + if not simpleMatch(token, 'switch ('): + continue + if not simpleMatch(token.next.link, ') {'): + continue + startTok = token.next.link.next + tok = startTok.next + while tok and tok.str != '}': + if tok.str == '{': + tok = tok.link + elif tok.str == 'default': + break + tok = tok.next + if tok and tok.str != 'default': + self.reportError(token, 16, 4) + + def misra_16_5(self, data): + for token in data.tokenlist: + if token.str != 'default': + continue + if token.previous and (token.previous.str == '{'): + continue + tok2 = token + while tok2: + if tok2.str in ('}', 'case'): + break + if tok2.str == '{': + tok2 = tok2.link + tok2 = tok2.next + if tok2 and tok2.str == 'case': + self.reportError(token, 16, 5) + + def misra_16_6(self, data): + for token in data.tokenlist: + if not (simpleMatch(token, 'switch (') and simpleMatch(token.next.link, ') {')): + continue + tok = token.next.link.next.next + count = 0 + while tok: + if tok.str in ['break', 'return', 'throw']: + count = count + 1 + elif tok.str == '{': + tok = tok.link + if isNoReturnScope(tok): + count = count + 1 + elif tok.str == '}': + break + tok = tok.next + if count < 2: + self.reportError(token, 16, 6) + + def misra_16_7(self, data): + for token in data.tokenlist: + if simpleMatch(token, 'switch (') and isBoolExpression(token.next.astOperand2): + self.reportError(token, 16, 7) + + def misra_17_1(self, data): + for token in data.tokenlist: + if isFunctionCall(token, data.standards.c) and token.astOperand1.str in ( + 'va_list', 'va_arg', 'va_start', 'va_end', 'va_copy'): + self.reportError(token, 17, 1) + elif token.str == 'va_list': + self.reportError(token, 17, 1) + + def misra_17_2(self, data): + # find recursions.. + def find_recursive_call(search_for_function, direct_call, calls_map, visited=None): + if visited is None: + visited = set() + if direct_call == search_for_function: + return True + for indirect_call in calls_map.get(direct_call, []): + if indirect_call == search_for_function: + return True + if indirect_call in visited: + # This has already been handled + continue + visited.add(indirect_call) + if find_recursive_call(search_for_function, indirect_call, calls_map, visited): + return True + return False + + # List functions called in each function + function_calls = {} + for scope in data.scopes: + if scope.type != 'Function': + continue + calls = [] + tok = scope.bodyStart + while tok != scope.bodyEnd: + tok = tok.next + if not isFunctionCall(tok, data.standards.c): + continue + f = tok.astOperand1.function + if f is not None and f not in calls: + calls.append(f) + function_calls[scope.function] = calls + + # Report warnings for all recursions.. + for func in function_calls: + for call in function_calls[func]: + if not find_recursive_call(func, call, function_calls): + # Function call is not recursive + continue + # Warn about all functions calls.. + for scope in data.scopes: + if scope.type != 'Function' or scope.function != func: + continue + tok = scope.bodyStart + while tok != scope.bodyEnd: + if tok.function and tok.function == call: + self.reportError(tok, 17, 2) + tok = tok.next + + def misra_17_3(self, cfg): + # Check for Clang warnings related to implicit function declarations + for w in cfg.clang_warnings: + if w['message'].endswith('[-Wimplicit-function-declaration]'): + self.reportError(cppcheckdata.Location(w), 17, 3) + + # Additional check for implicit function calls in expressions + for token in cfg.tokenlist: + if token.isName and token.function is None and token.valueType is None: + if token.next and token.next.str == "(" and token.next.valueType is None: + if token.next.next.str == "*" and \ + token.next.next.next.isName and token.next.next.next.valueType is not None and \ + token.next.next.next.valueType.pointer > 0 : + # this is a function pointer definition the tokens look like this int16_t ( * misra_8_2_p_a ) () + # and the int16_t causes the detection as the '(' follows + continue + if not isKeyword(token.str,cfg.standards.c) and not isStdLibId(token.str,cfg.standards.c): + self.reportError(token, 17, 3) + + def misra_config(self, data): + for var in data.variables: + if not var.isArray or var.nameToken is None or not cppcheckdata.simpleMatch(var.nameToken.next, '['): + continue + tok = var.nameToken.next + while tok.str == '[': + sz = tok.astOperand2 + if sz and sz.getKnownIntValue() is None: + has_var = False + unknown_constant = False + tokens = [sz] + while len(tokens) > 0: + t = tokens[-1] + tokens = tokens[:-1] + if t: + if t.isName and t.getKnownIntValue() is None: + if t.varId or t.variable: + has_var = True + continue + unknown_constant = True + self.report_config_error(tok, 'Unknown constant {}, please review configuration'.format(t.str)) + if t.isArithmeticalOp: + tokens += [t.astOperand1, t.astOperand2] + if not unknown_constant and not has_var: + self.report_config_error(tok, 'Unknown array size, please review configuration') + tok = tok.link.next + + for token in data.tokenlist: + if token.str not in ("while", "if"): + continue + tok = token.next + if token is None or tok.str != "(": + continue + end_token = tok.link + while tok != end_token: + tok = tok.next + if tok.str == 'sizeof' and tok.next.str == '(': + tok = tok.next.link + continue + if tok.str == "(" and tok.isCast: + tok = tok.link + continue + if not tok.isName: + continue + if tok.function or tok.variable or tok.varId or tok.valueType or tok.typeScope: + continue + if tok.next.str == "(" or tok.str in ["EOF"]: + continue + if isKeyword(tok.str, data.standards.c) or isStdLibId(tok.str, data.standards.c): + continue + if tok.astParent is None: + continue + if tok.astParent.str == "." and tok.astParent.valueType: + continue + self.report_config_error(tok, "Variable '%s' is unknown" % tok.str) + + def misra_17_6(self, rawTokens): + for token in rawTokens: + if simpleMatch(token, '[ static'): + self.reportError(token, 17, 6) + + def misra_17_7(self, data): + for token in data.tokenlist: + if not token.scope.isExecutable: + continue + if token.str != '(' or token.astParent: + continue + if token.astOperand1 is None or not token.astOperand1.isName: + continue + if token.astOperand1.varId and (token.astOperand1.variable is None or get_function_pointer_type(token.astOperand1.variable.typeStartToken) is None): + continue + if token.valueType is None: + continue + if token.valueType.type == 'void' and token.valueType.pointer == 0: + continue + self.reportError(token, 17, 7) + + def misra_17_8(self, data): + for token in data.tokenlist: + if not (token.isAssignmentOp or (token.str in ('++', '--'))): + continue + if not token.astOperand1: + continue + var = token.astOperand1.variable + if var and var.isArgument: + self.reportError(token, 17, 8) + + def misra_18_4(self, data): + for token in data.tokenlist: + if token.str not in ('+', '-', '+=', '-='): + continue + if token.astOperand1 is None or token.astOperand2 is None: + continue + vt1 = token.astOperand1.valueType + vt2 = token.astOperand2.valueType + if vt1 and vt1.pointer > 0: + self.reportError(token, 18, 4) + elif vt2 and vt2.pointer > 0: + self.reportError(token, 18, 4) + + def misra_18_5(self, data): + for var in data.variables: + if not var.isPointer: + continue + typetok = var.nameToken + count = 0 + while typetok: + if typetok.str == '*': + count = count + 1 + elif not typetok.isName: + break + typetok = typetok.previous + if count > 2: + self.reportError(var.nameToken, 18, 5) + + def misra_18_7(self, data): + for scope in data.scopes: + if scope.type != 'Struct': + continue + + token = scope.bodyStart.next + while token != scope.bodyEnd and token is not None: + # Handle nested structures to not duplicate an error. + if token.str == '{': + token = token.link + + # skip function pointer parameter types + if token.astOperand1 is None: + pass + elif cppcheckdata.simpleMatch(token, "[ ]"): + self.reportError(token, 18, 7) + break + token = token.next + + def misra_18_8(self, data): + for var in data.variables: + if not var.isArray or not var.isLocal: + continue + # TODO Array dimensions are not available in dump, must look in tokens + typetok = var.nameToken.next + if not typetok or typetok.str != '[': + continue + # Unknown define or syntax error + if not typetok.astOperand2: + continue + if not isConstantExpression(typetok.astOperand2) and not isUnknownConstantExpression(typetok.astOperand2): + self.reportError(var.nameToken, 18, 8) + + def misra_19_2(self, data): + for token in data.tokenlist: + if token.str == 'union': + self.reportError(token, 19, 2) + + def misra_20_1(self, data): + token_in_file = {} + for token in data.tokenlist: + if token.file not in token_in_file: + token_in_file[token.file] = int(token.linenr) + else: + token_in_file[token.file] = min(token_in_file[token.file], int(token.linenr)) + + for directive in data.directives: + if not directive.str.startswith('#include'): + continue + if directive.file not in token_in_file: + continue + if token_in_file[directive.file] < int(directive.linenr): + self.reportError(directive, 20, 1) + + def misra_20_2(self, data): + for directive in data.directives: + if not directive.str.startswith('#include '): + continue + for pattern in ('\\', '//', '/*', ',', "'"): + if pattern in directive.str: + self.reportError(directive, 20, 2) + break + + def misra_20_3(self, data): + for directive in data.directives: + if not directive.str.startswith('#include '): + continue + + words = directive.str.split(' ') + + # If include directive contains more than two words, here would be + # violation anyway. + if len(words) > 2: + self.reportError(directive, 20, 3) + + # Handle include directives with not quoted argument + elif len(words) > 1: + filename = words[1] + if not ((filename.startswith('"') and + filename.endswith('"')) or + (filename.startswith('<') and + filename.endswith('>'))): + # We are handle only directly included files in the + # following format: #include file.h + # Cases with macro expansion provided by MISRA document are + # skipped because we don't always have access to directive + # definition. + if '.' in filename: + self.reportError(directive, 20, 3) + + def misra_20_4(self, data): + for directive in data.directives: + res = re.search(r'#define ([a-z][a-z0-9_]+)', directive.str) + if res and isKeyword(res.group(1), data.standards.c): + self.reportError(directive, 20, 4) + + def misra_20_5(self, data): + for directive in data.directives: + if directive.str.startswith('#undef '): + self.reportError(directive, 20, 5) + + def misra_20_7(self, data): + def find_string_concat(exp, arg, directive_args): + # Handle concatenation of string literals, e.g.: + # #define MACRO(A, B) (A " " B) + # Addon should not report errors for both macro arguments. + arg_pos = exp.find(arg, 0) + need_check = False + skip_next = False + state_in_string = False + pos_search = arg_pos + 1 + directive_args = [a.strip() for a in directive_args if a != arg] + arg = arg.strip() + while pos_search < len(exp): + if exp[pos_search] == '"': + if state_in_string: + state_in_string = False + else: + state_in_string = True + pos_search += 1 + elif exp[pos_search].isalnum(): + word = "" + while pos_search < len(exp) and exp[pos_search].isalnum(): + word += exp[pos_search] + pos_search += 1 + if word == arg: + pos_search += 1 + elif word in directive_args: + skip_next = True + break + elif exp[pos_search] == ' ': + pos_search += 1 + elif state_in_string: + pos_search += 1 + else: + need_check = True + break + return need_check, skip_next + + for directive in data.directives: + d = Define(directive) + exp = '(' + d.expansionList + ')' + skip_next = False + for arg in d.args: + if skip_next: + _, skip_next = find_string_concat(exp, arg, d.args) + continue + need_check, skip_next = find_string_concat(exp, arg, d.args) + if not need_check: + continue + + pos = 0 + while pos < len(exp): + pos = exp.find(arg, pos) + if pos < 0: + break + # is 'arg' used at position pos + pos1 = pos - 1 + pos2 = pos + len(arg) + pos = pos2 + if pos1 >= 0 and (isalnum(exp[pos1]) or exp[pos1] == '_'): + continue + if pos2 < len(exp) and (isalnum(exp[pos2]) or exp[pos2] == '_'): + continue + + while pos1 >= 0 and exp[pos1] == ' ': + pos1 -= 1 + if exp[pos1] == '#': + continue + if exp[pos1] not in '([,.': + self.reportError(directive, 20, 7) + break + while pos2 < len(exp) and exp[pos2] == ' ': + pos2 += 1 + if pos2 < len(exp) and exp[pos2] not in ')]#,': + self.reportError(directive, 20, 7) + break + + def misra_20_8(self, cfg): + for cond in cfg.preprocessor_if_conditions: + #print(cond) + if cond.result and cond.result not in (0,1): + self.reportError(cond, 20, 8) + + def misra_20_9(self, cfg): + for cond in cfg.preprocessor_if_conditions: + if cond.E is None: + continue + defined = [] + for directive in cfg.directives: + if directive.file == cond.file and directive.linenr == cond.linenr: + for name in re.findall(r'[^_a-zA-Z0-9]defined[ ]*\([ ]*([_a-zA-Z0-9]+)[ ]*\)', directive.str): + defined.append(name) + for name in re.findall(r'[^_a-zA-Z0-9]defined[ ]*([_a-zA-Z0-9]+)', directive.str): + defined.append(name) + break + for s in cond.E.split(' '): + if (s[0] >= 'A' and s[0] <= 'Z') or (s[0] >= 'a' and s[0] <= 'z'): + if isKeyword(s, cfg.standards.c): + continue + if s in defined: + continue + self.reportError(cond, 20, 9) + + def misra_20_10(self, data): + for directive in data.directives: + d = Define(directive) + if d.expansionList.find('#') >= 0: + self.reportError(directive, 20, 10) + + def misra_20_11(self, cfg): + for directive in cfg.directives: + d = Define(directive) + for arg in d.args: + res = re.search(r'[^#]#[ ]*%s[ ]*##' % arg, ' ' + d.expansionList) + if res: + self.reportError(directive, 20, 11) + + def misra_20_12(self, cfg): + def _is_hash_hash_op(expansion_list, arg): + return re.search(r'##[ ]*%s[^a-zA-Z0-9_]' % arg, expansion_list) or \ + re.search(r'[^a-zA-Z0-9_]%s[ ]*##' % arg, expansion_list) + + def _is_other_op(expansion_list, arg): + pos = expansion_list.find(arg) + while pos >= 0: + pos1 = pos - 1 + pos2 = pos + len(arg) + pos = expansion_list.find(arg, pos2) + if isalnum(expansion_list[pos1]) or expansion_list[pos1] == '_': + continue + if isalnum(expansion_list[pos2]) or expansion_list[pos2] == '_': + continue + while expansion_list[pos1] == ' ': + pos1 = pos1 - 1 + if expansion_list[pos1] == '#': + continue + while expansion_list[pos2] == ' ': + pos2 = pos2 + 1 + if expansion_list[pos2] == '#': + continue + return True + return False + + def _is_arg_macro_usage(directive, arg): + for macro_usage in cfg.macro_usage: + if macro_usage.file == directive.file and macro_usage.linenr == directive.linenr: + for macro_usage_arg in cfg.macro_usage: + if macro_usage_arg == macro_usage: + continue + if (macro_usage.usefile == macro_usage_arg.usefile and + macro_usage.uselinenr == macro_usage_arg.uselinenr and + macro_usage.usecolumn == macro_usage_arg.usecolumn): + # TODO: check arg better + return True + return False + + for directive in cfg.directives: + define = Define(directive) + expansion_list = '(%s)' % define.expansionList + for arg in define.args: + if not _is_hash_hash_op(expansion_list, arg): + continue + if not _is_other_op(expansion_list, arg): + continue + if _is_arg_macro_usage(directive, arg): + self.reportError(directive, 20, 12) + break + + def misra_20_13(self, data): + dir_pattern = re.compile(r'#[ ]*([^ (<]*)') + for directive in data.directives: + dir = directive.str + mo = dir_pattern.match(dir) + if mo: + dir = mo.group(1) + if dir not in ['define', 'elif', 'else', 'endif', 'error', 'if', 'ifdef', 'ifndef', 'include', + 'pragma', 'undef', 'warning']: + self.reportError(directive, 20, 13) + + def misra_20_14(self, data): + # stack for #if blocks. contains the #if directive until the corresponding #endif is seen. + # the size increases when there are inner #if directives. + ifStack = [] + for directive in data.directives: + if directive.str.startswith('#if ') or directive.str.startswith('#ifdef ') or directive.str.startswith( + '#ifndef '): + ifStack.append(directive) + elif directive.str == '#else' or directive.str.startswith('#elif '): + if len(ifStack) == 0: + self.reportError(directive, 20, 14) + ifStack.append(directive) + elif directive.file != ifStack[-1].file: + self.reportError(directive, 20, 14) + elif directive.str == '#endif': + if len(ifStack) == 0: + self.reportError(directive, 20, 14) + elif directive.file != ifStack[-1].file: + self.reportError(directive, 20, 14) + ifStack.pop() + + def misra_21_1(self, data): + re_forbidden_macro = re.compile(r'#(?:define|undef) _[_A-Z]+') + re_macro_name = re.compile(r'#(?:define|undef) (.+)[ $]') + + for d in data.directives: + # Search for forbidden identifiers + m = re.search(re_forbidden_macro, d.str) + if m: + self.reportError(d, 21, 1) + continue + + # Search standard library identifiers in macro names + m = re.search(re_macro_name, d.str) + if not m: + continue + name = m.group(1) + if isStdLibId(name, data.standards.c): + self.reportError(d, 21, 1) + + def misra_21_2(self, cfg): + for directive in cfg.directives: + define = Define(directive) + if re.match(r'_+BUILTIN_.*', define.name.upper()): + self.reportError(directive, 21, 2) + for func in cfg.functions: + if isStdLibId(func.name, cfg.standards.c): + tok = func.tokenDef if func.tokenDef else func.token + self.reportError(tok, 21, 2) + + def misra_21_3(self, data): + for token in data.tokenlist: + if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ('malloc', 'calloc', 'realloc', 'free')): + self.reportError(token, 21, 3) + + def misra_21_4(self, data): + directive = findInclude(data.directives, '') + if directive: + self.reportError(directive, 21, 4) + + def misra_21_5(self, data): + directive = findInclude(data.directives, '') + if directive: + self.reportError(directive, 21, 5) + + def misra_21_6(self, data): + for token in data.tokenlist: + if not isFunctionCall(token) or token.previous.function: + continue + standard_id = getStdLib(data.standards.c) + funcname = token.previous.str + if funcname in standard_id.get("stdio.h", []) or funcname in standard_id.get("wchar.h", []): + self.reportError(token, 21, 6) + + def misra_21_7(self, data): + for token in data.tokenlist: + if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ('atof', 'atoi', 'atol', 'atoll')): + self.reportError(token, 21, 7) + + def misra_21_8(self, data): + for token in data.tokenlist: + if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ('abort', 'exit', 'getenv')): + self.reportError(token, 21, 8) + + def misra_21_9(self, data): + for token in data.tokenlist: + if (token.str in ('bsearch', 'qsort')) and token.next and token.next.str == '(': + self.reportError(token, 21, 9) + + def misra_21_10(self, data): + directive = findInclude(data.directives, '') + if directive: + self.reportError(directive, 21, 10) + + for token in data.tokenlist: + if (token.str == 'wcsftime') and token.next and token.next.str == '(': + self.reportError(token, 21, 10) + + def misra_21_11(self, data): + directive = findInclude(data.directives, '') + if directive: + self.reportError(directive, 21, 11) + + def misra_21_12(self, data): + if findInclude(data.directives, ''): + for token in data.tokenlist: + if token.str == 'fexcept_t' and token.isName: + self.reportError(token, 21, 12) + if isFunctionCall(token, data.standards.c) and (token.astOperand1.str in ( + 'feclearexcept', + 'fegetexceptflag', + 'feraiseexcept', + 'fesetexceptflag', + 'fetestexcept')): + self.reportError(token, 21, 12) + + def misra_21_14(self, data): + # buffers used in strcpy/strlen/etc function calls + string_buffers = [] + for token in data.tokenlist: + if token.str[0] == 's' and isFunctionCall(token.next, data.standards.c): + name, args = cppcheckdata.get_function_call_name_args(token) + if name is None: + continue + def _get_string_buffers(match, args, argnum): + if not match: + return [] + ret = [] + for a in argnum: + if a < len(args): + arg = args[a] + while arg and arg.str in ('.', '::'): + arg = arg.astOperand2 + if arg and arg.varId != 0 and arg.varId not in ret: + ret.append(arg.varId) + return ret + string_buffers += _get_string_buffers(name == 'strcpy', args, [0, 1]) + string_buffers += _get_string_buffers(name == 'strncpy', args, [0, 1]) + string_buffers += _get_string_buffers(name == 'strlen', args, [0]) + string_buffers += _get_string_buffers(name == 'strcmp', args, [0, 1]) + string_buffers += _get_string_buffers(name == 'sprintf', args, [0]) + string_buffers += _get_string_buffers(name == 'snprintf', args, [0, 3]) + + for token in data.tokenlist: + if token.str != 'memcmp': + continue + name, args = cppcheckdata.get_function_call_name_args(token) + if name is None: + continue + if len(args) != 3: + continue + for arg in args[:2]: + if arg.str[-1] == '\"': + self.reportError(arg, 21, 14) + continue + while arg and arg.str in ('.', '::'): + arg = arg.astOperand2 + if arg and arg.varId and arg.varId in string_buffers: + self.reportError(arg, 21, 14) + + def misra_21_15(self, data): + for token in data.tokenlist: + if token.str not in ('memcpy', 'memmove', 'memcmp'): + continue + name, args = cppcheckdata.get_function_call_name_args(token) + if name is None: + continue + if len(args) != 3: + continue + if args[0].valueType is None or args[1].valueType is None: + continue + if args[0].valueType.type == args[1].valueType.type: + continue + if args[0].valueType.type == 'void' or args[1].valueType.type == 'void': + continue + self.reportError(token, 21, 15) + + def misra_21_16(self, cfg): + for token in cfg.tokenlist: + if token.str != 'memcmp': + continue + name, args = cppcheckdata.get_function_call_name_args(token) + if name is None: + continue + if len(args) != 3: + continue + for arg in args[:2]: + if arg.valueType is None: + continue + if arg.valueType.pointer > 1: + continue + if getEssentialTypeCategory(arg) in ('unsigned', 'signed', 'bool'): + continue + if arg.valueType.isEnum(): + continue + self.reportError(token, 21, 16) + + def misra_21_19(self, cfg): + for token in cfg.tokenlist: + if token.str in ('localeconv', 'getenv', 'setlocale', 'strerror') and simpleMatch(token.next, '('): + name, _ = cppcheckdata.get_function_call_name_args(token) + if name is None or name != token.str: + continue + parent = token.next + while simpleMatch(parent.astParent, '+'): + parent = parent.astParent + # x = f() + if simpleMatch(parent.astParent, '=') and parent == parent.astParent.astOperand2: + lhs = parent.astParent.astOperand1 + if lhs and lhs.valueType and lhs.valueType.pointer > 0 and lhs.valueType.constness == 0: + self.reportError(token, 21, 19) + if token.str == '=': + lhs = token.astOperand1 + while simpleMatch(lhs, '*') and lhs.astOperand2 is None: + lhs = lhs.astOperand1 + if not simpleMatch(lhs, '.'): + continue + while simpleMatch(lhs, '.'): + lhs = lhs.astOperand1 + if lhs and lhs.variable and simpleMatch(lhs.variable.typeStartToken, 'lconv'): + self.reportError(token, 21, 19) + + def misra_21_20(self, cfg): + assigned = {} + invalid = [] + for token in cfg.tokenlist: + # No sophisticated data flow analysis, bail out if control flow is "interrupted" + if token.str in ('{', '}', 'break', 'continue', 'return'): + assigned = {} + invalid = [] + continue + + # When pointer is assigned, remove it from 'assigned' and 'invalid' + if token.varId and token.varId > 0 and simpleMatch(token.next, '='): + for name in assigned.keys(): + while token.varId in assigned[name]: + assigned[name].remove(token.varId) + while token.varId in invalid: + invalid.remove(token.varId) + continue + + # Calling dangerous function + if token.str in ('asctime', 'ctime', 'gmtime', 'localtime', 'localeconv', 'getenv', 'setlocale', 'strerror'): + name, _ = cppcheckdata.get_function_call_name_args(token) + if name and name == token.str: + # make assigned pointers invalid + for varId in assigned.get(name, ()): + if varId not in invalid: + invalid.append(varId) + + # assign pointer + parent = token.next + while parent.astParent and (parent.astParent.str == '+' or isCast(parent.astParent)): + parent = parent.astParent + if simpleMatch(parent.astParent, '='): + eq = parent.astParent + vartok = eq.previous + if vartok and vartok.varId and vartok.varId > 0: + if name not in assigned: + assigned[name] = [vartok.varId] + elif vartok.varId not in assigned[name]: + assigned[name].append(vartok.varId) + continue + + # taking value of invalid pointer.. + if token.astParent and token.varId: + if token.varId in invalid: + self.reportError(token, 21, 20) + + def misra_21_21(self, cfg): + for token in cfg.tokenlist: + if token.str == 'system': + name, args = cppcheckdata.get_function_call_name_args(token) + if name == 'system' and len(args) == 1: + self.reportError(token, 21, 21) + + def misra_22_5(self, cfg): + for token in cfg.tokenlist: + if token.isUnaryOp("*") or (token.isBinaryOp() and token.str == '.'): + fileptr = token.astOperand1 + if fileptr.variable and cppcheckdata.simpleMatch(fileptr.variable.typeStartToken, 'FILE *'): + self.reportError(token, 22, 5) + + def misra_22_7(self, cfg): + for eofToken in cfg.tokenlist: + if eofToken.str != 'EOF': + continue + if eofToken.astParent is None or not eofToken.astParent.isComparisonOp: + continue + if eofToken.astParent.astOperand1 == eofToken: + eofTokenSibling = eofToken.astParent.astOperand2 + else: + eofTokenSibling = eofToken.astParent.astOperand1 + while isCast(eofTokenSibling) and eofTokenSibling.valueType and eofTokenSibling.valueType.type and eofTokenSibling.valueType.type == 'int': + eofTokenSibling = eofTokenSibling.astOperand2 if eofTokenSibling.astOperand2 else eofTokenSibling.astOperand1 + if eofTokenSibling is not None and eofTokenSibling.valueType and eofTokenSibling.valueType and eofTokenSibling.valueType.type in ('bool', 'char', 'short'): + self.reportError(eofToken, 22, 7) + + def misra_22_8(self, cfg): + is_zero = False + for token in cfg.tokenlist: + if simpleMatch(token, 'errno = 0'): + is_zero = True + if token.str == '(' and not simpleMatch(token.link, ') {'): + name, _ = cppcheckdata.get_function_call_name_args(token.previous) + if name is None: + continue + if is_errno_setting_function(name): + if not is_zero: + self.reportError(token, 22, 8) + else: + is_zero = False + + def misra_22_9(self, cfg): + errno_is_set = False + for token in cfg.tokenlist: + if token.str == '(' and not simpleMatch(token.link, ') {'): + name, _ = cppcheckdata.get_function_call_name_args(token.previous) + if name is None: + continue + errno_is_set = is_errno_setting_function(name) + if errno_is_set and token.str in '{};': + errno_is_set = False + tok = token.next + while tok and tok.str not in ('{','}',';','errno'): + tok = tok.next + if tok is None or tok.str != 'errno': + self.reportError(token, 22, 9) + elif (tok.astParent is None) or (not tok.astParent.isComparisonOp): + self.reportError(token, 22, 9) + + def misra_22_10(self, cfg): + last_function_call = None + for token in cfg.tokenlist: + if token.isName and token.next and token.next.str == '(' and not simpleMatch(token.next.link, ') {'): + name, _ = cppcheckdata.get_function_call_name_args(token) + last_function_call = name + if token.str == '}': + last_function_call = None + if token.str == 'errno' and token.astParent and token.astParent.isComparisonOp: + if last_function_call is None: + self.reportError(token, 22, 10) + elif not is_errno_setting_function(last_function_call): + self.reportError(token, 22, 10) + + + def get_verify_expected(self): + """Return the list of expected violations in the verify test""" + return self.verify_expected + + def get_verify_actual(self): + """Return the list of actual violations in for the verify test""" + return self.verify_actual + + def get_violations(self, violation_type=None): + """Return the list of violations for a normal checker run""" + if violation_type is None: + return self.violations.items() + return self.violations[violation_type] + + def get_violation_types(self): + """Return the list of violations for a normal checker run""" + return self.violations.keys() + + def addSuppressedRule(self, ruleNum, + fileName=None, + lineNumber=None, + symbolName=None): + """ + Add a suppression to the suppressions data structure + + Suppressions are stored in a dictionary of dictionaries that + contains a list of tuples. + + The first dictionary is keyed by the MISRA rule in hundreds + format. The value of that dictionary is a dictionary of filenames. + If the value is None then the rule is assumed to be suppressed for + all files. + If the filename exists then the value of that dictionary contains a list + with the scope of the suppression. If the list contains an item of None + then the rule is assumed to be suppressed for the entire file. Otherwise + the list contains line number, symbol name tuples. + For each tuple either line number or symbol name can can be none. + + """ + normalized_filename = None + + if fileName is not None: + normalized_filename = os.path.expanduser(fileName) + normalized_filename = os.path.normpath(normalized_filename) + + if lineNumber is not None or symbolName is not None: + line_symbol = (lineNumber, symbolName) + else: + line_symbol = None + + # If the rule is not in the dict already then add it + if ruleNum not in self.suppressedRules: + ruleItemList = [] + ruleItemList.append(line_symbol) + + fileDict = {} + fileDict[normalized_filename] = ruleItemList + + self.suppressedRules[ruleNum] = fileDict + + # Rule is added. Done. + return + + # Rule existed in the dictionary. Check for + # filename entries. + + # Get the dictionary for the rule number + fileDict = self.suppressedRules[ruleNum] + + # If the filename is not in the dict already add it + if normalized_filename not in fileDict: + ruleItemList = [] + ruleItemList.append(line_symbol) + + fileDict[normalized_filename] = ruleItemList + + # Rule is added with a file scope. Done + return + + # Rule has a matching filename. Get the rule item list. + + # Check the lists of rule items + # to see if this (lineNumber, symbolName) combination + # or None already exists. + ruleItemList = fileDict[normalized_filename] + + if line_symbol is None: + # is it already in the list? + if line_symbol not in ruleItemList: + ruleItemList.append(line_symbol) + else: + # Check the list looking for matches + matched = False + for each in ruleItemList: + if each is not None: + if (each[0] == line_symbol[0]) and (each[1] == line_symbol[1]): + matched = True + + # Append the rule item if it was not already found + if not matched: + ruleItemList.append(line_symbol) + + def isRuleSuppressed(self, file_path, linenr, ruleNum): + """ + Check to see if a rule is suppressed. + + :param ruleNum: is the rule number in hundreds format + :param file_path: File path of checked location + :param linenr: Line number of checked location + + If the rule exists in the dict then check for a filename + If the filename is None then rule is suppressed globally + for all files. + If the filename exists then look for list of + line number, symbol name tuples. If the list is None then + the rule is suppressed for the entire file + If the list of tuples exists then search the list looking for + matching line numbers. Symbol names are currently ignored + because they can include regular expressions. + TODO: Support symbol names and expression matching. + + """ + ruleIsSuppressed = False + + # Remove any prefix listed in command arguments from the filename. + filename = None + if file_path is not None: + if self.filePrefix is not None: + filename = remove_file_prefix(file_path, self.filePrefix) + else: + filename = os.path.basename(file_path) + + if ruleNum in self.suppressedRules: + fileDict = self.suppressedRules[ruleNum] + + # a file name entry of None means that the rule is suppressed + # globally + if None in fileDict: + ruleIsSuppressed = True + else: + # Does the filename match one of the names in + # the file list + if filename in fileDict: + # Get the list of ruleItems + ruleItemList = fileDict[filename] + + if None in ruleItemList: + # Entry of None in the ruleItemList means the rule is + # suppressed for all lines in the filename + ruleIsSuppressed = True + else: + # Iterate though the the list of line numbers + # and symbols looking for a match of the line + # number. Matching the symbol is a TODO: + for each in ruleItemList: + if each is not None: + if each[0] == linenr: + ruleIsSuppressed = True + + return ruleIsSuppressed + + def isRuleGloballySuppressed(self, rule_num): + """ + Check to see if a rule is globally suppressed. + :param rule_num: is the rule number in hundreds format + """ + if rule_num not in self.suppressedRules: + return False + return None in self.suppressedRules[rule_num] + + def showSuppressedRules(self): + """ + Print out rules in suppression list sorted by Rule Number + """ + print("Suppressed Rules List:") + outlist = [] + + for ruleNum in self.suppressedRules: + fileDict = self.suppressedRules[ruleNum] + + for fname in fileDict: + ruleItemList = fileDict[fname] + + for item in ruleItemList: + if item is None: + item_str = "None" + else: + item_str = str(item[0]) + + outlist.append("%s: %s: %s (%d locations suppressed)" % ( + float(ruleNum) / 100, fname, item_str, self.suppressionStats.get(ruleNum, 0))) + + for line in sorted(outlist, reverse=True): + print(" %s" % line) + + def setFilePrefix(self, prefix): + """ + Set the file prefix to ignore from files when matching + suppression files + """ + self.filePrefix = prefix + + def setSeverity(self, severity): + """ + Set the severity for all errors. + """ + self.severity = severity + + def setSuppressionList(self, suppressionlist): + num1 = 0 + num2 = 0 + rule_pattern = re.compile(r'([0-9]+).([0-9]+)') + strlist = suppressionlist.split(",") + + # build ignore list + for item in strlist: + res = rule_pattern.match(item) + if res: + num1 = int(res.group(1)) + num2 = int(res.group(2)) + ruleNum = (num1 * 100) + num2 + + self.addSuppressedRule(ruleNum) + + def report_config_error(self, location, errmsg): + errmsg = 'Because of missing configuration, misra checking is incomplete. There can be false negatives! ' + errmsg + cppcheck_severity = 'error' + error_id = 'config' + if self.settings.verify: + self.verify_actual.append('%s:%d %s' % (location.file, location.linenr, error_id)) + else: + cppcheckdata.reportError(location, cppcheck_severity, errmsg, 'misra', error_id) + + def reportError(self, location, num1, num2): + ruleNum = num1 * 100 + num2 + + if self.isRuleGloballySuppressed(ruleNum): + return + + if self.settings.verify: + self.verify_actual.append('%s:%d %d.%d' % (location.file, location.linenr, num1, num2)) + elif self.isRuleSuppressed(location.file, location.linenr, ruleNum): + # Error is suppressed. Ignore + self.suppressionStats.setdefault(ruleNum, 0) + self.suppressionStats[ruleNum] += 1 + return + else: + errorId = 'c2012-' + str(num1) + '.' + str(num2) + misra_severity = 'Undefined' + cppcheck_severity = 'style' + if ruleNum in self.ruleTexts: + errmsg = self.ruleTexts[ruleNum].text + if self.ruleTexts[ruleNum].misra_severity: + misra_severity = self.ruleTexts[ruleNum].misra_severity + cppcheck_severity = self.ruleTexts[ruleNum].cppcheck_severity + elif len(self.ruleTexts) == 0: + if self.ruleText_filename is None: + errmsg = 'misra violation (use --rule-texts= to get proper output)' + else: + errmsg = 'misra violation (rule-texts-file not found: ' + self.ruleText_filename + ')' + else: + errmsg = 'misra violation %s with no text in the supplied rule-texts-file' % (ruleNum) + + if self.severity: + cppcheck_severity = self.severity + + this_violation = '{}-{}-{}-{}'.format(location.file, location.linenr, location.column, ruleNum) + + # If this is new violation then record it and show it. If not then + # skip it since it has already been displayed. + if this_violation not in self.existing_violations: + self.existing_violations.add(this_violation) + cppcheckdata.reportError(location, cppcheck_severity, errmsg, 'misra', errorId, misra_severity) + + if misra_severity not in self.violations: + self.violations[misra_severity] = [] + self.violations[misra_severity].append('misra-' + errorId) + + def loadRuleTexts(self, filename): + num1 = 0 + num2 = 0 + appendixA = False + + Rule_pattern = re.compile(r'^Rule ([0-9]+)\.([0-9]+)') + severity_pattern = re.compile(r'.*[ ]*(Advisory|Required|Mandatory)$') + xA_Z_pattern = re.compile(r'^[#A-Z].*') + a_z_pattern = re.compile(r'^[a-z].*') + # Try to detect the file encoding + file_stream = None + encodings = ['ascii', 'utf-8', 'windows-1250', 'windows-1252'] + for e in encodings: + try: + file_stream = open(filename, 'r', encoding=e) + file_stream.readlines() + file_stream.seek(0) + except UnicodeDecodeError: + file_stream.close() + file_stream = None + else: + break + if not file_stream: + print('Could not find a suitable codec for "' + filename + '".') + print('If you know the codec please report it to the developers so the list can be enhanced.') + print('Trying with default codec now and ignoring errors if possible ...') + try: + file_stream = open(filename, 'rt', errors='ignore') + except TypeError: + # Python 2 does not support the errors parameter + file_stream = open(filename, 'rt') + + rule = None + rule_line_number = 0 + + for line in file_stream: + + line = line.strip() + if len(line) == 0: + continue + + if not appendixA: + if line.find('Appendix A') >= 0 and line.find('Summary of guidelines') >= 10: + appendixA = True + continue + if line.find('Appendix B') >= 0: + break + + # Parse rule declaration. + res = Rule_pattern.match(line) + + if res: + rule_line_number = 0 + num1 = int(res.group(1)) + num2 = int(res.group(2)) + rule = Rule(num1, num2) + + res = severity_pattern.match(line) + if res: + rule.misra_severity = res.group(1) + rule_line_number = 1 + continue + + if rule is None: + continue + + rule_line_number += 1 + + if rule_line_number == 1: + res = severity_pattern.match(line) + + if res: + rule.misra_severity = res.group(1) + continue + + rule_line_number = 2 + + # Parse beginning of rule text. + if not rule.text and xA_Z_pattern.match(line): + rule.text = line.strip() + self.ruleTexts[rule.num] = rule + continue + + # Parse continuing of rule text. + if a_z_pattern.match(line): + self.ruleTexts[rule.num].text += ' ' + line.strip() + continue + + rule = None + + file_stream.close() + + def verifyRuleTexts(self): + """Prints rule numbers without rule text.""" + rule_texts_rules = [] + for rule_num in self.ruleTexts: + rule = self.ruleTexts[rule_num] + rule_texts_rules.append(str(rule.num1) + '.' + str(rule.num2)) + + all_rules = list(getAddonRules() + getCppcheckRules()) + + missing_rules = list(set(all_rules) - set(rule_texts_rules)) + if len(missing_rules) == 0: + print("Rule texts are correct.") + else: + print("Missing rule texts: " + ', '.join(missing_rules)) + + def printStatus(self, *args, **kwargs): + if not self.settings.quiet: + print(*args, **kwargs) + + def executeCheck(self, rule_num, check_function, *args): + """Execute check function for a single MISRA rule. + + :param rule_num: Number of rule in hundreds format + :param check_function: Check function to execute + :param args: Check function arguments + """ + if not self.isRuleGloballySuppressed(rule_num): + misra_cpp = ( + 202, # misra-c2012-2.3 : misra c++2008 0-1-9 + 203, # misra-c2012-2.3 : misra c++2008 0-1-5 + 402, # misra-c2012-4.2 : misra c++2008 2-3-1 + 701, # misra-c2012-7.1 : misra c++2008 2-3-1 + 702, # misra-c2012-7.2 : misra c++2008 2-13-2 + 1203, # misra-c2012-12.3 : misra c++2008 5-14-1 + 1204, # misra-c2012-12.4 : misra c++2008 5-18-1 + 1305, # misra-c2012-13.5 : misra c++2008 5-19-1 + 1702, # misra-c2012-17.2 : misra c++2008 7-5-4 + 1901) # misra-c2012-19.1 : misra c++2008 2-13-3 + + if (not self.is_cpp) or rule_num in misra_cpp: + # log checker + errmsg = 'Misra C: %i.%i' % (rule_num // 100, rule_num % 100) + cppcheckdata.log_checker(errmsg, 'misra') + + check_function(*args) + + def parseDump(self, dumpfile, path_premium_addon=None): + def fillVerifyExpected(verify_expected, tok): + """Add expected suppressions to verify_expected list.""" + rule_re = re.compile(r'[0-9]+\.[0-9]+') + if tok.str.startswith('//') and 'TODO' not in tok.str: + for word in tok.str[2:].split(' '): + if rule_re.match(word) or word == "config": + verify_expected.append('%s:%d %s' % (tok.file, tok.linenr, word)) + + data = cppcheckdata.parsedump(dumpfile) + typeBits['CHAR'] = data.platform.char_bit + typeBits['SHORT'] = data.platform.short_bit + typeBits['INT'] = data.platform.int_bit + typeBits['LONG'] = data.platform.long_bit + typeBits['LONG_LONG'] = data.platform.long_long_bit + typeBits['POINTER'] = data.platform.pointer_bit + + if self.settings.verify: + # Add suppressions from the current file + for tok in data.rawTokens: + fillVerifyExpected(self.verify_expected, tok) + # Add suppressions from the included headers + include_re = re.compile(r'^#include [<"]([a-zA-Z0-9]+[a-zA-Z\-_./\\0-9]*)[">]$') + dump_dir = os.path.dirname(data.filename) + for conf in data.configurations: + for directive in conf.directives: + m = re.match(include_re, directive.str) + if not m: + continue + header_dump_path = os.path.join(dump_dir, m.group(1) + '.dump') + if not os.path.exists(header_dump_path): + continue + header_data = cppcheckdata.parsedump(header_dump_path) + for tok in header_data.rawTokens: + fillVerifyExpected(self.verify_expected, tok) + else: + self.printStatus('Checking ' + dumpfile + '...') + + self.is_cpp = data.language == 'cpp' + + for cfgNumber, cfg in enumerate(data.iterconfigurations()): + if not self.settings.quiet: + self.printStatus('Checking %s, config %s...' % (dumpfile, cfg.name)) + + self.executeCheck(102, self.misra_1_2, cfg) + if not path_premium_addon: + self.executeCheck(104, self.misra_1_4, cfg) + self.executeCheck(202, self.misra_2_2, cfg) + self.executeCheck(203, self.misra_2_3, dumpfile, cfg.typedefInfo) + self.executeCheck(204, self.misra_2_4, dumpfile, cfg) + self.executeCheck(205, self.misra_2_5, dumpfile, cfg) + self.executeCheck(207, self.misra_2_7, cfg) + # data.rawTokens is same for all configurations + if cfgNumber == 0: + self.executeCheck(301, self.misra_3_1, data.rawTokens) + #self.executeCheck(302, self.misra_3_2, data.rawTokens) + self.executeCheck(401, self.misra_4_1, data.rawTokens) + self.executeCheck(402, self.misra_4_2, data.rawTokens) + self.executeCheck(501, self.misra_5_1, cfg) + self.executeCheck(502, self.misra_5_2, cfg) + self.executeCheck(504, self.misra_5_4, cfg) + self.executeCheck(505, self.misra_5_5, cfg) + self.executeCheck(506, self.misra_5_6, dumpfile, cfg.typedefInfo) + self.executeCheck(507, self.misra_5_7, dumpfile, cfg) + self.executeCheck(508, self.misra_5_8, dumpfile, cfg) + self.executeCheck(509, self.misra_5_9, dumpfile, cfg) + self.executeCheck(601, self.misra_6_1, cfg) + self.executeCheck(602, self.misra_6_2, cfg) + if cfgNumber == 0: + self.executeCheck(701, self.misra_7_1, data.rawTokens) + self.executeCheck(702, self.misra_7_2, cfg) + if cfgNumber == 0: + self.executeCheck(703, self.misra_7_3, data.rawTokens) + self.executeCheck(704, self.misra_7_4, cfg) + self.executeCheck(801, self.misra_8_1, cfg) + if cfgNumber == 0: + self.executeCheck(802, self.misra_8_2, cfg, data.rawTokens) + self.executeCheck(804, self.misra_8_4, cfg) + self.executeCheck(805, self.misra_8_5, dumpfile, cfg) + self.executeCheck(806, self.misra_8_6, dumpfile, cfg) + self.executeCheck(807, self.misra_8_7, dumpfile, cfg) + self.executeCheck(808, self.misra_8_8, cfg) + self.executeCheck(809, self.misra_8_9, cfg) + self.executeCheck(810, self.misra_8_10, cfg) + self.executeCheck(811, self.misra_8_11, cfg) + self.executeCheck(812, self.misra_8_12, cfg) + if cfgNumber == 0: + self.executeCheck(814, self.misra_8_14, data.rawTokens) + self.executeCheck(902, self.misra_9_2, cfg) + self.executeCheck(903, self.misra_9_3, cfg) + self.executeCheck(904, self.misra_9_4, cfg) + if cfgNumber == 0: + self.executeCheck(905, self.misra_9_5, cfg, data.rawTokens) + if not path_premium_addon: + self.executeCheck(1001, self.misra_10_1, cfg) + self.executeCheck(1002, self.misra_10_2, cfg) + self.executeCheck(1003, self.misra_10_3, cfg) + self.executeCheck(1004, self.misra_10_4, cfg) + self.executeCheck(1005, self.misra_10_5, cfg) + self.executeCheck(1006, self.misra_10_6, cfg) + self.executeCheck(1007, self.misra_10_7, cfg) + self.executeCheck(1008, self.misra_10_8, cfg) + self.executeCheck(1101, self.misra_11_1, cfg) + self.executeCheck(1102, self.misra_11_2, cfg) + self.executeCheck(1103, self.misra_11_3, cfg) + self.executeCheck(1104, self.misra_11_4, cfg) + self.executeCheck(1105, self.misra_11_5, cfg) + self.executeCheck(1106, self.misra_11_6, cfg) + self.executeCheck(1107, self.misra_11_7, cfg) + self.executeCheck(1108, self.misra_11_8, cfg) + self.executeCheck(1109, self.misra_11_9, cfg) + if cfgNumber == 0: + self.executeCheck(1201, self.misra_12_1_sizeof, data.rawTokens) + self.executeCheck(1201, self.misra_12_1, cfg) + self.executeCheck(1202, self.misra_12_2, cfg) + self.executeCheck(1203, self.misra_12_3, cfg) + self.executeCheck(1204, self.misra_12_4, cfg) + self.executeCheck(1301, self.misra_13_1, cfg) + self.executeCheck(1303, self.misra_13_3, cfg) + self.executeCheck(1304, self.misra_13_4, cfg) + self.executeCheck(1305, self.misra_13_5, cfg) + self.executeCheck(1306, self.misra_13_6, cfg) + self.executeCheck(1401, self.misra_14_1, cfg) + self.executeCheck(1402, self.misra_14_2, cfg) + self.executeCheck(1404, self.misra_14_4, cfg) + self.executeCheck(1501, self.misra_15_1, cfg) + self.executeCheck(1502, self.misra_15_2, cfg) + self.executeCheck(1503, self.misra_15_3, cfg) + self.executeCheck(1504, self.misra_15_4, cfg) + self.executeCheck(1505, self.misra_15_5, cfg) + if cfgNumber == 0: + self.executeCheck(1506, self.misra_15_6, data.rawTokens) + self.executeCheck(1507, self.misra_15_7, cfg) + self.executeCheck(1601, self.misra_16_1, cfg) + self.executeCheck(1602, self.misra_16_2, cfg) + if cfgNumber == 0: + self.executeCheck(1603, self.misra_16_3, data.rawTokens) + self.executeCheck(1604, self.misra_16_4, cfg) + self.executeCheck(1605, self.misra_16_5, cfg) + self.executeCheck(1606, self.misra_16_6, cfg) + self.executeCheck(1607, self.misra_16_7, cfg) + self.executeCheck(1701, self.misra_17_1, cfg) + self.executeCheck(1702, self.misra_17_2, cfg) + self.executeCheck(1703, self.misra_17_3, cfg) + self.misra_config(cfg) + if cfgNumber == 0: + self.executeCheck(1706, self.misra_17_6, data.rawTokens) + self.executeCheck(1707, self.misra_17_7, cfg) + self.executeCheck(1708, self.misra_17_8, cfg) + self.executeCheck(1804, self.misra_18_4, cfg) + self.executeCheck(1805, self.misra_18_5, cfg) + self.executeCheck(1807, self.misra_18_7, cfg) + self.executeCheck(1808, self.misra_18_8, cfg) + self.executeCheck(1902, self.misra_19_2, cfg) + self.executeCheck(2001, self.misra_20_1, cfg) + self.executeCheck(2002, self.misra_20_2, cfg) + self.executeCheck(2003, self.misra_20_3, cfg) + self.executeCheck(2004, self.misra_20_4, cfg) + self.executeCheck(2005, self.misra_20_5, cfg) + self.executeCheck(2007, self.misra_20_7, cfg) + self.executeCheck(2008, self.misra_20_8, cfg) + self.executeCheck(2009, self.misra_20_9, cfg) + self.executeCheck(2010, self.misra_20_10, cfg) + self.executeCheck(2011, self.misra_20_11, cfg) + self.executeCheck(2012, self.misra_20_12, cfg) + self.executeCheck(2013, self.misra_20_13, cfg) + self.executeCheck(2014, self.misra_20_14, cfg) + self.executeCheck(2101, self.misra_21_1, cfg) + self.executeCheck(2102, self.misra_21_2, cfg) + self.executeCheck(2103, self.misra_21_3, cfg) + self.executeCheck(2104, self.misra_21_4, cfg) + self.executeCheck(2105, self.misra_21_5, cfg) + self.executeCheck(2106, self.misra_21_6, cfg) + self.executeCheck(2107, self.misra_21_7, cfg) + self.executeCheck(2108, self.misra_21_8, cfg) + self.executeCheck(2109, self.misra_21_9, cfg) + self.executeCheck(2110, self.misra_21_10, cfg) + self.executeCheck(2111, self.misra_21_11, cfg) + self.executeCheck(2112, self.misra_21_12, cfg) + self.executeCheck(2114, self.misra_21_14, cfg) + self.executeCheck(2115, self.misra_21_15, cfg) + self.executeCheck(2116, self.misra_21_16, cfg) + self.executeCheck(2119, self.misra_21_19, cfg) + self.executeCheck(2120, self.misra_21_20, cfg) + self.executeCheck(2121, self.misra_21_21, cfg) + # 22.4 is already covered by Cppcheck writeReadOnlyFile + self.executeCheck(2205, self.misra_22_5, cfg) + self.executeCheck(2207, self.misra_22_7, cfg) + self.executeCheck(2208, self.misra_22_8, cfg) + self.executeCheck(2209, self.misra_22_9, cfg) + self.executeCheck(2210, self.misra_22_10, cfg) + + def read_ctu_info_line(self, line): + if not line.startswith('{'): + return None + try: + ctu_info = json.loads(line) + except json.decoder.JSONDecodeError: + return None + if 'summary' not in ctu_info: + return None + if 'data' not in ctu_info: + return None + return ctu_info + + def analyse_ctu_info(self, ctu_info_files): + all_typedef_info = {} + all_tagname_info = {} + all_macro_info = {} + all_external_identifiers_decl = {} + all_external_identifiers_def = {} + all_internal_identifiers = {} + all_local_identifiers = {} + all_usage_files = {} + + from cppcheckdata import Location + + def is_different_location(loc1, loc2): + return loc1['file'] != loc2['file'] or loc1['line'] != loc2['line'] + + def is_different_file(loc1, loc2): + return loc1['file'] != loc2['file'] + + try: + for filename in ctu_info_files: + for line in open(filename, 'rt'): + s = self.read_ctu_info_line(line) + if s is None: + continue + summary_type = s.get('summary', '') + summary_data = s.get('data', None) + + if summary_type == 'MisraTypedefInfo': + for new_typedef_info in summary_data: + key = new_typedef_info['name'] + existing_typedef_info = all_typedef_info.get(key, None) + if existing_typedef_info: + if is_different_location(existing_typedef_info, new_typedef_info): + self.reportError(Location(existing_typedef_info), 5, 6) + self.reportError(Location(new_typedef_info), 5, 6) + else: + existing_typedef_info['used'] = existing_typedef_info['used'] or new_typedef_info['used'] + else: + all_typedef_info[key] = new_typedef_info + + if summary_type == 'MisraTagName': + for new_tagname_info in summary_data: + key = new_tagname_info['name'] + existing_tagname_info = all_tagname_info.get(key, None) + if existing_tagname_info: + if is_different_location(existing_tagname_info, new_tagname_info): + self.reportError(Location(existing_tagname_info), 5, 7) + self.reportError(Location(new_tagname_info), 5, 7) + else: + existing_tagname_info['used'] = existing_tagname_info['used'] or new_tagname_info['used'] + else: + all_tagname_info[key] = new_tagname_info + + if summary_type == 'MisraMacro': + for new_macro in summary_data: + key = new_macro['name'] + existing_macro = all_macro_info.get(key, None) + if existing_macro: + existing_macro['used'] = existing_macro['used'] or new_macro['used'] + else: + all_macro_info[key] = new_macro + + if summary_type == 'MisraExternalIdentifiers': + for s in sorted(summary_data, key=lambda d: "%s %s %s" %(d['file'],d['line'], d['column'] )): + is_declaration = s['decl'] + if is_declaration: + all_external_identifiers = all_external_identifiers_decl + else: + all_external_identifiers = all_external_identifiers_def + + name = s['name'] + if name in all_external_identifiers: + if is_declaration and is_different_location(s, all_external_identifiers[name]): + self.reportError(Location(s), 8, 5) + self.reportError(Location(all_external_identifiers[name]), 8, 5) + elif is_different_file(s, all_external_identifiers[name]): + self.reportError(Location(s), 8, 6) + self.reportError(Location(all_external_identifiers[name]), 8, 6) + all_external_identifiers[name] = s + + if summary_type == 'MisraInternalIdentifiers': + for s in summary_data: + if s['name'] in all_internal_identifiers: + if not s['inlinefunc'] or s['file'] != all_internal_identifiers[s['name']]['file']: + self.reportError(Location(s), 5, 9) + self.reportError(Location(all_internal_identifiers[s['name']]), 5, 9) + all_internal_identifiers[s['name']] = s + + if summary_type == 'MisraLocalIdentifiers': + for s in summary_data: + all_local_identifiers[s['name']] = s + + if summary_type == 'MisraUsage': + for s in summary_data: + if s['name'] in all_usage_files: + all_usage_files[s['name']].append(s['file']) + else: + all_usage_files[s['name']] = [s['file']] + + except FileNotFoundError: + return + + unused_typedefs = [tdi for tdi in all_typedef_info.values() if not tdi['used']] + for tdi in unused_typedefs: + self.reportError(Location(tdi), 2, 3) + + unused_tags = [tag for tag in all_tagname_info.values() if not tag['used']] + for tag in unused_tags: + self.reportError(Location(tag), 2, 4) + + unused_macros = [m for m in all_macro_info.values() if not m['used']] + for m in unused_macros: + self.reportError(Location(m), 2, 5) + + all_external_identifiers = all_external_identifiers_decl + all_external_identifiers.update(all_external_identifiers_def) + for name, external_identifier in all_external_identifiers.items(): + internal_identifier = all_internal_identifiers.get(name) + if internal_identifier: + self.reportError(Location(internal_identifier), 5, 8) + self.reportError(Location(external_identifier), 5, 8) + + local_identifier = all_local_identifiers.get(name) + if local_identifier: + self.reportError(Location(local_identifier), 5, 8) + self.reportError(Location(external_identifier), 5, 8) + + for name, files in all_usage_files.items(): + #print('%s:%i' % (name, count)) + count = len(files) + if count != 1 or name not in all_external_identifiers_def: + continue + if files[0] != Location(all_external_identifiers_def[name]).file: + continue + if name in all_external_identifiers: + self.reportError(Location(all_external_identifiers[name]), 8, 7) + +RULE_TEXTS_HELP = '''Path to text file of MISRA rules + +If you have the tool 'pdftotext' you might be able +to generate this textfile with such command: + + pdftotext MISRA_C_2012.pdf MISRA_C_2012.txt + +Otherwise you can more or less copy/paste the chapter +Appendix A Summary of guidelines +from the MISRA pdf. You can buy the MISRA pdf from +http://www.misra.org.uk/ + +Format: + +<..arbitrary text..> +Appendix A Summary of guidelines +Rule 1.1 Required +Rule text for 1.1 +continuation of rule text for 1.1 +Rule 1.2 Mandatory +Rule text for 1.2 +continuation of rule text for 1.2 +<...> + +''' + +SUPPRESS_RULES_HELP = '''MISRA rules to suppress (comma-separated) + +For example, if you'd like to suppress rules 15.1, 11.3, +and 20.13, run: + + python misra.py --suppress-rules 15.1,11.3,20.13 ... + +''' + + +def get_args_parser(): + """Generates list of command-line arguments acceptable by misra.py script.""" + parser = cppcheckdata.ArgumentParser() + parser.add_argument("--rule-texts", type=str, help=RULE_TEXTS_HELP) + parser.add_argument("--verify-rule-texts", + help="Verify that all supported rules texts are present in given file and exit.", + action="store_true") + parser.add_argument("--suppress-rules", type=str, help=SUPPRESS_RULES_HELP) + parser.add_argument("--no-summary", help="Hide summary of violations", action="store_true") + parser.add_argument("--show-suppressed-rules", help="Print rule suppression list", action="store_true") + parser.add_argument("-P", "--file-prefix", type=str, help="Prefix to strip when matching suppression file rules") + parser.add_argument("-generate-table", help=argparse.SUPPRESS, action="store_true") + parser.add_argument("-verify", help=argparse.SUPPRESS, action="store_true") + parser.add_argument("--severity", type=str, help="Set a custom severity string, for example 'error' or 'warning'. ") + return parser + + +def main(): + parser = get_args_parser() + args = parser.parse_args() + settings = MisraSettings(args) + checker = MisraChecker(settings) + + checker.path_premium_addon = cppcheckdata.get_path_premium_addon() + + if args.generate_table: + generateTable() + sys.exit(0) + + if args.rule_texts: + filename = os.path.expanduser(args.rule_texts) + filename = os.path.normpath(filename) + checker.ruleText_filename = filename + if os.path.isfile(filename): + checker.loadRuleTexts(filename) + if args.verify_rule_texts: + checker.verifyRuleTexts() + sys.exit(0) + else: + if args.verify_rule_texts: + print('Fatal error: file is not found: ' + filename) + sys.exit(1) + + + if args.verify_rule_texts and not args.rule_texts: + print("Error: Please specify rule texts file with --rule-texts=") + sys.exit(1) + + if args.suppress_rules: + checker.setSuppressionList(args.suppress_rules) + + if args.file_prefix: + checker.setFilePrefix(args.file_prefix) + + dump_files, ctu_info_files = cppcheckdata.get_files(args) + + if (not dump_files) and (not ctu_info_files): + if not args.quiet: + print("No input files.") + sys.exit(0) + + if args.severity: + checker.setSeverity(args.severity) + + for item in dump_files: + checker.parseDump(item,checker.path_premium_addon) + + if settings.verify: + verify_expected = checker.get_verify_expected() + verify_actual = checker.get_verify_actual() + + exitCode = 0 + for expected in verify_expected: + if expected not in verify_actual: + print('Expected but not seen: ' + expected) + exitCode = 1 + for actual in verify_actual: + if actual not in verify_expected: + print('Not expected: ' + actual) + exitCode = 1 + + # Existing behavior of verify mode is to exit + # on the first un-expected output. + # TODO: Is this required? or can it be moved to after + # all input files have been processed + if exitCode != 0: + sys.exit(exitCode) + + checker.analyse_ctu_info(ctu_info_files) + + if settings.verify: + sys.exit(exitCode) + + number_of_violations = len(checker.get_violations()) + if number_of_violations > 0: + if settings.show_summary: + print("\nMISRA rules violations found:\n\t%s\n" % ( + "\n\t".join(["%s: %d" % (viol, len(checker.get_violations(viol))) for viol in + checker.get_violation_types()]))) + + rules_violated = {} + for severity, ids in checker.get_violations(): + for misra_id in ids: + rules_violated[misra_id] = rules_violated.get(misra_id, 0) + 1 + print("MISRA rules violated:") + convert = lambda text: int(text) if text.isdigit() else 0 + misra_sort = lambda key: [convert(c) for c in re.split(r'[\.-]([0-9]*)', key)] + for misra_id in sorted(rules_violated.keys(), key=misra_sort): + res = re.match(r'misra-c2012-([0-9]+)\\.([0-9]+)', misra_id) + if res is None: + num = 0 + else: + num = int(res.group(1)) * 100 + int(res.group(2)) + severity = '-' + if num in checker.ruleTexts: + severity = checker.ruleTexts[num].cppcheck_severity + print("\t%15s (%s): %d" % (misra_id, severity, rules_violated[misra_id])) + + if args.show_suppressed_rules: + checker.showSuppressedRules() + + +if __name__ == '__main__': + main() + sys.exit(cppcheckdata.EXIT_CODE) diff --git a/micromamba_root/share/Cppcheck/addons/misra_9.py b/micromamba_root/share/Cppcheck/addons/misra_9.py new file mode 100644 index 0000000000000000000000000000000000000000..1ca1b7ce3e0eef2c7cc82cf5e9a94e7eac53406b --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/misra_9.py @@ -0,0 +1,559 @@ +# Holds information about an array, struct or union's element definition. +class ElementDef: + def __init__(self, elementType, name, valueType, dimensions = None): + self.elementType = elementType # 'array', 'record' or 'value' + self.name = str(name) + self.valueType = valueType + self.children = [] + self.dimensions = dimensions + self.parent = None + + self.isDesignated = False + self.isPositional = False + self.numInits = 0 + self.childIndex = -1 + + self.flexibleToken = None + self.isFlexible = False + self.structureViolationToken = None + + def __repr__(self): + inits = "" + if self.isPositional: + inits += 'P' + if self.isDesignated: + inits += 'D' + if not (self.isPositional or self.isDesignated) and self.numInits == 0: + inits += '_' + if self.numInits > 1: + inits += str(self.numInits) + + attrs = ["childIndex", "elementType", "valueType"] + return "{}({}, {}, {})".format( + "ElementDef", + self.getLongName(), + inits, + ", ".join(("{}={}".format(a, repr(getattr(self, a))) for a in attrs)) + ) + + @property + def isArray(self): + return self.elementType == 'array' + + @property + def isRecord(self): + return self.elementType == 'record' + + @property + def isValue(self): + return self.elementType == 'value' + + + def getLongName(self): + return self.parent.getLongName() + "." + self.name if self.parent else self.name + + def getInitDump(self): + t = [] + if self.isPositional: + t.append('P') + if self.isDesignated: + t.append('D') + if self.numInits == 0: + t.append('_') + if self.numInits > 1: + t.append(str(self.numInits)) + + myDump = "".join(t) + + if len(self.children): + childDumps = [] + for c in self.children: + childDumps.append(c.getInitDump()) + if self.structureViolationToken is not None: + myDump += "!" + myDump += "{ " + ", ".join(childDumps) + " }" + + return myDump + + def addChild(self, child): + self.children.append(child) + child.parent = self + + def getNextChild(self): + self.childIndex += 1 + return self.getChildByIndex(self.childIndex) + + def getChildByIndex(self, index): + if self.isFlexible: + while len(self.children) <= index: + createChild(self, self.flexibleToken, len(self.children), None) + return self.children[index] if 0 <= index < len(self.children) else None + + def getChildByName(self, name): + for c in self.children: + if c.name == name: + return c + return None + + def getNextValueElement(self, root): + current = self + while current != root: + if not current.parent: + return None + # Get next index of parent + i = current.parent.children.index(current) + 1 + # Next index of parent exists + if i < len(current.parent.children): + current = current.parent.children[i] + return current.getFirstValueElement() + + # Next index of parent doesn't exist. Move up + current = current.parent + return None + + def getFirstValueElement(self): + current = self + + # Move to first child as long as children exists + next_child = current.getChildByIndex(0) + while next_child: + current = next_child + next_child = current.getChildByIndex(0) + return current + + def getLastValueElement(self): + current = self + # Move to last child as long as children exists + while len(current.children) > 0: + current = current.children[-1] + return current + + def getChildByValueElement(self, ed): + potentialChild = ed + while potentialChild and potentialChild not in self.children: + potentialChild = potentialChild.parent + + return self.children[self.children.index(potentialChild)] if potentialChild else None + + def getEffectiveLevel(self): + if self.parent and self.parent.elementType == "array": + return self.parent.getEffectiveLevel() + 1 + return 0 + + def setInitialized(self, designated=False, positional=False): + if designated: + self.isDesignated = True + if positional or not designated: + self.isPositional = True + self.numInits += 1 + + def initializeChildren(self): + for child in self.children: + child.setInitialized(positional=True) + child.initializeChildren() + + def unset(self): + self.isDesignated = False + self.isPositional = False + + # Unset is always recursive + for child in self.children: + child.unset() + + def markStuctureViolation(self, token): + if self.name == '->': + self.children[0].markStuctureViolation(token) + elif not self.structureViolationToken: + self.structureViolationToken = token + + def markAsFlexibleArray(self, token): + self.flexibleToken = token + self.isFlexible = True + + def markAsCurrent(self): + if self.parent: + if self.name == '<-': + self.parent.childIndex = self.parent.children.index(self.children[0]) + else: + self.parent.childIndex = self.parent.children.index(self) + + self.parent.markAsCurrent() + + def isAllChildrenSet(self): + myself = len(self.children) == 0 and (self.isDesignated or self.isPositional) + mychildren = len(self.children) > 0 and all([child.isAllChildrenSet() for child in self.children]) + return myself or mychildren + + def isAllSet(self): + return all([child.isPositional or child.isDesignated for child in self.children]) + + def isOnlyDesignated(self): + return all([not child.isPositional for child in self.children]) + + def isMisra92Compliant(self): + return self.structureViolationToken is None and all([child.isMisra92Compliant() for child in self.children]) + + def isMisra93Compliant(self): + if self.elementType == 'array': + result = self.isAllChildrenSet() or \ + ((self.isAllSet() or + self.isOnlyDesignated()) and + all([not (child.isDesignated or child.isPositional) or child.isMisra93Compliant() for child in self.children])) + return result + if self.elementType == 'record': + result = all([child.isMisra93Compliant() for child in self.children]) + return result + return True + + def isMisra94Compliant(self): + return self.numInits <= 1 and all([child.isMisra94Compliant() for child in self.children]) + + def isMisra95Compliant(self): + return not self.isFlexible or all([not child.isDesignated for child in self.children]) + +# Parses the initializers and update the ElementDefs status accordingly +class InitializerParser: + def __init__(self): + self.token = None + self.root = None + self.ed = None + self.rootStack = [] + + def parseInitializer(self, root, token): + self.root = root + self.token = token + dummyRoot = ElementDef('array', '->', self.root.valueType) + dummyRoot.children = [self.root] + + self.rootStack = [] + self.root = dummyRoot + self.ed = self.root.getFirstValueElement() + isFirstElement = False + isDesignated = False + + while self.token: + if self.token.str == ',': + self.token = self.token.astOperand1 + isFirstElement = False + + # Designated initializer ( [2]=... or .name=... ) + elif self.token.isAssignmentOp and not self.token.valueType: + self.popFromStackIfExitElement() + + self.ed = getElementByDesignator(self.root, self.token.astOperand1) + if self.ed: + # Update root + self.pushToRootStackAndMarkAsDesignated() + # Make sure ed points to valueElement + self.ed = self.ed.getFirstValueElement() + + self.token = self.token.astOperand2 + isFirstElement = False + isDesignated = True + + elif self.token.isString and self.ed and self.ed.isArray: + self.ed.setInitialized(isDesignated) + if self.token == self.token.astParent.astOperand1 and self.token.astParent.astOperand2: + self.token = self.token.astParent.astOperand2 + self.ed.markAsCurrent() + self.ed = self.root.getNextChild() + else: + self.unwindAndContinue() + continue + + elif self.token.str == '{': + nextChild = self.root.getNextChild() if self.root is not None else None + + if nextChild: + if nextChild.isArray or nextChild.isRecord: + nextChild.unset() + nextChild.setInitialized(isDesignated) + self.ed = nextChild.getFirstValueElement() + isDesignated = False + elif nextChild.valueType is None: + # No type information available - unable to check structure - assume correct initialization + nextChild.setInitialized(isDesignated) + self.unwindAndContinue() + continue + + elif self.token.astOperand1: + # Create dummy nextChild to represent excess levels in initializer + dummyRoot = ElementDef('array', '<-', self.root.valueType) + dummyRoot.parent = self.root + dummyRoot.childIndex = 0 + dummyRoot.children = [nextChild] + nextChild.parent = dummyRoot + + self.root.markStuctureViolation(self.token) + + # Fake dummy as nextChild (of current root) + nextChild = dummyRoot + + if nextChild and self.token.astOperand1: + self.root = nextChild + self.token = self.token.astOperand1 + isFirstElement = True + else: + if self.root: + # {} + if self.root.name == '<-': + self.root.parent.markStuctureViolation(self.token) + else: + self.root.markStuctureViolation(self.token) + self.ed = None + self.unwindAndContinue() + + else: + if self.ed and self.ed.isValue: + if not isDesignated and len(self.rootStack) > 0 and self.rootStack[-1][1] == self.root: + self.rootStack[-1][0].markStuctureViolation(self.token) + if isFirstElement and self.token.str == '0' and self.token.next.str == '}': + # Zero initializer causes recursive initialization + self.root.initializeChildren() + elif self.token.isString and self.ed.valueType and self.ed.valueType.pointer > 0: + if self.ed.valueType.pointer - self.ed.getEffectiveLevel() == 1: + if self.ed.parent != self.root: + self.root.markStuctureViolation(self.token) + self.ed.setInitialized(isDesignated) + elif self.ed.valueType.pointer == self.ed.getEffectiveLevel(): + if(self.root.name != '->' and self.ed.parent.parent != self.root) or (self.root.name == '->' and self.root.children[0] != self.ed.parent): + self.root.markStuctureViolation(self.token) + else: + self.ed.parent.setInitialized(isDesignated) + self.ed.parent.initializeChildren() + + else: + if self.root is not None and self.ed.parent != self.root: + # Check if token is correct value type for self.root.children[?] + child = self.root.getChildByValueElement(self.ed) + if self.token.valueType: + if child.elementType != 'record' or self.token.valueType.type != 'record' or child.valueType.typeScope != self.token.valueType.typeScope: + self.root.markStuctureViolation(self.token) + + self.ed.setInitialized(isDesignated) + + # Mark all elements up to root with positional or designated + # (for complex designators, or missing structure) + parent = self.ed.parent + while parent and parent != self.root: + parent.isDesignated = isDesignated if isDesignated and not parent.isPositional else parent.isDesignated + parent.isPositional = not isDesignated if not isDesignated and not parent.isDesignated else parent.isPositional + parent = parent.parent + isDesignated = False + + if self.token.isString and self.ed.parent.isArray: + self.ed = self.ed.parent + self.unwindAndContinue() + + def pushToRootStackAndMarkAsDesignated(self): + new = self.ed.parent + if new != self.root: + # Mark all elements up to self.root root as designated + parent = new + while parent and parent != self.root: + parent.isDesignated = True + parent = parent.parent + self.rootStack.append((self.root, new)) + new.markAsCurrent() + new.childIndex = new.children.index(self.ed) - 1 + self.root = new + + def popFromStackIfExitElement(self): + if len(self.rootStack) > 0 and self.rootStack[-1][1] == self.root: + old = self.rootStack.pop()[0] + old.markAsCurrent() + self.root = old + + def unwindAndContinue(self): + while self.token: + if self.token.astParent.astOperand1 == self.token and self.token.astParent.astOperand2: + if self.ed: + if self.token.astParent.astOperand2.str == "{" and self.ed.isDesignated: + self.popFromStackIfExitElement() + else: + self.ed.markAsCurrent() + self.ed = self.ed.getNextValueElement(self.root) + + self.token = self.token.astParent.astOperand2 + break + + self.token = self.token.astParent + if self.token.str == '{': + if self.root: + self.ed = self.root.getLastValueElement() + self.ed.markAsCurrent() + + # Cleanup if root is dummy node representing excess levels in initializer + if self.root.name == '<-': + self.root.children[0].parent = self.root.parent + + self.root = self.root.parent + + if self.token.astParent is None: + self.token = None + break + +def misra_9_x(self, data, rule, rawTokens = None): + + parser = InitializerParser() + + for variable in data.variables: + if variable.nameToken is None: + continue + + nameToken = variable.nameToken + + # Check if declaration and initialization is + # split into two separate statements in ast. + if nameToken.next and nameToken.next.isSplittedVarDeclEq: + nameToken = nameToken.next.next + + # Find declarations with initializer assignment + eq = nameToken + while not eq.isAssignmentOp and eq.astParent: + eq = eq.astParent + + # We are only looking for initializers + if not eq.isAssignmentOp or eq.astOperand2.isName: + continue + + if variable.isArray or variable.isClass: + ed = getElementDef(nameToken, rawTokens) + # No need to check non-arrays if valueType is missing, + # since we can't say anything useful about the structure + # without it. + if ed.valueType is None and not variable.isArray: + continue + parser.parseInitializer(ed, eq.astOperand2) + # print(rule, nameToken.str + '=', ed.getInitDump()) + if rule == 902 and not ed.isMisra92Compliant(): + self.reportError(nameToken, 9, 2) + if rule == 903 and not ed.isMisra93Compliant(): + # Do not check when variable is pointer type + type_token = variable.nameToken + while type_token and type_token.isName: + type_token = type_token.previous + if type_token and type_token.str == '*': + continue + + self.reportError(nameToken, 9, 3) + if rule == 904 and not ed.isMisra94Compliant(): + self.reportError(nameToken, 9, 4) + if rule == 905 and not ed.isMisra95Compliant(): + self.reportError(nameToken, 9, 5) + +def getElementDef(nameToken, rawTokens = None): + if nameToken.variable.isArray: + ed = ElementDef("array", nameToken.str, nameToken.valueType) + createArrayChildrenDefs(ed, nameToken.astParent, nameToken.variable, rawTokens) + elif nameToken.variable.isClass: + ed = ElementDef("record", nameToken.str, nameToken.valueType) + createRecordChildrenDefs(ed, nameToken.variable) + else: + ed = ElementDef("value", nameToken.str, nameToken.valueType) + return ed + +def createArrayChildrenDefs(ed, token, var, rawTokens = None): + if token and token.str == '[': + if rawTokens is not None: + foundToken = next((rawToken for rawToken in rawTokens + if rawToken.file == token.file + and rawToken.linenr == token.linenr + and rawToken.column == token.column + ), None) + + if foundToken and foundToken.next and foundToken.next.str == ']': + ed.markAsFlexibleArray(token) + + if (token.astOperand2 is not None) and (token.astOperand2.getKnownIntValue() is not None): + for i in range(token.astOperand2.getKnownIntValue()): + createChild(ed, token, i, var) + else: + ed.markAsFlexibleArray(token) + + +def createChild(ed, token, name, var): + if token.astParent and token.astParent.str == '[': + child = ElementDef("array", name, ed.valueType) + createArrayChildrenDefs(child, token.astParent, var) + else: + if ed.valueType and ed.valueType.type == "record": + child = ElementDef("record", name, ed.valueType) + createRecordChildrenDefs(child, var) + else: + child = ElementDef("value", name, ed.valueType) + + ed.addChild(child) + +def createRecordChildrenDefs(ed, var): + valueType = ed.valueType + if not valueType or not valueType.typeScope: + return + if var is None: + return + typeToken = var.typeEndToken + while typeToken and typeToken.isName: + typeToken = typeToken.previous + if typeToken and typeToken.str == '*': + child = ElementDef("pointer", var.nameToken, var.nameToken.valueType) + ed.addChild(child) + return + child_dict = {} + for variable in valueType.typeScope.varlist: + if variable is var: + continue + child = getElementDef(variable.nameToken) + child_dict[variable.nameToken] = child + for scopes in valueType.typeScope.nestedList: + varscope = False + if scopes.nestedIn == valueType.typeScope: + for variable in valueType.typeScope.varlist: + if variable.nameToken and variable.nameToken.valueType and variable.nameToken.valueType.typeScope == scopes: + varscope = True + break + if not varscope: + ed1 = ElementDef("record", scopes.Id, valueType) + for variable in scopes.varlist: + child = getElementDef(variable.nameToken) + ed1.addChild(child) + child_dict[scopes.bodyStart] = ed1 + sorted_keys = sorted(list(child_dict.keys()), key=lambda k: (k.file, k.linenr, k.column)) + for _key in sorted_keys: + ed.addChild(child_dict[_key]) + + +def getElementByDesignator(ed, token): + if not token.str in [ '.', '[' ]: + return None + + while token.str in [ '.', '[' ]: + token = token.astOperand1 + + while ed and not token.isAssignmentOp: + token = token.astParent + + if token.str == '[': + if not ed.isArray: + ed.markStuctureViolation(token) + + chIndex = -1 + if token.astOperand2 is not None: + chIndex = token.astOperand2.getKnownIntValue() + elif token.astOperand1 is not None: + chIndex = token.astOperand1.getKnownIntValue() + + ed = ed.getChildByIndex(chIndex) if chIndex is not None else None + + elif token.str == '.': + if not ed.isRecord: + ed.markStuctureViolation(token) + + name = "" + if token.astOperand2 is not None: + name = token.astOperand2.str + elif token.astOperand1 is not None: + name = token.astOperand1.str + + ed = ed.getChildByName(name) + + return ed diff --git a/micromamba_root/share/Cppcheck/addons/naming.py b/micromamba_root/share/Cppcheck/addons/naming.py new file mode 100644 index 0000000000000000000000000000000000000000..2893779f2e037e9837d282858d95a6d4b348ddef --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/naming.py @@ -0,0 +1,92 @@ +#!/usr/bin/env python3 +# +# cppcheck addon for naming conventions +# +# Example usage (variable name must start with lowercase, function name must start with uppercase): +# $ cppcheck --dump path-to-src/ +# $ python addons/naming.py --var='[a-z].*' --function='[A-Z].*' path-to-src/*.dump +# + +import cppcheckdata +import sys +import re + + +def validate_regex(expr): + try: + re.compile(expr) + except re.error: + print('Error: "{}" is not a valid regular expression.'.format(expr)) + sys.exit(1) + + +RE_VARNAME = None +RE_CONSTNAME = None +RE_PRIVATE_MEMBER_VARIABLE = None +RE_FUNCTIONNAME = None +for arg in sys.argv[1:]: + if arg[:6] == '--var=': + RE_VARNAME = arg[6:] + validate_regex(RE_VARNAME) + elif arg.startswith('--const='): + RE_CONSTNAME = arg[arg.find('=')+1:] + validate_regex(RE_CONSTNAME) + elif arg.startswith('--private-member-variable='): + RE_PRIVATE_MEMBER_VARIABLE = arg[arg.find('=')+1:] + validate_regex(RE_PRIVATE_MEMBER_VARIABLE) + elif arg[:11] == '--function=': + RE_FUNCTIONNAME = arg[11:] + validate_regex(RE_FUNCTIONNAME) + # TODO: bail out on unknown parameter + + +def reportError(token, severity, msg, errorId): + cppcheckdata.reportError(token, severity, msg, 'naming', errorId) + + +for arg in sys.argv[1:]: + if not arg.endswith('.dump'): + continue + print('Checking ' + arg + '...') + data = cppcheckdata.CppcheckData(arg) + + for cfg in data.iterconfigurations(): + print('Checking %s, config %s...' % (arg, cfg.name)) + if RE_VARNAME: + for var in cfg.variables: + if var.access == 'Private': + continue + if var.nameToken and not var.isConst: + res = re.match(RE_VARNAME, var.nameToken.str) + if not res: + reportError(var.typeStartToken, 'style', 'Variable ' + + var.nameToken.str + ' violates naming convention', 'varname') + if RE_CONSTNAME: + for var in cfg.variables: + if var.access == 'Private': + continue + if var.nameToken and var.isConst: + res = re.match(RE_CONSTNAME, var.nameToken.str) + if not res: + reportError(var.typeStartToken, 'style', 'Constant ' + + var.nameToken.str + ' violates naming convention', 'constname') + if RE_PRIVATE_MEMBER_VARIABLE: + for var in cfg.variables: + if (var.access is None) or var.access != 'Private': + continue + res = re.match(RE_PRIVATE_MEMBER_VARIABLE, var.nameToken.str) + if not res: + reportError(var.typeStartToken, 'style', 'Private member variable ' + + var.nameToken.str + ' violates naming convention', 'privateMemberVariable') + if RE_FUNCTIONNAME: + for scope in cfg.scopes: + if scope.type == 'Function': + function = scope.function + if function is not None and function.type in ('Constructor', 'Destructor', 'CopyConstructor', 'MoveConstructor'): + continue + res = re.match(RE_FUNCTIONNAME, scope.className) + if not res: + reportError( + scope.bodyStart, 'style', 'Function ' + scope.className + ' violates naming convention', 'functionName') + +sys.exit(cppcheckdata.EXIT_CODE) diff --git a/micromamba_root/share/Cppcheck/addons/namingng.config.json b/micromamba_root/share/Cppcheck/addons/namingng.config.json new file mode 100644 index 0000000000000000000000000000000000000000..0abba4f15ac9a3613e95d19eb347b43743c0082f --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/namingng.config.json @@ -0,0 +1,19 @@ +{ + "RE_VARNAME": ["[a-z]*[a-zA-Z0-9_]*\\Z"], + "RE_PRIVATE_MEMBER_VARIABLE": null, + "RE_FUNCTIONNAME": ["[a-z0-9A-Z]*\\Z"], + "include_guard": { + "input": "path", + "prefix": "", + "suffix": "", + "case": "upper", + "max_linenr": 5, + "RE_HEADERFILE": "[^/].*\\.h\\Z", + "required": true + }, + "var_prefixes": {"uint32_t": "ui32", + "int*": "intp"}, + "function_prefixes": {"uint16_t": "ui16", + "uint32_t": "ui32"}, + "skip_one_char_variables": false +} diff --git a/micromamba_root/share/Cppcheck/addons/namingng.json b/micromamba_root/share/Cppcheck/addons/namingng.json new file mode 100644 index 0000000000000000000000000000000000000000..83f9a5a55d80164c0386884af3e0db6f3c24f5a2 --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/namingng.json @@ -0,0 +1,6 @@ +{ + "script":"namingng.py", + "args":[ + "--configfile=namingng.config.json" + ] +} diff --git a/micromamba_root/share/Cppcheck/addons/namingng.py b/micromamba_root/share/Cppcheck/addons/namingng.py new file mode 100644 index 0000000000000000000000000000000000000000..9da177321efd845c0846ee6c620df2226278bcee --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/namingng.py @@ -0,0 +1,420 @@ +#!/usr/bin/env python3 +# +# cppcheck addon for naming conventions +# An enhanced version. Configuration is taken from a json file +# It supports to check for type-based prefixes in function or variable names. +# Aside from include guard naming, include guard presence can also be tested. +# +# Example usage (variable name must start with lowercase, function name must start with uppercase): +# $ cppcheck --dump path-to-src/ +# $ python namingng.py test.c.dump +# +# JSON format: +# +# { +# "RE_VARNAME": ["[a-z]*[a-zA-Z0-9_]*\\Z"], +# "RE_PRIVATE_MEMBER_VARIABLE": null, +# "RE_FUNCTIONNAME": ["[a-z0-9A-Z]*\\Z"], +# "_comment": "comments can be added to the config with underscore-prefixed keys", +# "include_guard": { +# "input": "path", +# "prefix": "GUARD_", +# "case": "upper", +# "max_linenr": 5, +# "RE_HEADERFILE": "[^/].*\\.h\\Z", +# "required": true +# }, +# "var_prefixes": {"uint32_t": "ui32"}, +# "function_prefixes": {"uint16_t": "ui16", +# "uint32_t": "ui32"} +# } +# +# RE_VARNAME, RE_PRIVATE_MEMBER_VARIABLE and RE_FUNCTIONNAME are regular expressions to cover the basic names +# In var_prefixes and function_prefixes there are the variable-type/prefix pairs + +import cppcheckdata +import sys +import os +import re +import json + +# Auxiliary class +class DataStruct: + def __init__(self, file, linenr, string, column=0): + self.file = file + self.linenr = linenr + self.str = string + self.column = column + +def reportNamingError(location,message,errorId='namingConvention',severity='style',extra='',column=None): + cppcheckdata.reportError(location,severity,message,'namingng',errorId,extra,columnOverride=column) + +def configError(error,fatal=True): + print('config error: %s'%error) + if fatal: + sys.exit(1) + +def validateConfigREs(list_or_dict,json_key): + have_error = False + for item in list_or_dict: + try: + re.compile(item) + except re.error as err: + configError("item '%s' of '%s' is not a valid regular expression: %s"%(item,json_key,err),fatal=False) + have_error = True + continue + if not isinstance(list_or_dict,dict): + continue + # item is actually a dict key; check value + value = list_or_dict[item] + if (not isinstance(value,list) or len(value) != 2 + or not isinstance(value[0],bool) or not isinstance(value[1],str)): + configError("item '%s' of '%s' must be an array [bool,string]"%(item,json_key),fatal=False) + have_error = True + + return have_error + +def loadConfig(configfile): + if not os.path.exists(configfile): + configError("cannot find config file '%s'"%configfile) + + try: + with open(configfile) as fh: + data = json.load(fh) + except json.JSONDecodeError as e: + configError("error parsing config file as JSON at line %d: %s"%(e.lineno,e.msg)) + except Exception as e: + configError("error opening config file '%s': %s"%(configfile,e)) + + if not isinstance(data, dict): + configError('config file must contain a JSON object at the top level') + + # All errors are emitted before bailing out, to make the unit test more + # effective. + have_error = False + + # Put config items in a class, so that settings can be accessed using + # config.feature + class Config: + pass + config = Config() + + mapping = { + 'file': ('RE_FILE', (list,)), + 'namespace': ('RE_NAMESPACE', (list,dict)), + 'include_guard': ('include_guard', (dict,)), + 'variable': ('RE_VARNAME', (list,dict)), + 'variable_prefixes': ('var_prefixes', (dict,), {}), + 'private_member': ('RE_PRIVATE_MEMBER_VARIABLE', (list,dict)), + 'public_member': ('RE_PUBLIC_MEMBER_VARIABLE', (list,dict)), + 'global_variable': ('RE_GLOBAL_VARNAME', (list,dict)), + 'function_name': ('RE_FUNCTIONNAME', (list,dict)), + 'function_prefixes': ('function_prefixes', (dict,), {}), + 'class_name': ('RE_CLASS_NAME', (list,dict)), + 'skip_one_char_variables': ('skip_one_char_variables', (bool,)), + } + + # parse defined keys and store as members of config object + for key,opts in mapping.items(): + json_key = opts[0] + req_type = opts[1] + default = None if len(opts)<3 else opts[2] + + value = data.pop(json_key,default) + if value is not None and type(value) not in req_type: + req_typename = ' or '.join([tp.__name__ for tp in req_type]) + got_typename = type(value).__name__ + configError('%s must be %s (not %s), or not set'%(json_key,req_typename,got_typename),fatal=False) + have_error = True + continue + + # type list implies that this is either a list of REs or a dict with RE keys + if list in req_type and value is not None: + re_error = validateConfigREs(value,json_key) + if re_error: + have_error = True + + setattr(config,key,value) + + # check remaining keys, only accept underscore-prefixed comments + for key,value in data.items(): + if key == '' or key[0] != '_': + configError("unknown config key '%s'"%key,fatal=False) + have_error = True + + if have_error: + sys.exit(1) + + # pylint: disable-next=no-member - TODO: fix this + if config.include_guard: + # pylint: disable-next=no-member - TODO: fix this + config.include_guard_header_re = config.include_guard.get('RE_HEADERFILE',"[^/].*\\.h\\Z") + + return config + + +def evalExpr(conf, exp, mockToken, msgType): + report_as_error = False + msg = msgType + ' ' + mockToken.str + ' violates naming convention' + + if isinstance(conf, dict): + report_as_error = conf[exp][0] + msg += ': ' + conf[exp][1] + + res = re.match(exp,mockToken.str) + if bool(res) == report_as_error: + reportNamingError(mockToken,msg) + +def check_include_guard_name(conf,directive): + parts = directive.str.split() + if len(parts) != 2: + msg = 'syntax error' + reportNamingError(directive,msg,'syntax') + return None,None + guard_name = parts[1] + guard_column = 1+directive.str.find(guard_name) + + filename = directive.file + if conf.include_guard.get('input','path') == 'basename': + filename = os.path.basename(filename) + use_case = conf.include_guard.get('case','upper') + if use_case == 'upper': + filename = filename.upper() + elif use_case == 'lower': + filename = filename.lower() + elif use_case == 'keep': + pass # keep filename case as-is + else: + print("invalid config value for 'case': '%s'"%use_case,file=sys.stderr) + sys.exit(1) + + barename = re.sub('[^A-Za-z0-9]','_',filename).strip('_') + expect_guard_name = conf.include_guard.get('prefix','') + barename + conf.include_guard.get('suffix','') + if expect_guard_name != guard_name: + msg = 'include guard naming violation; %s != %s'%(guard_name,expect_guard_name) + reportNamingError(directive,msg,'includeGuardName',column=guard_column) + + return guard_name,guard_column + +def check_include_guards(conf,cfg,unguarded_include_files): + # Scan for '#ifndef FILE_H' as the first directive, in the first N lines. + # Then test whether the next directive #defines the found name. + # Various tests are done: + # - check include guards for their naming and consistency + # - test whether include guards are in place + max_linenr = conf.include_guard.get('max_linenr', 5) + + def report(directive,msg,errorId,severity='style',column=0): + reportNamingError(directive,msg,errorId,severity=severity,column=column) + + def report_pending_ifndef(directive,column): + report(directive,'include guard #ifndef is not followed by #define','includeGuardIncomplete',column=column) + + last_fn = None + pending_ifndef = None + guard_column = None + phase = 0 + for directive in cfg.directives: + if last_fn != directive.file: + if pending_ifndef: + report_pending_ifndef(pending_ifndef,guard_column) + pending_ifndef = None + last_fn = directive.file + phase = 0 + if phase == -1: + # ignore (the remainder of) this file + continue + if not re.match(conf.include_guard_header_re,directive.file): + phase = -1 + continue + + if directive.linenr > max_linenr: + if phase == 0 and conf.include_guard.get('required',1): + report(directive,'include guard not found before line %d'%max_linenr,'includeGuardMissing') + phase = -1 + continue + + if phase == 0: + # looking for '#ifndef FILE_H' + if not directive.str.startswith('#ifndef'): + if conf.include_guard.get('required',1): + report(directive,'first preprocessor directive should be include guard #ifndef','includeGuardMissing') + phase = -1 + continue + guard_name,guard_column = check_include_guard_name(conf,directive) + if guard_name is None: + phase = -1 + continue + pending_ifndef = directive + phase = 1 + elif phase == 1: + pending_ifndef = None + # looking for '#define FILE_H' + if not directive.str.startswith('#define'): + report(directive,'second preprocessor directive should be include guard #define','includeGuardIncomplete') + phase = -1 + continue + parts = directive.str.split() + if len(parts) == 1: + report(directive,'syntax error','syntax') + phase = -1 + continue + if guard_name != parts[1]: + report(directive,'include guard does not guard; %s != %s'%(guard_name,parts[1]),'includeGuardAwayFromDuty',severity='warning',column=guard_column) + + unguarded_include_files.remove(directive.file) + + phase = -1 + if pending_ifndef: + report_pending_ifndef(pending_ifndef,guard_column) + +def process(dumpfiles, configfile, cli, debugprint): + conf = loadConfig(configfile) + + for afile in dumpfiles: + if not afile[-5:] == '.dump': + continue + if not cli: + print('Checking ' + afile + '...') + data = cppcheckdata.CppcheckData(afile) + process_data(conf,data,cli,debugprint) + +def check_file_naming(conf,data): + for source_file in data.files: + basename = os.path.basename(source_file) + good = False + for exp in conf.file: + good |= bool(re.match(exp, source_file)) + good |= bool(re.match(exp, basename)) + if not good: + mockToken = DataStruct(source_file, 0, basename) + reportNamingError(mockToken, 'File name ' + basename + ' violates naming convention') + +def check_namespace_naming(conf,data): + for tk in data.rawTokens: + if tk.str != 'namespace': + continue + mockToken = DataStruct(tk.next.file, tk.next.linenr, tk.next.str, tk.next.column) + for exp in conf.namespace: + evalExpr(conf.namespace, exp, mockToken, 'Namespace') + +def check_variable_naming(conf,cfg,debugprint): + for var in cfg.variables: + if not var.nameToken: + continue + if var.access in ('Global','Public','Private'): + continue + prev = var.nameToken.previous + varType = prev.str + while "*" in varType and len(varType.replace("*", "")) == 0: + prev = prev.previous + varType = prev.str + varType + + if debugprint: + print("Variable Name: " + str(var.nameToken.str)) + print("original Type Name: " + str(var.nameToken.valueType.originalTypeName)) + print("Type Name: " + var.nameToken.valueType.type) + print("Sign: " + str(var.nameToken.valueType.sign)) + print("variable type: " + varType) + print("\n") + print("\t-- {} {}".format(varType, str(var.nameToken.str))) + + if conf.skip_one_char_variables and len(var.nameToken.str) == 1: + continue + if varType in conf.variable_prefixes: + prefix = conf.variable_prefixes[varType] + if not var.nameToken.str.startswith(prefix): + reportNamingError(var.typeStartToken, + 'Variable ' + + var.nameToken.str + + ' violates naming convention', + column=var.nameToken.column) + + mockToken = DataStruct(var.typeStartToken.file, var.typeStartToken.linenr, var.nameToken.str, var.nameToken.column) + for exp in conf.variable: + evalExpr(conf.variable, exp, mockToken, 'Variable') + +# Naming check for Global, Private and Public member variables +def check_gpp_naming(conf_list,cfg,access,message): + for var in cfg.variables: + if var.access != access: + continue + mockToken = DataStruct(var.typeStartToken.file, var.typeStartToken.linenr, var.nameToken.str, var.nameToken.column) + for exp in conf_list: + evalExpr(conf_list, exp, mockToken, message) + +def check_function_naming(conf,cfg,debugprint): + for token in cfg.tokenlist: + if not token.function: + continue + if token.function.type in ('Constructor', 'Destructor', 'CopyConstructor', 'MoveConstructor'): + continue + retval = token.previous.str + prev = token.previous + while "*" in retval and len(retval.replace("*", "")) == 0: + prev = prev.previous + retval = prev.str + retval + if debugprint: + print("\t:: {} {}".format(retval, token.function.name)) + + if retval and retval in conf.function_prefixes: + if not token.function.name.startswith(conf.function_prefixes[retval]): + reportNamingError(token, 'Function ' + token.function.name + ' violates naming convention', column=token.column) + mockToken = DataStruct(token.file, token.linenr, token.function.name, token.column) + msgType = 'Function' + for exp in conf.function_name: + evalExpr(conf.function_name, exp, mockToken, msgType) + +def check_class_naming(conf,cfg): + for fnc in cfg.functions: + if fnc.type not in ('Constructor','Destructor'): + continue + mockToken = DataStruct(fnc.tokenDef.file, fnc.tokenDef.linenr, fnc.name, fnc.tokenDef.column) + msgType = 'Class ' + fnc.type + for exp in conf.class_name: + evalExpr(conf.class_name, exp, mockToken, msgType) + +def process_data(conf,data,cli,debugprint): + if conf.file: + check_file_naming(conf,data) + + if conf.namespace: + check_namespace_naming(conf,data) + + unguarded_include_files = [] + if conf.include_guard and conf.include_guard.get('required',1): + unguarded_include_files = [fn for fn in data.files if re.match(conf.include_guard_header_re,fn)] + + for cfg in data.configurations: + if not cli: + print('Checking config %s...' % cfg.name) + if conf.variable: + check_variable_naming(conf,cfg,debugprint) + if conf.private_member: + check_gpp_naming(conf.private_member,cfg,'Private','Private member variable') + if conf.public_member: + check_gpp_naming(conf.public_member,cfg,'Public','Public member variable') + if conf.global_variable: + check_gpp_naming(conf.global_variable,cfg,'Global','Global variable') + if conf.function_name: + check_function_naming(conf,cfg,debugprint) + if conf.class_name: + check_class_naming(conf,cfg) + if conf.include_guard: + check_include_guards(conf,cfg,unguarded_include_files) + + for fn in unguarded_include_files: + mockToken = DataStruct(fn,0,os.path.basename(fn)) + reportNamingError(mockToken,'Missing include guard','includeGuardMissing') + +if __name__ == "__main__": + parser = cppcheckdata.ArgumentParser() + parser.add_argument("--debugprint", action="store_true", default=False, + help="Add debug prints") + parser.add_argument("--configfile", type=str, default="namingng.config.json", + help="Naming check config file") + + args = parser.parse_args() + process(args.dumpfile, args.configfile, args.cli, args.debugprint) + + sys.exit(0) diff --git a/micromamba_root/share/Cppcheck/addons/runaddon.py b/micromamba_root/share/Cppcheck/addons/runaddon.py new file mode 100644 index 0000000000000000000000000000000000000000..26ad7e9fa734bf407c0a1a4061585dc632a25a8f --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/runaddon.py @@ -0,0 +1,16 @@ +import cppcheckdata +import cppcheck +import runpy +import sys +import os + +if __name__ == '__main__': + addon = sys.argv[1] + __addon_name__ = os.path.splitext(os.path.basename(addon))[0] + sys.argv.pop(0) + + runpy.run_path(addon, run_name='__main__') + + # Run registered checkers + cppcheck.runcheckers() + sys.exit(cppcheckdata.EXIT_CODE) \ No newline at end of file diff --git a/micromamba_root/share/Cppcheck/addons/threadsafety.py b/micromamba_root/share/Cppcheck/addons/threadsafety.py new file mode 100644 index 0000000000000000000000000000000000000000..9475e1a5b0d584b1467f69a4416928145f1a8b11 --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/threadsafety.py @@ -0,0 +1,350 @@ +#!/usr/bin/env python3 +""" +cppcheck addon for threadsafety detection. + + This script analyses Cppcheck dump files to locate threadsafety issues. + It warns about + - static local objects + - MT-Unsafe symbols listed in the "Attributes" sections of man pages. + +""" + +import re +import sys + +import cppcheckdata + +# -------------------------------- +# List of MT-Unsafe identifiers +# -------------------------------- + +# This is Work In Progress. +# Eventually it should contain all identifiers (types +# and functions) which are MT-Unsafe. + +# The script tools/MT-Unsafe.py can help to re-generate this list. +# It reads a man-page tree and report identifiers marked as "MT-Unsafe" +# (see man 7 attributes for what this means), eg +# MT-Unsafe.py /usr/share/man/man3 + +id_MTunsafe_full = { + # MT-Unsafe types by definition + # 'pthread_t', + # Types marked MT-Unsafe + 'const:env', + 'const:hostid', + 'const:mallopt', + 'const:sigintr', + 'race:LogMask', + 'race:asctime', + 'race:crypt', + 'race:crypt_gensalt', + 'race:cuserid/!string', + 'race:dirstream', + 'race:drand48', + 'race:ecvt', + 'race:exit', + 'race:fcvt', + 'race:fgetgrent', + 'race:fgetpwent', + 'race:fgetspent', + 'race:fsent', + 'race:getdate', + 'race:getlogin', + 'race:getopt', + 'race:getspent', + 'race:getspnam', + 'race:grent', + 'race:grgid', + 'race:grnam', + 'race:hostbyaddr', + 'race:hostbyname', + 'race:hostbyname2', + 'race:hostent', + 'race:hsearch', + 'race:l64a', + 'race:localeconv', + 'race:mbrlen/!ps', + 'race:mbrtowc/!ps', + 'race:mbsnrtowcs/!ps', + 'race:mbsrtowcs/!ps', + 'race:mcheck', + 'race:mntentbuf', + 'race:netbyaddr', + 'race:netbyname', + 'race:netent', + 'race:netgrent', + 'race:protobyname', + 'race:protobynumber', + 'race:protoent', + 'race:ptsname', + 'race:pwent', + 'race:pwnam', + 'race:pwuid', + 'race:qecvt', + 'race:qfcvt', + 'race:servbyname', + 'race:servbyport', + 'race:servent', + 'race:sgetspent', + 'race:signgam', + 'race:stdin', + 'race:stdout', + 'race:streams', + 'race:strerror', + 'race:strsignal', + 'race:strtok', + 'race:tmbuf', + 'race:tmpnam/!s', + 'race:ttyent', + 'race:ttyname', + 'race:utent', + 'race:wcrtomb/!ps', + 'race:wcsnrtombs/!ps', + 'race:wcsrtombs/!ps', + 'sig:ALRM', + 'sig:SIGCHLD/linux', + # APIs marked MT-Unsafe + 'asctime', + 'clearenv', + 'ctime', + 'cuserid', + 'drand48', + 'ecvt', + 'encrypt', + 'endfsent', + 'endgrent', + 'endhostent', + 'endnetent', + 'endnetgrent', + 'endprotoent', + 'endpwent', + 'endservent', + 'endspent', + 'endttyent', + 'endusershell', + 'endutent', + 'erand48', + 'error_at_line', + 'ether_aton', + 'ether_ntoa', + 'exit', + 'fcloseall', + 'fcvt', + 'fgetgrent', + 'fgetpwent', + 'fgetspent', + 'fts_children', + 'fts_read', + 'gamma', + 'gammaf', + 'gammal', + 'getaliasbyname', + 'getaliasent', + 'getchar_unlocked', + 'getdate', + 'getfsent', + 'getfsfile', + 'getfsspec', + 'getgrent', + 'getgrent_r', + 'getgrgid', + 'getgrnam', + 'gethostbyaddr', + 'gethostbyname', + 'gethostbyname2', + 'gethostent', + 'gethostent_r', + 'getlogin', + 'getlogin_r', + 'getmntent', + 'getnetbyaddr', + 'getnetbyname', + 'getnetent', + 'getnetgrent', + 'getnetgrent_r', + 'getopt', + 'getopt_long', + 'getopt_long_only', + 'getpass', + 'getprotobyname', + 'getprotobynumber', + 'getprotoent', + 'getpwent', + 'getpwent_r', + 'getpwnam', + 'getpwuid', + 'getrpcbyname', + 'getrpcbynumber', + 'getrpcent', + 'getservbyname', + 'getservbyport', + 'getservent', + 'getspent', + 'getspent_r', + 'getspnam', + 'getttyent', + 'getttynam', + 'getusershell', + 'getutent', + 'getutid', + 'getutline', + 'getwchar_unlocked', + 'glob', + 'gmtime', + 'hcreate', + 'hdestroy', + 'hsearch', + 'innetgr', + 'jrand48', + 'l64a', + 'lcong48', + 'localeconv', + 'localtime', + 'login', + 'login_tty', + 'logout', + 'logwtmp', + 'lrand48', + 'mallinfo', + 'mallinfo2', + 'mblen', + 'mbrlen', + 'mbrtowc', + 'mbsnrtowcs', + 'mbsrtowcs', + 'mbtowc', + 'mcheck', + 'mcheck_check_all', + 'mcheck_pedantic', + 'mprobe', + 'mrand48', + 'mtrace', + 'muntrace', + 'nrand48', + 'profil', + 'ptsname', + 'putchar_unlocked', + 'putenv', + 'pututline', + 'putwchar_unlocked', + 'pvalloc', + 'qecvt', + 'qfcvt', + 'rcmd', + 'rcmd_af', + 're_comp', + 're_exec', + 'readdir', + 'rexec', + 'rexec_af', + 'seed48', + 'setenv', + 'setfsent', + 'setgrent', + 'sethostent', + 'sethostid', + 'setkey', + 'setlogmask', + 'setnetent', + 'setnetgrent', + 'setprotoent', + 'setpwent', + 'setservent', + 'setspent', + 'setttyent', + 'setusershell', + 'setutent', + 'sgetspent', + 'siginterrupt', + 'sleep', + 'srand48', + 'strerror', + 'strsignal', + 'strtok', + 'tmpnam', + 'ttyname', + 'ttyslot', + 'unsetenv', + 'updwtmp', + 'utmpname', + 'valloc', + 'wcrtomb', + 'wcsnrtombs', + 'wcsrtombs', + 'wctomb', + 'wordexp' +} + +# From man 7 attributes +# the full token could be feature:function/condition - we just want function. +id_MTunsafe = [re.sub('^.*:', '', re.sub('/.*$', '', x)) + for x in id_MTunsafe_full + ] + + +def reportError(token, severity, msg, errid): # noqa: D103 + cppcheckdata.reportError(token, severity, msg, 'threadsafety', errid) + + +def checkstatic(data): # noqa: D103 + for var in data.variables: + if var.isStatic and var.isLocal: + vartype = None + if var.isClass: + vartype = 'object' + else: + vartype = 'variable' + if var.isConst: + if data.standards.cpp == 'c++03': + reportError( + var.typeStartToken, + 'warning', + 'Local constant static ' + + vartype + "'" + var.nameToken.str + + "', dangerous if it is initialized" + + ' in parallel threads', + 'threadsafety-const') + else: + reportError(var.typeStartToken, 'warning', + 'Local static ' + vartype + ': ' + + var.nameToken.str, + 'threadsafety') + + +def check_MTunsafe(cfg): + """ + Look for functions marked MT-unsafe in their man pages. + + The MT-unsafe functions are listed in id_MTunsafe (and id_MTunsafe_full). + That section of code can be regenerated by the external script MT-Unsafe.py + """ + for token in cfg.tokenlist: + if token.str in id_MTunsafe: + reportError(token, 'warning', token.str + ' is MT-unsafe', + 'unsafe-call') + + +if __name__ == '__main__': + parser = cppcheckdata.ArgumentParser() + args = parser.parse_args() + + quiet = args.quiet or args.cli + + if not args.dumpfile: + if not args.quiet: + print('no input files.') + sys.exit(0) + + for dumpfile in args.dumpfile: + # load XML from .dump file + data = cppcheckdata.CppcheckData(dumpfile) + + for cfg in data.iterconfigurations(): + if not args.quiet: + srcfile = data.files[0] + print('Checking %s, config %s...' % (srcfile, cfg.name)) + check_MTunsafe(cfg) + checkstatic(cfg) + + sys.exit(cppcheckdata.EXIT_CODE) diff --git a/micromamba_root/share/Cppcheck/addons/y2038.py b/micromamba_root/share/Cppcheck/addons/y2038.py new file mode 100644 index 0000000000000000000000000000000000000000..b17d41dd330dd7ce6b500c413bbdd8158709e95e --- /dev/null +++ b/micromamba_root/share/Cppcheck/addons/y2038.py @@ -0,0 +1,602 @@ +#!/usr/bin/env python3 +# +# cppcheck addon for Y2038 safeness detection +# +# This addon provides comprehensive Y2038 (Year 2038 Problem) detection for C/C++ code. +# It extracts compiler flags from cppcheck dump file configuration to determine +# Y2038 safety, suppressing warnings when proper configuration is detected. +# +# Key Features: +# - Extraction of Y2038-related flags from cppcheck dump file configuration +# - Compiler flag parsing and validation from cppcheck's project parsing +# - Warning suppression when proper Y2038 configuration is found +# - Support for both _TIME_BITS=64 and _FILE_OFFSET_BITS=64 requirements +# - Priority-based flag resolution (dump file configuration > source code directives) +# +# Detects: +# +# 1. _TIME_BITS being defined to something else than 64 bits +# 2. _FILE_OFFSET_BITS being defined to something else than 64 bits +# 3. _USE_TIME_BITS64 being defined when _TIME_BITS is not +# 4. Any Y2038-unsafe symbol when proper Y2038 configuration is not present +# 5. Dump file configurations that affect Y2038 safety +# +# Warning Suppression: +# When both _TIME_BITS=64 AND _FILE_OFFSET_BITS=64 are detected (prioritizing dump file +# configuration over source code directives), Y2038 warnings are suppressed and an +# informational message is displayed instead. +# +# Example usage: +# $ cppcheck --addon=y2038 path-to-src/test.c +# $ cppcheck --dump file.c && python3 y2038.py file.c.dump +# + +from __future__ import print_function + +import cppcheckdata +import sys +import re + +# Y2038 flags are extracted by cppcheck core during project parsing +# and passed through dump file configuration - no redundant parsing needed + +# -------------------------------- +# Y2038 safety constants +# -------------------------------- + +# Y2038-safe bit values +Y2038_SAFE_TIME_BITS = 64 +Y2038_SAFE_FILE_OFFSET_BITS = 64 + +# -------------------------------------------- +# #define/#undef detection regular expressions +# -------------------------------------------- + +# test for '#define _TIME_BITS 64' +re_define_time_bits_64 = re.compile(rf'^\s*#\s*define\s+_TIME_BITS\s+{Y2038_SAFE_TIME_BITS}\s*$') + +# test for '#define _TIME_BITS ...' (combine w/ above to test for 'not 64') +re_define_time_bits = re.compile(r'^\s*#\s*define\s+_TIME_BITS\s+.*$') + +# test for '#undef _TIME_BITS' (if it ever happens) +re_undef_time_bits = re.compile(r'^\s*#\s*undef\s+_TIME_BITS\s*$') + +# test for '#define _USE_TIME_BITS64' +re_define_use_time_bits64 = re.compile(r'^\s*#\s*define\s+_USE_TIME_BITS64\s*$') + +# test for '#undef _USE_TIME_BITS64' (if it ever happens) +re_undef_use_time_bits64 = re.compile(r'^\s*#\s*undef\s+_USE_TIME_BITS64\s*$') + +# test for '#define _FILE_OFFSET_BITS 64' +re_define_file_offset_bits_64 = re.compile(rf'^\s*#\s*define\s+_FILE_OFFSET_BITS\s+{Y2038_SAFE_FILE_OFFSET_BITS}\s*$') + +# test for '#define _FILE_OFFSET_BITS ...' (combine w/ above to test for 'not 64') +re_define_file_offset_bits = re.compile(r'^\s*#\s*define\s+_FILE_OFFSET_BITS\s+.*$') + +# test for '#undef _FILE_OFFSET_BITS' (if it ever happens) +re_undef_file_offset_bits = re.compile(r'^\s*#\s*undef\s+_FILE_OFFSET_BITS\s*$') + +# -------------------------------------------- +# Compiler flag parsing regular expressions +# -------------------------------------------- + +# test for '_TIME_BITS=64' in compiler flags +re_flag_time_bits_64 = re.compile(rf'_TIME_BITS={Y2038_SAFE_TIME_BITS}(?:\s|$|;)') + +# test for '_TIME_BITS=...' in compiler flags (combine w/ above to test for 'not 64') +re_flag_time_bits = re.compile(r'_TIME_BITS=(\d+)') + +# test for '_USE_TIME_BITS64' in compiler flags +re_flag_use_time_bits64 = re.compile(r'_USE_TIME_BITS64(?:\s|$|=|;)') + +# test for '_FILE_OFFSET_BITS=64' in compiler flags +re_flag_file_offset_bits_64 = re.compile(rf'_FILE_OFFSET_BITS={Y2038_SAFE_FILE_OFFSET_BITS}(?:\s|$|;)') + +# test for '_FILE_OFFSET_BITS=...' in compiler flags +re_flag_file_offset_bits = re.compile(r'_FILE_OFFSET_BITS=(\d+)') + +# -------------------------------- +# List of Y2038-unsafe identifiers +# -------------------------------- + +# This is WIP. Eventually it should contain all identifiers (types +# and functions) which would be affected by the Y2038 bug. + +id_Y2038 = { + # Y2038-unsafe types by definition + 'time_t' + # Types using Y2038-unsafe types + 'lastlog', + 'msqid_ds', + 'semid_ds', + 'timeb', + 'timespec', + 'timeval', + 'utimbuf', + 'itimerspec', + 'clnt_ops', + 'elf_prstatus', + 'itimerval', + 'ntptimeval', + 'rusage', + 'timex', + 'utmp', + 'utmpx', + # APIs using 2038-unsafe types + 'ctime', + 'ctime_r', + 'difftime', + 'gmtime', + 'gmtime_r', + 'localtime', + 'localtime_r', + 'mktime', + 'stime', + 'timegm', + 'timelocal', + 'time', + 'msgctl', + 'ftime', + 'aio_suspend', + 'clock_getres', + 'clock_gettime', + 'clock_nanosleep', + 'clock_settime', + 'futimens', + 'mq_timedreceive', + 'mq_timedsend', + 'nanosleep', + 'pselect', + 'pthread_cond_timedwait', + 'pthread_mutex_timedlock', + 'pthread_rwlock_timedrdlock', + 'pthread_rwlock_timedwrlock', + 'sched_rr_get_interval', + 'sem_timedwait', + 'sigtimedwait', + 'timespec_get', + 'utimensat', + 'adjtime', + 'pmap_rmtcall', + 'clntudp_bufcreate', + 'clntudp_create', + 'futimes', + 'gettimeofday', + 'lutimes', + 'select', + 'settimeofday', + 'utimes', + 'utime', + 'timerfd_gettime', + 'timerfd_settime', + 'timer_gettime', + 'timer_settime', + 'fstatat', + 'fstat', + '__fxstatat', + '__fxstat', + 'lstat', + '__lxstat', + 'stat', + '__xstat', + 'struct itimerval', + 'setitimer', + 'getitimer', + 'ntp_gettime', + 'getrusage', + 'wait3', + 'wait4', + 'adjtimex', + 'ntp_adjtime', + 'getutent_r', + 'getutent', + 'getutid_r', + 'getutid', + 'getutline_r', + 'getutline', + 'login', + 'pututline', + 'updwtmp', + 'getutxent', + 'getutxid', + 'getutxline', + 'pututxline' +} + + + + + + + + + +def parse_dump_config(config_name): + """ + Parse Y2038-related flags from cppcheck dump file configuration name. + + This function analyzes the cppcheck dump file configuration name (which contains + preprocessor definitions extracted by cppcheck from project files like compile_commands.json) + to extract Y2038-related definitions. It looks for _TIME_BITS, _USE_TIME_BITS64, and + _FILE_OFFSET_BITS definitions and validates their values. + + Args: + config_name (str): The cppcheck configuration name from dump file + (e.g., "_TIME_BITS=64;_FILE_OFFSET_BITS=64") + + Returns: + dict: Dictionary containing Y2038-related flag information with keys: + - 'time_bits_defined' (bool): Whether _TIME_BITS is defined + - 'time_bits_value' (int|None): Value of _TIME_BITS (None if not defined) + - 'use_time_bits64_defined' (bool): Whether _USE_TIME_BITS64 is defined + - 'file_offset_bits_defined' (bool): Whether _FILE_OFFSET_BITS is defined + - 'file_offset_bits_value' (int|None): Value of _FILE_OFFSET_BITS (None if not defined) + + Example: + >>> parse_dump_config("_TIME_BITS=64;_FILE_OFFSET_BITS=64") + { + 'time_bits_defined': True, + 'time_bits_value': 64, + 'use_time_bits64_defined': False, + 'file_offset_bits_defined': True, + 'file_offset_bits_value': 64 + } + """ + result = { + 'time_bits_defined': False, + 'time_bits_value': None, + 'use_time_bits64_defined': False, + 'file_offset_bits_defined': False, + 'file_offset_bits_value': None + } + + if not config_name: + return result + + try: + # Check for _TIME_BITS=64 (correct value) + if re_flag_time_bits_64.search(config_name): + result['time_bits_defined'] = True + result['time_bits_value'] = Y2038_SAFE_TIME_BITS + else: + # Check for _TIME_BITS=other_value + match = re_flag_time_bits.search(config_name) + if match: + result['time_bits_defined'] = True + try: + result['time_bits_value'] = int(match.group(1)) + except (ValueError, IndexError): + # Malformed _TIME_BITS value, treat as undefined + result['time_bits_defined'] = False + result['time_bits_value'] = None + + # Check for _USE_TIME_BITS64 + if re_flag_use_time_bits64.search(config_name): + result['use_time_bits64_defined'] = True + + # Check for _FILE_OFFSET_BITS=64 (correct value) + if re_flag_file_offset_bits_64.search(config_name): + result['file_offset_bits_defined'] = True + result['file_offset_bits_value'] = Y2038_SAFE_FILE_OFFSET_BITS + else: + # Check for _FILE_OFFSET_BITS=other_value + match = re_flag_file_offset_bits.search(config_name) + if match: + result['file_offset_bits_defined'] = True + try: + result['file_offset_bits_value'] = int(match.group(1)) + except (ValueError, IndexError): + # Malformed _FILE_OFFSET_BITS value, treat as undefined + result['file_offset_bits_defined'] = False + result['file_offset_bits_value'] = None + + except (AttributeError, TypeError, ValueError): + # If any unexpected error occurs during parsing, return empty result + # This ensures the addon continues to work even with malformed configurations + # Note: We catch specific exceptions rather than broad Exception for better debugging + pass + + return result + + +def check_y2038_safe(dumpfile, quiet=False): + """ + Main function to check Y2038 safety of C/C++ code from cppcheck dump files. + + This function performs comprehensive Y2038 analysis including: + 1. Extraction of Y2038-related compiler flags from cppcheck dump file configuration + 2. Analysis of source code preprocessor directives + 3. Warning suppression when proper Y2038 configuration is detected + 4. Reporting of Y2038-unsafe symbols and configurations + + The function implements a priority-based approach for Y2038 flag detection: + - Dump file configuration (from cppcheck's project parsing - highest priority) + - Source code #define directives (fallback) + + Warning suppression occurs when both _TIME_BITS=64 AND _FILE_OFFSET_BITS=64 + are detected from any source. When warnings are suppressed, an informational + message is displayed indicating the configuration source and suppression count. + + Args: + dumpfile (str): Path to the cppcheck XML dump file (.dump extension) + quiet (bool, optional): If True, suppress informational messages. Defaults to False. + + Returns: + bool: True if code is Y2038-safe, False if Y2038 issues were detected + + Raises: + Exception: May raise exceptions from cppcheckdata parsing or file I/O operations + + Example: + >>> check_y2038_safe("test.c.dump") # Normal operation + True + >>> check_y2038_safe("test.c.dump", quiet=True) # Suppress info messages + False + """ + # Assume that the code is Y2038 safe until proven otherwise + y2038safe = True + # load XML from .dump file + data = cppcheckdata.CppcheckData(dumpfile) + + srcfile = data.files[0] + + for cfg in data.iterconfigurations(): + if not quiet: + print('Checking %s, config %s...' % (srcfile, cfg.name)) + safe_ranges = [] + safe = -1 + time_bits_defined = False + srclinenr = 0 + + # Priority-based flag detection: dump file configuration > source code directives + # 1. Check dump file configuration (from cppcheck's project parsing - highest priority) + dump_config_flags = parse_dump_config(cfg.name) + # Initialize effective flags with dump file configuration + effective_flags = { + 'time_bits_defined': dump_config_flags['time_bits_defined'], + 'time_bits_value': dump_config_flags['time_bits_value'], + 'use_time_bits64_defined': dump_config_flags['use_time_bits64_defined'], + 'file_offset_bits_defined': dump_config_flags['file_offset_bits_defined'], + 'file_offset_bits_value': dump_config_flags['file_offset_bits_value'] + } + + # Determine configuration source for reporting + config_source = None + has_dump_config = (dump_config_flags['time_bits_defined'] or + dump_config_flags['file_offset_bits_defined'] or + dump_config_flags['use_time_bits64_defined']) + if has_dump_config: + config_source = "cppcheck configuration" + + # Track time_bits_defined for _USE_TIME_BITS64 validation + time_bits_defined = effective_flags['time_bits_defined'] + + # Check effective _TIME_BITS value (from dump file configuration) + if effective_flags['time_bits_defined']: + if effective_flags['time_bits_value'] != Y2038_SAFE_TIME_BITS: + fake_directive = type('FakeDirective', (), { + 'file': srcfile, 'linenr': 0, 'column': 0, + 'str': 'cppcheck configuration: _TIME_BITS=%s' % effective_flags['time_bits_value'] + })() + cppcheckdata.reportError(fake_directive, 'error', + '_TIME_BITS must be defined equal to 64 (found in cppcheck configuration: _TIME_BITS=%s)' % effective_flags['time_bits_value'], + 'y2038', + 'type-bits-not-64') + y2038safe = False + + # Check effective _FILE_OFFSET_BITS value (from dump file configuration) + if effective_flags['file_offset_bits_defined']: + if effective_flags['file_offset_bits_value'] != Y2038_SAFE_FILE_OFFSET_BITS: + fake_directive = type('FakeDirective', (), { + 'file': srcfile, 'linenr': 0, 'column': 0, + 'str': 'cppcheck configuration: _FILE_OFFSET_BITS=%s' % effective_flags['file_offset_bits_value'] + })() + cppcheckdata.reportError(fake_directive, 'error', + '_FILE_OFFSET_BITS must be defined equal to 64 (found in cppcheck configuration: _FILE_OFFSET_BITS=%s)' % effective_flags['file_offset_bits_value'], + 'y2038', + 'file-offset-bits-not-64') + y2038safe = False + + # Check effective _USE_TIME_BITS64 (from dump file configuration) + if effective_flags['use_time_bits64_defined']: + if not time_bits_defined: + # _USE_TIME_BITS64 defined without _TIME_BITS is problematic + fake_directive = type('FakeDirective', (), { + 'file': srcfile, 'linenr': 0, 'column': 0, + 'str': 'cppcheck configuration: _USE_TIME_BITS64' + })() + cppcheckdata.reportError(fake_directive, 'warning', + '_USE_TIME_BITS64 is defined in cppcheck configuration but _TIME_BITS was not', + 'y2038', + 'type-bits-undef') + y2038safe = False + else: + # _USE_TIME_BITS64 defined WITH _TIME_BITS - this is correct + safe = 0 # Start of file is safe + + # 2. Fallback to source code directives when dump file configuration is not available + source_time_bits_defined = False # pylint: disable=unused-variable + source_file_offset_bits_defined = False # pylint: disable=unused-variable + source_file_offset_bits_value = None # pylint: disable=unused-variable + source_use_time_bits64_defined = False # pylint: disable=unused-variable + + # Track which flags came from source code for mixed scenario reporting + source_flags_used = { + 'time_bits': False, + 'file_offset_bits': False, + 'use_time_bits64': False + } + for directive in cfg.directives: + # track source line number + if directive.file == srcfile: + srclinenr = directive.linenr + + # Process source code directives as fallback when dump config is not available + # check for correct _TIME_BITS if present + if re_define_time_bits_64.match(directive.str): + source_time_bits_defined = True + # Only use source directive if dump config doesn't define _TIME_BITS + if not effective_flags['time_bits_defined']: + effective_flags['time_bits_defined'] = True + effective_flags['time_bits_value'] = Y2038_SAFE_TIME_BITS + time_bits_defined = True + source_flags_used['time_bits'] = True + elif re_define_time_bits.match(directive.str): + source_time_bits_defined = False + # Only use source directive if dump config doesn't define _TIME_BITS + if not effective_flags['time_bits_defined']: + source_flags_used['time_bits'] = True + cppcheckdata.reportError(directive, 'error', + '_TIME_BITS must be defined equal to 64', + 'y2038', + 'type-bits-not-64') + y2038safe = False + elif re_undef_time_bits.match(directive.str): + source_time_bits_defined = False + # Only use source directive if dump config doesn't define _TIME_BITS + if not effective_flags['time_bits_defined']: + time_bits_defined = False + source_flags_used['time_bits'] = True + # check for correct _FILE_OFFSET_BITS if present + if re_define_file_offset_bits_64.match(directive.str): + source_file_offset_bits_defined = True + source_file_offset_bits_value = Y2038_SAFE_FILE_OFFSET_BITS + # Only use source directive if dump config doesn't define _FILE_OFFSET_BITS + if not effective_flags['file_offset_bits_defined']: + effective_flags['file_offset_bits_defined'] = True + effective_flags['file_offset_bits_value'] = Y2038_SAFE_FILE_OFFSET_BITS + source_flags_used['file_offset_bits'] = True + elif re_define_file_offset_bits.match(directive.str): + source_file_offset_bits_defined = False + # Only use source directive if dump config doesn't define _FILE_OFFSET_BITS + if not effective_flags['file_offset_bits_defined']: + source_flags_used['file_offset_bits'] = True + cppcheckdata.reportError(directive, 'error', + '_FILE_OFFSET_BITS must be defined equal to 64', + 'y2038', + 'file-offset-bits-not-64') + y2038safe = False + elif re_undef_file_offset_bits.match(directive.str): + source_file_offset_bits_defined = False + source_file_offset_bits_value = None + # Only use source directive if dump config doesn't define _FILE_OFFSET_BITS + if not effective_flags['file_offset_bits_defined']: + effective_flags['file_offset_bits_defined'] = False + effective_flags['file_offset_bits_value'] = None + source_flags_used['file_offset_bits'] = True + + # check for _USE_TIME_BITS64 (un)definition + if re_define_use_time_bits64.match(directive.str): + safe = int(srclinenr) + source_use_time_bits64_defined = True + # Only use source directive if dump config doesn't define _USE_TIME_BITS64 + if not effective_flags['use_time_bits64_defined']: + effective_flags['use_time_bits64_defined'] = True + source_flags_used['use_time_bits64'] = True + # warn about _TIME_BITS not being defined (check effective flags) + if not time_bits_defined: + cppcheckdata.reportError(directive, 'warning', + '_USE_TIME_BITS64 is defined but _TIME_BITS was not', + 'y2038', + 'type-bits-undef') + elif re_undef_use_time_bits64.match(directive.str): + unsafe = int(srclinenr) + source_use_time_bits64_defined = False + # Only use source directive if dump config doesn't define _USE_TIME_BITS64 + if not effective_flags['use_time_bits64_defined']: + source_flags_used['use_time_bits64'] = True + # do we have a safe..unsafe area? + if unsafe > safe >= 0: + safe_ranges.append((safe, unsafe)) + safe = -1 + + # check end of source beyond last directive + if len(cfg.tokenlist) > 0: + unsafe = int(cfg.tokenlist[-1].linenr) + if unsafe > safe >= 0: + safe_ranges.append((safe, unsafe)) + + # Determine if Y2038 warnings should be suppressed + # Require BOTH _TIME_BITS=64 AND _FILE_OFFSET_BITS=64 for complete Y2038 safety + y2038_safe_config = ( + effective_flags['time_bits_defined'] and + effective_flags['time_bits_value'] == Y2038_SAFE_TIME_BITS and + effective_flags['file_offset_bits_defined'] and + effective_flags['file_offset_bits_value'] == Y2038_SAFE_FILE_OFFSET_BITS + ) + + # Update config_source for suppression reporting based on mixed scenarios + if y2038_safe_config: + # Determine configuration source for mixed scenarios + dump_flags_count = sum([ + dump_config_flags['time_bits_defined'], + dump_config_flags['file_offset_bits_defined'], + dump_config_flags['use_time_bits64_defined'] + ]) + source_flags_count = sum(source_flags_used.values()) + + if dump_flags_count > 0 and source_flags_count > 0: + # Mixed scenario: both dump config and source directives used + config_source = "mixed configuration (cppcheck configuration and source code directives)" + elif dump_flags_count > 0: + # Only dump config used + config_source = "cppcheck configuration" + elif source_flags_count > 0: + # Only source directives used + config_source = "source code directives" + else: + # Fallback (shouldn't happen if y2038_safe_config is True) + config_source = "configuration" + + # go through all tokens + warnings_suppressed = 0 + for token in cfg.tokenlist: + if token.str in id_Y2038: + is_in_safe_range = any(lower <= int(token.linenr) <= upper + for (lower, upper) in safe_ranges) + + if not is_in_safe_range: + if y2038_safe_config: + # Count suppressed warnings but don't report them + warnings_suppressed += 1 + else: + # Report the warning as before + cppcheckdata.reportError(token, 'warning', + token.str + ' is Y2038-unsafe', + 'y2038', + 'unsafe-call') + y2038safe = False + token = token.next + + # Print suppression message if warnings were suppressed + if warnings_suppressed > 0 and config_source and not quiet: + print('Y2038 warnings suppressed: Found proper Y2038 configuration in %s (_TIME_BITS=%d and _FILE_OFFSET_BITS=%d)' % (config_source, Y2038_SAFE_TIME_BITS, Y2038_SAFE_FILE_OFFSET_BITS)) + print('Suppressed %d Y2038-unsafe function warning(s)' % warnings_suppressed) + + return y2038safe + + +def get_args_parser(): + parser = cppcheckdata.ArgumentParser() + return parser + + +if __name__ == '__main__': + parser = get_args_parser() + args = parser.parse_args() + + exit_code = 0 + quiet = args.quiet or args.cli + + if not args.dumpfile: + if not args.quiet: + print("no input files.") + sys.exit(0) + + for dumpfile in args.dumpfile: + if not quiet: + print('Checking ' + dumpfile + '...') + + check_y2038_safe(dumpfile, quiet) + + sys.exit(cppcheckdata.EXIT_CODE) diff --git a/micromamba_root/share/Cppcheck/cfg/avr.cfg b/micromamba_root/share/Cppcheck/cfg/avr.cfg new file mode 100644 index 0000000000000000000000000000000000000000..bb21afac352bfbd4ab2d420decd0c98fdf7a51ee --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/avr.cfg @@ -0,0 +1,402 @@ + + + + + + + + + + + + + + + + + + + + + + + false + + + 0:255 + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + 0: + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/bento4.cfg b/micromamba_root/share/Cppcheck/cfg/bento4.cfg new file mode 100644 index 0000000000000000000000000000000000000000..50f3cac00c92bae16b50045fc1af9d1752181edf --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/bento4.cfg @@ -0,0 +1,142 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/boost.cfg b/micromamba_root/share/Cppcheck/cfg/boost.cfg new file mode 100644 index 0000000000000000000000000000000000000000..d181860f0bc90c0b14f617cef9a9e7d31b832139 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/boost.cfg @@ -0,0 +1,1284 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + arg1==0?0:(arg1<0?-1:1) + + + + + + + + false + + + + arg1<0?1:0 + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + 5.000000000000000000000000000000000000e-01 + + + false + + + + 3.333333333333333333333333333333333333e-01 + + + false + + + + 6.666666666666666666666666666666666666e-01 + + + false + + + + 6.666666666666666666666666666666666666e-01 + + + false + + + + 1.66666666666666666666666666666666666666666e-01 + + + false + + + + 7.500000000000000000000000000000000000e-01 + + + false + + + + 1.414213562373095048801688724209698078e+00 + + + false + + + + 1.732050807568877293527446341505872366e+00 + + + false + + + + 7.071067811865475244008443621048490392e-01 + + + false + + + + 6.931471805599453094172321214581765680e-01 + + + false + + + + -3.665129205816643270124391582326694694e-01 + + + false + + + + 1.177410022515474691011569326459699637e+00 + + + false + + + + 7.071067811865475244008443621048490392e-01 + + + false + + + + 3.141592653589793238462643383279502884e+00 + + + false + + + + 1.570796326794896619231321691639751442e+00 + + + false + + + + 1.047197551196597746154214461093167628e+00 + + + false + + + + 5.235987755982988730771072305465838140e-01 + + + false + + + + 6.283185307179586476925286766559005768e+00 + + + false + + + + 2.094395102393195492308428922186335256e+00 + + + false + + + + 2.356194490192344928846982537459627163e+00 + + + false + + + + 4.188790204786390984616857844372670512e+00 + + + false + + + + 1.591549430918953357688837633725143620e-01 + + + false + + + + 3.989422804014326779399460599343818684e-01 + + + false + + + + 1.772453850905516027298167483341145182e+00 + + + false + + + + 1.253314137315500251207882642405522626e+00 + + + false + + + + 2.506628274631000502415765284811045253e+00 + + + false + + + + 9.189385332046727417803297364056176398e-01 + + + false + + + + 5.641895835477562869480794515607725858e-01 + + + false + + + + 5.641895835477562869480794515607725858e-01 + + + false + + + + 1.415926535897932384626433832795028841e-01 + + + false + + + + 8.584073464102067615373566167204971158e-01 + + + false + + + + 7.953167673715975443483953350568065807e-01 + + + false + + + + 2.245915771836104547342715220454373502e+01 + + + false + + + + 9.869604401089358618834490999876151135e+00 + + + false + + + + 1.644934066848226436472415166646025189e+00 + + + false + + + + 3.100627668029982017547631506710139520e+01 + + + false + + + + 1.464591887561523263020142527263790391e+00 + + + false + + + + 6.827840632552956814670208331581645981e-01 + + + false + + + + 2.718281828459045235360287471352662497e+00 + + + false + + + + 6.065306597126334236037995349911804534e-01 + + + false + + + + 2.314069263277926900572908636794854738e+01 + + + false + + + + 1.648721270700128146848650787814163571e+00 + + + false + + + + 4.342944819032518276511289189166050822e-01 + + + false + + + + 2.302585092994045684017991454684364207e+00 + + + false + + + + 2.302585092994045684017991454684364207e+00 + + + false + + + + 1.745329251994329576923690768488612713e-02 + + + false + + + + 5.729577951308232087679815481410517033e+01 + + + false + + + + 8.414709848078965066525023216302989996e-01 + + + false + + + + 5.403023058681397174009366074429766037e-01 + + + false + + + + 1.175201193643801456882381850595600815e+00 + + + false + + + + 1.543080634815243778477905620757061682e+00 + + + false + + + + 1.618033988749894848204586834365638117e+00 + + + false + + + + 4.812118250596034474977589134243684231e-01 + + + false + + + + 2.078086921235027537601322606117795767e+00 + + + false + + + + 5.772156649015328606065120900824024310e-01 + + + false + + + + 1.732454714600633473583025315860829681e+00 + + + false + + + + 3.331779238077186743183761363552442266e-01 + + + false + + + + 1.644934066848226436472415166646025189e+00 + + + false + + + + 1.202056903159594285399738161511449990e+00 + + + false + + + + 9.159655941772190150546035149323841107e-01 + + + false + + + + 1.282427129100622636875342568869791727e+00 + + + false + + + + 2.685452001065306445309714835481795693e+00 + + + false + + + + 1.139547099404648657492793019389846112e+00 + + + false + + + + 6.311106578189371381918993515442277798e-01 + + + false + + + + 3.245089300687638062848660410619754415e+00 + + + false + + + + 2.450893006876380628486604106197544154e-01 + + + false + + + + 6.366197723675813430755350534900574481e-01 + + + false + + + + 7.978845608028653558798921198687637369e-01 + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + true + + + + + + + boost::lock_guard + boost::mutex::scoped_lock + boost::recursive_mutex::scoped_lock + boost::unique_lock + boost::shared_lock + + + boost::mutex + boost::recursive_mutex + + + diff --git a/micromamba_root/share/Cppcheck/cfg/bsd.cfg b/micromamba_root/share/Cppcheck/cfg/bsd.cfg new file mode 100644 index 0000000000000000000000000000000000000000..158d7a8a8852896997ec6d3a0bd4d0b4a7c0d82a --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/bsd.cfg @@ -0,0 +1,567 @@ + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + 0: + + + + + + + + + false + + + + + + false + + + + + + + + + 1: + + + + + false + + + + + 2: + + + + + false + + + + false + + + + + + + 0: + + + + + + + + + false + + + + + + + 1: + + + + + + + + + + -1: + + + + + + + + true + + + + + + + + + + + + true + + + + + + + + + + + + + + + true + + + + + + + + + + + true + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + 0: + + + + reallocarray + free + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/cairo.cfg b/micromamba_root/share/Cppcheck/cfg/cairo.cfg new file mode 100644 index 0000000000000000000000000000000000000000..d766abffc2e074f2cdd6d84f465258d675a2f76b --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/cairo.cfg @@ -0,0 +1,90 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/cppcheck-lib.cfg b/micromamba_root/share/Cppcheck/cfg/cppcheck-lib.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6a76155a9f825a4d33b9746470e2666c83383c5e --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/cppcheck-lib.cfg @@ -0,0 +1,72 @@ + + + + false + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + -50:50 + + + + + + false + + + + + + -50:50 + + + + + + false + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/cppunit.cfg b/micromamba_root/share/Cppcheck/cfg/cppunit.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1caf400db19451dd3393deb2cb1011dc99cd2e0e --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/cppunit.cfg @@ -0,0 +1,48 @@ + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + false + + + + + + + + + false + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/dpdk.cfg b/micromamba_root/share/Cppcheck/cfg/dpdk.cfg new file mode 100644 index 0000000000000000000000000000000000000000..32ef8bcad4b9507994ffbc4373808e33154be143 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/dpdk.cfg @@ -0,0 +1,11 @@ + + + + true + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/embedded_sql.cfg b/micromamba_root/share/Cppcheck/cfg/embedded_sql.cfg new file mode 100644 index 0000000000000000000000000000000000000000..81281facf0dfe780308ed85df5d58879c99360e0 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/embedded_sql.cfg @@ -0,0 +1,4 @@ + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/emscripten.cfg b/micromamba_root/share/Cppcheck/cfg/emscripten.cfg new file mode 100644 index 0000000000000000000000000000000000000000..7a5c5903cf5737b8cbd31a68b088b3538f48cefb --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/emscripten.cfg @@ -0,0 +1,108 @@ + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + emscripten_asm_const_ptr + emscripten_asm_const_ptr_sync_on_main_thread + free + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/ginac.cfg b/micromamba_root/share/Cppcheck/cfg/ginac.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c40d5c92510687c852c63293a245b55902bf536b --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/ginac.cfg @@ -0,0 +1,12848 @@ + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + false + + + + + + + false + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/gnu.cfg b/micromamba_root/share/Cppcheck/cfg/gnu.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1c8d1597a7fcfdbb3b6840f172eebbfc6172bdcb --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/gnu.cfg @@ -0,0 +1,1738 @@ + + + + free + get_current_dir_name + + + asprintf + free + + + xmalloc + xcalloc + xstrdup + xrealloc + free + xfree + + + + backtrace_symbols + free + + + pvalloc + free + + + false + + ((arg1 & 0xff00u) >> 8) | ((arg1 & 0x00ffu) << 8) + + + + + + + + + + + + false + + ((arg1 & 0xff000000ul) >> 24) | ((arg1 & 0x00ff0000ul) >> 8) | ((arg1 & 0x0000ff00ul) << 8) | ((arg1 & 0x000000fful) << 24) + + + + + + + + + + + + false + + ((arg1 & 0xff00000000000000ull) >> 56) | ((arg1 & 0x00ff000000000000ull) >> 40) | ((arg1 & 0x0000ff0000000000ull) >> 24) | ((arg1 & 0x000000ff00000000ull) >> 8) | ((arg1 & 0x00000000ff000000ull) << 8) | ((arg1 & 0x0000000000ff0000ull) << 24) | ((arg1 & 0x000000000000ff00ull) << 40) | ((arg1 & 0x00000000000000ffull) << 56) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + 0: + + + + + + false + + + + + + + 0: + + + + + + + + + + 0: + + + + + + + + + + + false + arg1 + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + true + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + true + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + 0: + + + + + + 0: + + + + + + 1: + + + + + + + + + false + + + + + 0: + + + + + 0: + + + + + 1: + + + + + + + + + false + + + + + + + + + + + + + + + + + 1: + + + + 0: + + + + + + + + + + + + + 0: + + + + + + + + + false + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + arg1>=0 && arg1<=0x7F + false + + + + 0:255 + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + 0: + + + + + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + 0: + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + 0:4294967295 + + + + + 0:4294967295 + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + 0: + + + + 0: + + + + + + + + + + + + arg1==0 &0 + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + 1: + + + + + false + + + + + + + + + + + false + + + + 0: + + + + + + + + + 0: + + + + + + + + + + false + + + + 0: + + + + + + + + + 1: + + + + + + + + + + false + + + + 0: + + + + + + + + + 1: + + + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + false + + + + + false + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + 1: + + + + + + + + + + -1: + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + true + + + + + + + + + mkostemp + mkstemps + mkostemps + close + + + close + epoll_create + + + close + epoll_create1 + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/googletest.cfg b/micromamba_root/share/Cppcheck/cfg/googletest.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c32eef7274b09bdc04babfd14e83e24501a871d6 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/googletest.cfg @@ -0,0 +1,62 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/gtk.cfg b/micromamba_root/share/Cppcheck/cfg/gtk.cfg new file mode 100644 index 0000000000000000000000000000000000000000..4dd9700c62ca17460749e4b721d31d870f2074a6 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/gtk.cfg @@ -0,0 +1,23086 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + g_thread_new + g_thread_try_new + g_thread_ref + g_thread_unref + g_thread_join + + + g_variant_iter_copy + g_variant_iter_new + g_variant_iter_free + + + g_source_new + g_idle_source_new + g_timeout_source_new + g_timeout_source_new_seconds + g_child_watch_source_new + g_cancellable_source_new + g_io_create_watch + g_source_ref + g_source_unref + + + g_date_time_new + g_date_time_new_now + g_date_time_new_now_local + g_date_time_new_now_utc + g_date_time_new_from_unix_local + g_date_time_new_from_unix_utc + g_date_time_new_from_timeval_local + g_date_time_new_from_timeval_utc + g_date_time_new_local + g_date_time_new_utc + g_date_time_add + g_date_time_add_years + g_date_time_add_months + g_date_time_add_weeks + g_date_time_add_days + g_date_time_add_hours + g_date_time_add_minutes + g_date_time_add_seconds + g_date_time_add_full + g_date_time_to_timezone + g_date_time_to_local + g_date_time_to_utc + g_date_time_ref + g_date_time_unref + + + g_dir_open + g_dir_rewind + g_dir_close + + + g_timer_new + g_timer_destroy + + + g_file_attribute_info_list_new + g_file_attribute_info_list_dup + g_file_attribute_info_list_ref + g_file_attribute_info_list_unref + + + g_slist_alloc + g_slist_copy + g_slist_copy_deep + g_slist_free + g_slist_free_1 + g_slist_free_full + + + g_variant_new + g_variant_new_va + g_variant_new_boolean + g_variant_new_byte + g_variant_new_int16 + g_variant_new_uint16 + g_variant_new_int32 + g_variant_new_uint32 + g_variant_new_int64 + g_variant_new_uint64 + g_variant_new_handle + g_variant_new_double + g_variant_new_string + g_variant_new_take_string + g_variant_new_printf + g_variant_new_signature + g_variant_new_object_path + g_variant_new_variant + g_variant_new_objv + g_variant_new_strv + g_variant_new_bytestring + g_variant_new_bytestring_array + g_variant_new_maybe + g_variant_new_array + g_variant_new_tuple + g_variant_new_dict_entry + g_variant_new_fixed_array + g_variant_new_from_data + g_variant_new_from_bytes + g_variant_builder_end + g_variant_new_parsed_va + g_variant_new_parsed + g_variant_byteswap + g_variant_get_child_value + g_variant_get_normal_form + g_variant_parse + g_variant_ref + g_variant_take_ref + g_variant_builder_add + g_variant_builder_add_value + g_variant_builder_add_parsed + g_variant_ref_sink + g_variant_unref + + + g_variant_iter_new + g_variant_iter_free + + + g_variant_type_new + g_variant_type_copy + g_variant_type_new_array + g_variant_type_new_dict_entry + g_variant_type_new_maybe + g_variant_type_new_tuple + g_variant_type_free + + + g_allocator_new + g_allocator_free + + + g_bookmark_file_new + g_bookmark_file_free + + + g_srv_target_new + g_srv_target_free + + + g_string_chunk_new + g_string_chunk_free + + + g_test_log_buffer_new + g_test_log_buffer_free + + + g_value_array_new + g_value_array_free + + + g_cache_new + g_cache_destroy + + + g_cclosure_new + g_cclosure_new_swap + g_cclosure_new_object + g_cclosure_new_object_swap + g_closure_new_object + g_closure_new_simple + g_closure_ref + g_closure_unref + + + g_array_new + g_array_sized_new + g_array_ref + g_array_free + g_array_unref + + + g_async_queue_new + g_async_queue_new_full + g_async_queue_ref + g_async_queue_unref + + + g_byte_array_new + g_byte_array_sized_new + g_byte_array_new_take + g_byte_array_sized_new + g_bytes_unref_to_array + g_byte_array_ref + g_byte_array_free + g_byte_array_unref + + + g_checksum_new + g_checksum_copy + g_checksum_free + + + g_main_loop_new + g_main_new + g_main_loop_ref + g_main_loop_unref + g_main_destroy + + + g_main_context_new + g_main_context_ref + g_main_context_unref + g_main_destroy + + + g_thread_pool_new + g_thread_pool_free + + + g_error_copy + g_error_new_valist + g_error_new_literal + g_error_new + g_error_free + + + g_string_new + g_string_new_len + g_string_sized_new + g_variant_print_string + g_string_free + + + g_ptr_array_new + g_ptr_array_new_full + g_ptr_array_new_with_free_func + g_ptr_array_ref + g_ptr_array_free + g_ptr_array_unref + + + g_pattern_spec_new + g_pattern_spec_free + + + g_key_file_new + g_key_file_ref + g_key_file_free + g_key_file_unref + + + g_io_module_scope_new + g_io_module_scope_free + + + g_ascii_strdown + g_ascii_strup + g_base64_decode + g_base64_encode + g_bookmark_file_get_description + g_bookmark_file_get_mime_type + g_bookmark_file_get_title + g_bookmark_file_to_data + g_build_filename + g_build_filenamev + g_build_path + g_build_pathv + g_bytes_unref_to_data + g_compute_checksum_for_bytes + g_compute_checksum_for_data + g_compute_checksum_for_string + g_compute_hmac_for_data + g_compute_hmac_for_string + g_convert + g_convert_with_fallback + g_convert_with_iconv + g_credentials_to_string + g_date_time_format + g_filename_display_basename + g_filename_display_name + g_filename_from_uri + g_filename_to_uri + g_get_codeset + g_get_current_dir + g_get_locale_variants + g_key_file_get_start_group + g_key_file_to_data + g_malloc + g_realloc + g_malloc0 + g_malloc0_n + g_malloc_n + g_realloc_n + g_memdup + g_path_get_basename + g_path_get_dirname + g_slice_alloc + g_slice_alloc0 + g_slice_copy + g_strcompress + g_strconcat + g_strdup + g_strdup_printf + g_strdup_vprintf + g_strescape + g_strjoin + g_strjoinv + g_strndup + g_strnfill + g_time_val_to_iso8601 + g_try_malloc + g_try_realloc + g_try_malloc0 + g_try_malloc0_n + g_try_malloc_n + g_try_realloc_n + g_ucs4_to_utf16 + g_ucs4_to_utf8 + g_unicode_canonical_decomposition + g_utf16_to_ucs4 + g_utf16_to_utf8 + g_utf8_casefold + g_utf8_collate_key + g_utf8_collate_key_for_filename + g_utf8_normalize + g_utf8_strdown + g_utf8_strreverse + g_utf8_strup + g_utf8_substring + g_utf8_to_ucs4 + g_utf8_to_ucs4_fast + g_utf8_to_ucs4_fast + g_utf8_to_utf16 + g_key_file_get_locale_string + g_key_file_get_value + g_key_file_get_string + g_key_file_get_boolean_list + g_key_file_get_integer_list + g_key_file_get_double_list + g_key_file_get_comment + g_dbus_proxy_get_name_owner + g_file_info_get_attribute_as_string + g_file_attribute_matcher_to_string + g_app_launch_context_get_environment + g_app_launch_context_get_startup_notify_id + g_filename_completer_get_completion_suffix + g_inet_address_mask_to_string + g_variant_dup_string + g_variant_dup_bytestring + g_variant_get_objv + g_variant_get_strv + g_variant_print + g_datalist_id_dup_data + g_dir_make_tmp + g_filename_from_utf8 + g_filename_to_utf8 + g_file_read_link + g_find_program_in_path + g_format_size + g_format_size_for_display + g_format_size_full + g_hostname_to_ascii + g_hostname_to_unicode + g_locale_from_utf8 + g_locale_to_utf8 + g_markup_escape_text + g_markup_printf_escaped + g_markup_vprintf_escaped + g_match_info_expand_references + g_match_info_fetch + g_match_info_fetch_named + g_option_context_get_help + g_regex_escape_nul + g_regex_escape_string + g_regex_replace + g_regex_replace_eval + g_regex_replace_literal + g_shell_quote + g_shell_unquote + g_uri_escape_string + g_uri_parse_scheme + g_uri_unescape_segment + g_uri_unescape_string + g_variant_type_dup_string + g_value_dup_string + g_register_data + g_free + + + g_hash_table_new_full + g_hash_table_new + g_hash_table_ref + g_hash_table_destroy + g_hash_table_unref + + + g_io_channel_unix_new + g_io_channel_win32_new_fd + g_io_channel_win32_new_socket + g_io_channel_win32_new_messages + g_io_channel_new_file + g_io_channel_ref + g_io_channel_close + g_io_channel_shutdown + g_io_channel_unref + + + g_emblemed_icon_get_emblems + g_list_alloc + g_list_copy + g_list_copy_deep + g_app_info_get_all + g_app_info_get_all_for_type + g_app_info_get_fallback_for_type + g_app_info_get_recommended_for_type + g_io_modules_load_all_in_directory + g_io_modules_load_all_in_directory_with_scope + g_hash_table_get_keys + g_hash_table_get_values + g_list_free + g_list_free_1 + g_list_free_full + + + g_regex_new + g_regex_ref + g_regex_unref + + + g_node_new + g_node_copy + g_node_copy_deep + g_node_destroy + + + g_time_zone_new + g_time_zone_new_local + g_time_zone_new_utc + g_time_zone_ref + g_time_zone_unref + + + g_markup_parse_context_new + g_markup_parse_context_free + + + g_mapped_file_new + g_mapped_file_new_from_fd + g_mapped_file_ref + g_mapped_file_free + g_mapped_file_unref + + + g_mutex_new + g_mutex_free + + + g_mem_chunk_new + g_mem_chunk_free + + + g_option_group_new + g_option_group_free + + + g_option_context_new + g_option_context_free + + + g_rand_new + g_rand_copy + g_rand_new_with_seed + g_rand_new_with_seed_array + g_rand_free + + + g_queue_new + g_queue_copy + g_queue_free + g_queue_free_full + + + g_slice_new + g_slice_free + g_slice_free1 + + + g_sequence_new + g_sequence_free + + + g_completion_new + g_completion_free + + + g_chunk_new + g_chunk_free + + + g_bytes_new + g_bytes_new_take + g_bytes_new_static + g_bytes_new_with_free_func + g_bytes_new_from_bytes + g_byte_array_free_to_bytes + g_memory_output_stream_steal_as_bytes + g_variant_get_data_as_bytes + g_mapped_file_get_bytes + g_bytes_ref + g_bytes_unref + + + g_bookmark_file_get_uris + g_bookmark_file_get_groups + g_bookmark_file_get_applications + g_key_file_get_groups + g_key_file_get_keys + g_strdupv + g_strsplit + g_strsplit_set + g_uri_list_extract_uris + g_key_file_get_string_list + g_key_file_get_locale_string_list + g_file_info_list_attributes + g_file_info_get_attribute_stringv + g_app_launch_context_get_environment + g_filename_completer_get_completions + g_io_module_query + g_variant_dup_objv + g_variant_dup_bytestring_array + g_environ_setenv + g_environ_unsetenv + g_get_environ + g_listenv + g_match_info_fetch_all + g_regex_split + g_regex_split_full + g_regex_split_simple + g_regex_split_simple + g_variant_dup_strv + g_strfreev + + + g_hmac_new + g_hmac_copy + g_hmac_ref + g_hmac_unref + + + g_hook_alloc + g_hook_ref + g_hook_unref + g_hook_destroy + g_hook_free + + + g_date_new + g_date_new_dmy + g_date_new_julian + g_date_free + + + g_variant_builder_new + g_variant_builder_ref + g_variant_builder_unref + + + g_cond_new + g_cond_free + + + g_app_launch_context_new + g_app_info_create_from_commandline + g_app_info_dup + g_app_info_get_default_for_type + g_app_info_get_default_for_uri_scheme + g_application_new + g_application_get_dbus_connection + g_application_get_default + g_buffered_input_stream_new + g_buffered_output_stream_new + g_cancellable_new + g_charset_converter_new + g_converter_input_stream_new + g_converter_output_stream_new + g_credentials_new + g_data_input_stream_new + g_data_output_stream_new + g_dbus_auth_observer_new + g_dbus_connection_new_finish + g_dbus_connection_new_sync + g_dbus_connection_new_for_address_finish + g_dbus_connection_new_for_address_sync + g_dbus_message_new + g_dbus_message_new_signal + g_dbus_message_new_method_call + g_dbus_message_new_method_reply + g_dbus_message_new_method_error + g_dbus_message_new_method_error_valist + g_dbus_message_new_method_error_literal + g_dbus_object_manager_client_new_finish + g_dbus_object_manager_client_new_sync + g_dbus_object_manager_client_new_for_bus_finish + g_dbus_object_manager_client_new_for_bus_sync + g_dbus_object_manager_server_new + g_dbus_object_manager_server_get_connection + g_dbus_object_proxy_new + g_dbus_object_skeleton_new + g_dbus_proxy_new_finish + g_dbus_proxy_new_sync + g_dbus_proxy_new_for_bus_finish + g_dbus_proxy_new_for_bus_sync + g_emblemed_icon_new + g_emblem_new + g_emblem_new_with_origin + g_file_icon_new + g_file_icon_get_file + g_file_info_new + g_file_info_dup + g_file_info_get_icon + g_file_info_get_symbolic_icon + g_file_info_get_attribute_object + g_file_info_get_deletion_date + g_filename_completer_new + g_inet_address_mask_new + g_inet_address_mask_new_from_string + g_inet_address_mask_get_address + g_inet_socket_address_new + g_inet_socket_address_get_address + g_initable_new + g_initable_new_valist + g_initable_newv + g_io_module_new + g_io_module_scope_new + g_keyfile_settings_backend_new + g_memory_input_stream_new + g_memory_input_stream_new_from_data + g_memory_input_stream_new_from_bytes + g_memory_output_stream_new + g_memory_output_stream_new_resizable + g_memory_settings_backend_new + g_null_settings_backend_new + g_menu_item_new + g_menu_item_new_section + g_menu_item_new_submenu + g_menu_item_new_from_model + g_menu_new + g_mount_operation_new + g_network_address_new + g_network_service_new + g_object_new + g_param_spec_pool_new + g_pollable_source_new + g_private_new + g_proxy_address_new + g_ptr_array_sized_new + g_relation_new + g_scanner_new + g_settings_new + g_signal_type_cclosure_new + g_simple_action_group_new + g_simple_action_new + g_simple_async_result_new + g_simple_permission_new + g_socket_client_new + g_socket_listener_new + g_socket_new + g_socket_service_new + g_tcp_wrapper_connection_new + g_test_dbus_new + g_themed_icon_new + g_threaded_socket_service_new + g_tls_client_connection_new + g_tls_file_database_new + g_tls_password_new + g_tls_server_connection_new + g_unix_signal_source_new + g_zlib_compressor_new + g_zlib_decompressor_new + g_object_ref + g_object_unref + gtk_widget_destroy + + + g_tree_new + g_tree_new_full + g_tree_new_with_data + g_tree_ref + g_tree_unref + g_tree_destroy + + + g_file_attribute_matcher_new + g_file_attribute_matcher_subtract + g_file_attribute_matcher_ref + g_file_attribute_matcher_unref + + + true + + + + true + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + false + + + false + + + false + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + false + + + false + + + false + + + false + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + false + + + false + + + false + + + false + + + + false + + + + + + + + + + + + + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + false + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + false + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + arg1 + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + g_value_set_object_take_ownership has been deprecated since version 2.4 and should not be used in newly-written code. Use g_value_take_object() instead. + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + g_value_set_string_take_ownership has been deprecated since version 2.4 and should not be used in newly-written code. Use g_value_take_string() instead. + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + false + + + + + + + + 0:255 + + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + 0,2:36 + + + + + false + + + + + + + + + + + 0,2:36 + + + + + false + + + + + + + + + + + + + + false + + + + + + + 0:255 + + + + + + false + + + + + + + 0:255 + + + + + false + + + + + + + + 0:255 + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + false + + + + + + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + g_basename has been deprecated since version 2.2 and should not be used in newly-written code. Use g_path_get_basename() instead, but notice that g_path_get_basename() allocates new memory for the returned string, unlike this function which returns a pointer into the argument. + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + g_dirname is deprecated and should not be used in newly-written code. Use g_path_get_dirname() instead. + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + 0: + + + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + + + false + + + + false + + + + false + + + + false + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + false + + + + + false + + + + + + + + + + + false + + + + + + + + 1: + + + + + false + + + + false + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + + + + 0: + + + + + 0: + + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + false + + + + + false + + + g_strcasecmp has been deprecated since version 2.2 and should not be used in newly-written code. + + + + + + + + + + + + + + + + false + arg1 + + + + + + + + + + false + arg1 + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + + false + + + + + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + g_strncasecmp has been deprecated since version 2.2 and should not be used in newly-written code. + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + false + + + + + + + + + + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + 0: + + + + + 0: + + + + + + + false + + + + + 0: + + + + + + + false + + + + 0: + + + + + 0: + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + g_async_queue_timed_pop_unlocked is deprecated and should not be used in newly-written code.use g_async_queue_timeout_pop_unlocked(). + + + + + + false + + + + + + + + 0: + + + + + false + g_async_queue_unref_and_unlock has been deprecated since version 2.8 and should not be used in newly-written code. Reference counting is done atomically. so g_async_queue_unref() can be used regardless of the queues lock. + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + false + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + 0: + + + + + + + + + + + 0: + + + + + 0: + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + g_string_down has been deprecated since version 2.2 and should not be used in newly-written code. This function uses the locale-specific tolower() function, which is almost never the right thing. Use g_string_ascii_down() or g_utf8_strdown() instead. + + + + + + + + + false + + + + + + + + + + + + + false + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + 0: + + + + + + false + + g_string_sprintf is deprecated and should not be used in newly-written code. This function has been renamed to g_string_printf(). + + + + + + + + + + + + + + + + false + + g_string_sprintfa is deprecated and should not be used in newly-written code. This function has been renamed to g_string_append_printf() + + + + + + + + + + + + + + + false + + + + + false + + g_string_up has been deprecated since version 2.2 and should not be used in newly-written code. This function uses the locale-specific toupper() function, which is almost never the right thing. Use g_string_ascii_up() or g_utf8_strup() instead. + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + g_tree_traverse has been deprecated since version 2.2 and should not be used in newly-written code. The order of a balanced tree is somewhat arbitrary. If you just want to visit all nodes in sorted order, use g_tree_foreach() instead. If you really need to visit nodes in a different order, consider using an n-ary tree. + + + + + + + false + + + + + + + + + false + + g_type_class_add_private has been deprecated since version 2.58 and should not be used in newly-written code. Use the G_ADD_PRIVATE() macro with the G_DEFINE_* family of macros to add instance private data to a type. + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + true + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + gtk_hbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_HORIZONTAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + gtk_vbox_new has been deprecated since version 3.2 and should not be used in newly-written code. You can use gtk_box_new() with GTK_ORIENTATION_VERTICAL instead, which is a quick and easy change. But the recommendation is to switch to GtkGrid, since GtkBox is going to go away eventually. See Migrating from other containers to GtkGrid. + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + true + + gtk_exit is deprecated and should not be used in newly-written code. Use the standard exit() function instead. + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + gtk_signal_connect_object_while_alive is deprecated and should not be used in newly-written code. Use g_signal_connect_object() instead, passing G_CONNECT_SWAPPED as connect_flags. + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + + false + + gtk_label_get is deprecated and should not be used in newly-written code. + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + + false + + + + false + + + + + false + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/icu.cfg b/micromamba_root/share/Cppcheck/cfg/icu.cfg new file mode 100644 index 0000000000000000000000000000000000000000..5e1f9163fd08e602b0d4b178e4582333ddfd9d7f --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/icu.cfg @@ -0,0 +1,221 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/kde.cfg b/micromamba_root/share/Cppcheck/cfg/kde.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1131d5e0c5067f0bef7815a3dfa15e25dfe12ff6 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/kde.cfg @@ -0,0 +1,92 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/libcerror.cfg b/micromamba_root/share/Cppcheck/cfg/libcerror.cfg new file mode 100644 index 0000000000000000000000000000000000000000..ce621e99d447adbd72c5388813baf6968460fc1e --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/libcerror.cfg @@ -0,0 +1,203 @@ + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/libcurl.cfg b/micromamba_root/share/Cppcheck/cfg/libcurl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..381fbb237d7b7b25839739b60c0ad09084ac8458 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/libcurl.cfg @@ -0,0 +1,487 @@ + + + + + + + + + + + curl_easy_init + curl_easy_duphandle + curl_easy_cleanup + + + curl_easy_escape + curl_easy_unescape + curl_escape + curl_unescape + curl_free + + + curl_getenv + curl_maprintf + curl_mvaprintf + free + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + false + + + + + + + + + + 0: + + + + + false + + + + + + false + + + This function will be removed from the public libcurl API in a near future. It will instead be made "available" by source code access only, and then as curlx_getenv(). + + + + + + + + false + + + These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + Usage of curl_multi_socket is deprecated, whereas the function is equivalent to curl_multi_socket_action with ev_bitmask set to 0. + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + These functions will be removed from the public libcurl API in the future. Do not use them in any new programs or projects. + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + These functions will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access only, and then as curlx_strequal() and curlx_strenqual(). + + + + + + + + + + + + + + false + + + + + These functions will be removed from the public libcurl API in a near future. They will instead be made "available" by source code access only, and then as curlx_strequal() and curlx_strenqual(). + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + 0: + + + diff --git a/micromamba_root/share/Cppcheck/cfg/libsigc++.cfg b/micromamba_root/share/Cppcheck/cfg/libsigc++.cfg new file mode 100644 index 0000000000000000000000000000000000000000..f03804fa8e5570fc0ba8c9f96464373e5e686435 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/libsigc++.cfg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + false + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/lua.cfg b/micromamba_root/share/Cppcheck/cfg/lua.cfg new file mode 100644 index 0000000000000000000000000000000000000000..bf3971dffc2184ad0d32b49eb0d56bffa2c37b83 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/lua.cfg @@ -0,0 +1,316 @@ + + + + + + + + + + + + + + + + + true + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + 1: + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + true + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/mfc.cfg b/micromamba_root/share/Cppcheck/cfg/mfc.cfg new file mode 100644 index 0000000000000000000000000000000000000000..1a8100f2ef0d2479fa2941c308cad64fccba9f68 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/mfc.cfg @@ -0,0 +1,271 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/microsoft_atl.cfg b/micromamba_root/share/Cppcheck/cfg/microsoft_atl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..3cd784bbf70889e20f1f430cbe2eec2f044653f6 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/microsoft_atl.cfg @@ -0,0 +1,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/microsoft_sal.cfg b/micromamba_root/share/Cppcheck/cfg/microsoft_sal.cfg new file mode 100644 index 0000000000000000000000000000000000000000..36371a3610ba8c85b7fa03c2a61d481e58c1911a --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/microsoft_sal.cfg @@ -0,0 +1,490 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/microsoft_unittest.cfg b/micromamba_root/share/Cppcheck/cfg/microsoft_unittest.cfg new file mode 100644 index 0000000000000000000000000000000000000000..35c9c5a9a378488938744f202b7a4b0a4f6d6114 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/microsoft_unittest.cfg @@ -0,0 +1,20 @@ + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/motif.cfg b/micromamba_root/share/Cppcheck/cfg/motif.cfg new file mode 100644 index 0000000000000000000000000000000000000000..f4221a23018a3d95f74f4ade38d1f58a18072bc5 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/motif.cfg @@ -0,0 +1,318 @@ + + + + false + + + + + + false + + + + + false + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + false + + + + + + + MrmCloseHierarchy + MrmOpenHierarchy + MrmOpenHierarchyPerDisplay + + + + XmStringFree + XmStringCreateLocalized + XmStringCreateSimple + XmStringGenerate + XmCvtCTToXmString + + + XtFree + XmFontListEntryGetTag + XmTextGetString + XmCvtXmStringToCT + XmWidgetGetBaselines + + + XmFontListEntryFree + XmFontListCreate + XmFontListAppendEntry + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + XtFree + XtMalloc + XtCalloc + XtRealloc + XtNew + XtNewString + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + XOpenDisplay + XCloseDisplay + + + diff --git a/micromamba_root/share/Cppcheck/cfg/nspr.cfg b/micromamba_root/share/Cppcheck/cfg/nspr.cfg new file mode 100644 index 0000000000000000000000000000000000000000..99ad465829b88432b723ca15c56dc9e199f00527 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/nspr.cfg @@ -0,0 +1,38 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/ntl.cfg b/micromamba_root/share/Cppcheck/cfg/ntl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6c42dfb09a19e474ef17306bce085f607774a928 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/ntl.cfg @@ -0,0 +1,6907 @@ + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/opencv2.cfg b/micromamba_root/share/Cppcheck/cfg/opencv2.cfg new file mode 100644 index 0000000000000000000000000000000000000000..80b51ad7a080f0fdd7840750a406fb34d4e54ab3 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/opencv2.cfg @@ -0,0 +1,132 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + cv::fastMalloc + cv::fastFree + + + + + true + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + 0: + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/opengl.cfg b/micromamba_root/share/Cppcheck/cfg/opengl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..ec37abf551628d5d70151e81e883ec8bcd1ab8d7 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/opengl.cfg @@ -0,0 +1,581 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/openmp.cfg b/micromamba_root/share/Cppcheck/cfg/openmp.cfg new file mode 100644 index 0000000000000000000000000000000000000000..d853af2286aba5c76774afdc13330daf5a0bbc69 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/openmp.cfg @@ -0,0 +1,157 @@ + + + + + + + + + + + + + + + + + + + + + + omp_target_alloc + omp_target_free + + + omp_alloc + omp_free + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + This routine has been deprecated. See OpenMP specification. + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + This routine has been deprecated. See OpenMP specification. + + + + + + + false + + + + + + 1: + + + + + false + + + + + + + + 0: + + + + + false + + + + + + + + 0: + + + diff --git a/micromamba_root/share/Cppcheck/cfg/openssl.cfg b/micromamba_root/share/Cppcheck/cfg/openssl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..d6dd39bdf815b6f9e2819d14e53d0116369bff31 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/openssl.cfg @@ -0,0 +1,174 @@ + + + + + + + + + EVP_CIPHER_CTX_new + EVP_CIPHER_CTX_free + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + diff --git a/micromamba_root/share/Cppcheck/cfg/pcre.cfg b/micromamba_root/share/Cppcheck/cfg/pcre.cfg new file mode 100644 index 0000000000000000000000000000000000000000..2ab79ee94c5e5de809677fa40895f1e02f29255a --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/pcre.cfg @@ -0,0 +1,165 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/posix.cfg b/micromamba_root/share/Cppcheck/cfg/posix.cfg new file mode 100644 index 0000000000000000000000000000000000000000..751142bacc173efe8fd38614e30ed95efae6232b --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/posix.cfg @@ -0,0 +1,6445 @@ + + + + + + + + false + + + + + + + + + + false + + + + + + + 0: + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + 0: + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1 <=0x5A || arg1>=0x61 && arg1 <=0x7A + false + + + + 0:255 + + + + + + + + + + + arg1>='A' && arg1<='Z' || arg1>='a' && arg1 <='z' + false + + + + 0:255 + + + + + + + + + + + arg1==' ' || arg1=='\t' + false + + + + 0:255 + + + + + + + + + + + arg1==0x7F || arg1<=0x1F + false + + + + 0:255 + + + + + + + + + + + arg1>='0' && arg1<='9' + false + + + + 0:255 + + + + + + + + + + + arg1>=0x21 && arg1<=0x7E + false + + + + 0:255 + + + + + + + + + + + arg1>=0x61 && arg1<=0x7A + false + + + + 0:255 + + + + + + + + + + + arg1>=0x20 && arg1<=0x7E + false + + + + 0:255 + + + + + + + + + + + arg1>=0x21 && arg1<=0x2F || arg1>=0x3A && arg1<=0x40 || arg1>=0x5B && arg1<=0x60 || arg1>=0x7B && arg1<=0x7E + false + + + + 0:255 + + + + + + + + + + + arg1>=0x09 && arg1<=0x0D || arg1==0x20 + false + + + + 0:255 + + + + + + + + + + + arg1>=0 && arg1<=0x7F + false + + + + + 0:255 + + + + + + + arg1>=0x41 && arg1<=0x5A + false + + + + 0:255 + + + + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1<=0x46 || arg1>=0x61 && arg1<=0x66 + false + + + + 0:255 + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + dlopen + dlclose + + + + false + + + + + + 0: + + + + + + + + + 0: + + + + + false + + + + + + 0: + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + 0: + + + + + false + + + + + 0: + + + + + 0: + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + 0: + + + + + + + + false + + + + + + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + 0: + + + + + false + + + + + 0:999999 + + Obsolescent function 'usleep' called. It is recommended to use 'nanosleep' or 'setitimer' instead. +The obsolescent function 'usleep' is called. POSIX.1-2001 declares usleep() function obsolescent and POSIX.1-2008 removes it. It is recommended that new applications use the 'nanosleep' or 'setitimer' function. + + + + true + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + 0: + + + + + + + false + + Non reentrant function 'getrpcent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcent_r'. + + + + + false + + + + + + + + Non reentrant function 'getrpcbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbyname_r'. + + + + + false + + + + + + + Non reentrant function 'getrpcbynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getrpcbynumber_r'. + + + + + false + + + Non reentrant function 'getprotoent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotoent_r'. + + + + + false + + + + + + + + + Non reentrant function 'getprotobyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobyname_r'. + + + + + false + + + + + + + Non reentrant function 'getprotobynumber' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getprotobynumber_r'. + + + + + false + + + Non reentrant function 'getservent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservent_r'. + + + + + false + + + + + + + + + + + + + Non reentrant function 'getservbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyname_r'. + + + + + false + + + + + + + + + + + + Non reentrant function 'getservbyport' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getservbyport_r'. + + + + + false + + + Non reentrant function 'getnetent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetent_r'. + + + + + false + + + + + + + + + Non reentrant function 'getnetbyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetbyname_r'. + + + + + false + + + + + + + + + + + Non reentrant function 'getnetbyaddr' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetbyaddr_r'. + + + + + false + + + Non reentrant function 'gethostent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostent_r'. + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + Non reentrant function 'gethostbyname2' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gethostbyname2_r'. + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + Obsolete function 'mktemp' called. It is recommended to use 'mkstemp' or 'mkdtemp' instead. +The function 'mktemp' is considered to be dangerous due to race conditions and some implementations generating only up to 26 different filenames out of each template. This function has been removed in POSIX.1-2008. Use 'mkstemp' or 'mkdtemp' instead. + + + + false + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + 0: + + + + + + + + false + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + -20:19 + + + + + false + + + + + + false + + + + + 0: + + + + + false + + + + + + + + + + + + + 0: + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + + + false + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + + 0: + + + + + 0: + + + + + + + 1: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + + + + + false + + + + + + 0: + + + + + + + + + 0: + + + + + + + false + + + 0: + + + + + + + + + + + 0: + + + + + + + + + + + + + 0: + + + + + + + + 0: + + + + + + + + + + + + + 0: + + + + + + + + + 0: + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + 0: + + + + + + + + + 0: + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + 1: + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + 1: + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + 1: + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + 0: + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + 0: + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + false + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + Non reentrant function 'getpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwent_r'. + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + Non reentrant function 'getpwnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwnam_r'. + + + + + Non reentrant function 'strtok' called. For threadsafe applications it is recommended to use the reentrant replacement function 'strtok_r'. + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + Non reentrant function 'getpwuid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getpwuid_r'. + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + false + + + + + + + + + + + + + + + + 1: + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + false + + + + 0: + + + + + + false + + + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + 0:2 + + + + + + + false + + + + + 0: + + + + + + + + + 0:2 + + + + + + + false + + + + + 0: + + + + + + + + + 0:2 + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + Non reentrant function 'localtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'localtime_r'. + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + false + + + + + 0: + + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + Non reentrant function 'gmtime' called. For threadsafe applications it is recommended to use the reentrant replacement function 'gmtime_r'. + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + Obsolescent function 'makecontext' called. Applications are recommended to be rewritten to use POSIX threads. + + + + false + + + + + + + + Obsolescent function 'swapcontext' called. Applications are recommended to be rewritten to use POSIX threads. + + + + false + + + + + Obsolescent function 'getcontext' called. Applications are recommended to be rewritten to use POSIX threads. + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + true + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + 1: + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + Non reentrant function 'tempnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'tempnam_r'. + + + + + + false + + + + + + + + + + + + + Non reentrant function 'crypt' called. For threadsafe applications it is recommended to use the reentrant replacement function 'crypt_r'. + + + + + + false + + + 0: + + + + Non reentrant function 'ttyname' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ttyname_r'. + + + + + + false + + + 0: + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + Non reentrant function 'getspnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getspnam_r'. + + + + + + false + + Non reentrant function 'getspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getspent_r'. + + + + + + false + + + + + + + Non reentrant function 'fgetspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetspent_r'. + + + + + + false + + + + + + + + Non reentrant function 'sgetspent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'sgetspent_r'. + + + + + + false + + + + + + + Non reentrant function 'fgetpwent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetpwent_r'. + + + + + + false + + Non reentrant function 'getgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrent_r'. + + + + + + false + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + Non reentrant function 'fgetgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'fgetgrent_r'. + + + + false + + + + + + + + + + + + + Non reentrant function 'getnetgrent' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getnetgrent_r'. + + + + + + false + + + + + + + + Non reentrant function 'getgrnam' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrnam_r'. + + + + + + false + + + + + + Non reentrant function 'getgrgid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getgrgid_r'. + + + + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + + + + + false + + Non reentrant function 'getlogin' called. For threadsafe applications it is recommended to use the reentrant replacement function 'getlogin_r'. + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + 0:255 + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + Non reentrant function 'ctermid' called. For threadsafe applications it is recommended to use the reentrant replacement function 'ctermid_r'. + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + 0:2 + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + arg1==0 &0 + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + 0: + + + + + + + false + + + + + + 0: + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + true + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + false + + + + + + + + + + 1: + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + false + + + + 0: + + + + + valloc + free + + + posix_memalign + free + + + scandir + free + + + strndup + wcsdup + free + + + getline + getdelim + free + + + mmap + mmap64 + munmap + + + open + mkstemp + creat + openat + socket + close + fdopen + + + opendir + fdopendir + closedir + + + fdopen + fclose + + + popen + pclose + + + mq_open + mq_close + + + getaddrinfo + freeaddrinfo + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/protobuf.cfg b/micromamba_root/share/Cppcheck/cfg/protobuf.cfg new file mode 100644 index 0000000000000000000000000000000000000000..8ff5570c95201a145a25687c88400a6a5ba9f62f --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/protobuf.cfg @@ -0,0 +1,10 @@ + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/python.cfg b/micromamba_root/share/Cppcheck/cfg/python.cfg new file mode 100644 index 0000000000000000000000000000000000000000..30479cd87b87b5e1bf856af6a3e585f1f3684f7e --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/python.cfg @@ -0,0 +1,674 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + PyMem_Malloc + PyMem_Calloc + PyMem_Realloc + PyMem_Free + + + PyMem_RawMalloc + PyMem_RawCalloc + PyMem_RawRealloc + PyMem_RawFree + + + PyObject_Malloc + PyObject_Calloc + PyObject_Realloc + PyObject_Free + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + true + + + + + + + + true + + + + + + + + + false + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + false + NULL + + + + + + + + + + + + + + + false + NULL + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + NULL + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + 1: + + + + 0: + + + + + + false + + + + + + + + + false + + + + + 0: + + + + + + + + false + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/qt.cfg b/micromamba_root/share/Cppcheck/cfg/qt.cfg new file mode 100644 index 0000000000000000000000000000000000000000..00cb66c19092045677fee95345a41bed94c13957 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/qt.cfg @@ -0,0 +1,5502 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + READ + + READ + WRITE + NOTIFY + + + + + connect + + + + + invokeMethod + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + 0: + + + + + false + + + + + 0: + + + + + false + + + + + + 0: + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + 0: + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + true + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + :-1,1: + + + + 1:12 + + + + + 1:31 + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + 0: + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + 0: + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + QApplication + QMutexLocker + QRect + QRectF + QSize + QSizeF + QPoint + QPointF + QRegion + QTransform + + + QMutex + QRecursiveMutex + QSemaphore + QReadWriteLock + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/ruby.cfg b/micromamba_root/share/Cppcheck/cfg/ruby.cfg new file mode 100644 index 0000000000000000000000000000000000000000..fbf037fb1e9ca05718e367c4e76686c4bb8669aa --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/ruby.cfg @@ -0,0 +1,142 @@ + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + true + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/sdl.cfg b/micromamba_root/share/Cppcheck/cfg/sdl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..effc3eab68d02b45610834f882bf360cc8f5f75a --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/sdl.cfg @@ -0,0 +1,354 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + -1 + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + SDL_FreeSurface + SDL_CreateRGBSurface + SDL_CreateRGBSurfaceFrom + SDL_ConvertSurface + TTF_RenderUTF8_Blended + IMG_LoadPNG_RW + IMG_LoadJPG_RW + IMG_Load + + + SDL_DestroyMutex + SDL_CreateMutex + + + SDL_WaitThread + SDL_CreateThread + + + SDL_RWclose + SDL_RWFromFile + + + SDL_FreeRW + SDL_AllocRW + + + Mix_FreeMusic + Mix_LoadMUSType_RW + + diff --git a/micromamba_root/share/Cppcheck/cfg/selinux.cfg b/micromamba_root/share/Cppcheck/cfg/selinux.cfg new file mode 100644 index 0000000000000000000000000000000000000000..e2d7ac34dc32f1e1d27950a41abbe61dad844b13 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/selinux.cfg @@ -0,0 +1,3621 @@ + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + get_default_type + free + + + + + + + + false + + + + + + 0:5 + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + selabel_open + selabel_close + + + + + + false + + + + + + + + + + + + + + + + + + + + + selabel_lookup + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + selabel_lookup_raw + freecon + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + selabel_get_digests_all_partial_matches + free + + + selabel_get_digests_all_partial_matches + free + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + selabel_lookup_best_match + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + selabel_lookup_best_match_raw + freecon + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + context_new + context_free + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + get_ordered_context_list + freeconary + + + + + false + + + + + + + + + + + + + + + + + + + + + get_ordered_context_list_with_level + freeconary + + + + + false + + + + + + + + + + + + + + + + + get_default_context + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + get_default_context_with_level + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + get_default_context_with_role + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + get_default_context_with_rolelevel + freecon + + + + + false + + + + + + + + + + + + query_user_context + freecon + + + + + false + + + + + + + + + + + + + manual_user_enter_context + freecon + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + avc_sid_to_context + freecon + + + + + false + + + + + + + + + + + + avc_sid_to_context + freecon + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + 0,1 + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + 0,1 + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + getcon + freecon + + + + + false + + + + + + + + getcon_raw + freecon + + + + + false + + + + + + + + getprevcon + freecon + + + + + false + + + + + + + + getprevcon_raw + freecon + + + + + false + + + + + + + + getexeccon + freecon + + + + + false + + + + + + + + getexeccon_raw + freecon + + + + + false + + + + + + + + + + + + getpidcon + freecon + + + + + false + + + + + + + + + + + + getpidcon_raw + freecon + + + + + false + + + + + + + + + + + + getpidprevcon + freecon + + + + + false + + + + + + + + + + + + getpidprevcon_raw + freecon + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + getfscreatecon + freecon + + + + + false + + + + + + + + getfscreatecon_raw + freecon + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + getkeycreatecon + freecon + + + + + false + + + + + + + + getkeycreatecon_raw + freecon + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + getsockcreatecon + freecon + + + + + false + + + + + + + + getsockcreatecon_raw + freecon + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + 0: + + + + + + + getpeercon + freecon + + + + + false + + + + + + 0: + + + + + + + getpeercon_raw + freecon + + + + + + false + + + + + + + + + + + + + getfilecon + freecon + + + + + false + + + + + + + + + + + + + getfilecon_raw + freecon + + + + + false + + + + + + + + + + + + + lgetfilecon + freecon + + + + + false + + + + + + + + + + + + + lgetfilecon_raw + freecon + + + + + false + + + + + + 0: + + + + + + + fgetfilecon + freecon + + + + + false + + + + + + 0: + + + + + + + fgetfilecon_raw + freecon + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + false + + + + + + 0:4 + + + + + + false + + + + + 0:4 + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_create + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_create_raw + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + security_compute_create_name + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + security_compute_create_name_raw + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_relabel + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_relabel + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_member + freecon + + + + + false + + + + + + + + + + + + + + + + + + + + + + security_compute_member_raw + freecon + + + + + false + + + + + + + + + + + + + + + + + + security_compute_user + freeconary + + + + + false + + + + + + + + + + + + + + + + + + security_compute_user_raw + freeconary + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + security_get_initial_context + freecon + + + + + false + + + + + + + + + + + + + security_get_initial_context_raw + freecon + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + 0,1 + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + 0 + + + + + + false + + + + + + + + + + + security_get_boolean_names + free + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + 0,1 + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + security_canonicalize_context + freecon + + + + + false + + + + + + + + + + + + + security_canonicalize_context + freecon + + + + + + false + + + + + + + false + + + + + 0,1 + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + Disabling SELinux at runtime is deprecated and may not be supported on modern Linux kernels. + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + security_av_string + free + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + 0:7 + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + matchpathcon + freecon + + + + + false + + + + + + + + + + + + + + + + + matchpathcon_index + freecon + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + matchmediacon + freecon + + + + + + false + + + + + + + + + + + false + + + + + + + + + + selinux_boolean_sub + free + + + + + + false + + + + + + + + selinux_getpolicytype + free + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + selinux_raw_context_to_color + free + + + + + false + + + + + + + + + + + + + selinux_trans_to_raw_context + free + + + + + false + + + + + + + + + + + + + selinux_raw_to_trans_context + free + + + + + + false + + + + + + + + + + + + + + + + getseuserbyname + free + + + getseuserbyname + free + + + + + false + + + + + + + + + + + + + + + + + + + + getseuser + free + + + getseuser + free + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + This function is not thread safe. Be very sure that no other threads are calling into libselinux when this is called. + + diff --git a/micromamba_root/share/Cppcheck/cfg/sfml.cfg b/micromamba_root/share/Cppcheck/cfg/sfml.cfg new file mode 100644 index 0000000000000000000000000000000000000000..4b9be7bbd4ecf3b26b90a119001685c790a5d5ef --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/sfml.cfg @@ -0,0 +1,301 @@ + + + + false + + + + + false + + + + + + + false + + + + + false + + + + + false + + + + + false + + + + false + + + + + + false + + + + + + false + + + + + + + + 0: + + + + false + + + + + 0: + + + + + + + false + + + + 0: + + + + + + + false + + + + + + + false + + + + + + + false + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + false + + + + + + + + false + + + + false + + + + + + + + + + + + + + + + false + + + + false + + + + + + false + + + + + false + + + + + + false + + + + + false + + + + + + + false + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + 0: + + + + false + + + + 0:100 + + + + false + + + + false + + + + + + false + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/sqlite3.cfg b/micromamba_root/share/Cppcheck/cfg/sqlite3.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6c5811f1f758fb39d27e0cf374898b80d5dcf335 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/sqlite3.cfg @@ -0,0 +1,1571 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + sqlite3_malloc + sqlite3_malloc64 + sqlite3_free + + + + sqlite3_str_new + sqlite3_str_finish + + + + sqlite3_str_finish + sqlite3_free + + + + sqlite3_mprintf + sqlite3_vmprintf + sqlite3_free + + + + sqlite3_expanded_sql + sqlite3_free + + + + + sqlite3_open + sqlite3_open16 + sqlite3_open_v2 + sqlite3_close + sqlite3_close_v2 + + + + + + false + + + + + + + 1: + + + + + + + 0: + + + + + + + + + + false + + + + + + + 1: + + + + + + + + + + + false + + + + + + + 1: + + + + + + + + + + false + + + + + + + + 1: + + + + + + false + + + + + + + 1: + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + -1:127 + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + 1: + + + + + false + + + + + 1: + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + The sqlite3_prepare() interface is legacy and should be avoided + + + + + + + + + + + + + + + + + + + + + false + + The sqlite3_prepare16() interface is legacy and should be avoided + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/std.cfg b/micromamba_root/share/Cppcheck/cfg/std.cfg new file mode 100644 index 0000000000000000000000000000000000000000..6cd0c371a5e5ea978a3a1d8460f2d79e387a0a1b --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/std.cfg @@ -0,0 +1,9215 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + true + + + + + + true + + + + + + + arg1>0?arg1:-arg1 + false + + + + + + + + + + + arg1>0?arg1:-arg1 + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + acos(arg1) + false + + + + -1.0:1.0 + + + + + + + acos(arg1) + false + + + + -1.0:1.0 + + + + + + + acos(arg1) + false + + + + -1.0:1.0 + + + + + + + acosh(arg1) + false + + + + 1.0: + + + + + + + acosh(arg1) + false + + + + 1.0: + + + + + + + acosh(arg1) + false + + + + 1.0: + + + + + + + false + + + + + + + + + + false + + + + + + + + + 26: + + + + + + + + + + + + + + + + + + + + + sqrt(arg1) + false + + + + 0.0: + + + + + + + sqrt(arg1) + false + + + + 0.0: + + + + + + + sqrt(arg1) + false + + + + 0.0: + + + + + + + + + false + + + + + + + + + + sinh(arg1) + false + + + + + + + + + + sinh(arg1) + false + + + + + + + + + + sinh(arg1) + false + + + + + + + + + + sin(arg1) + false + + + + + + + + + + sin(arg1) + false + + + + + + + + + + sin(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + asin(arg1) + false + + + -1.0:1.0 + + + + + + + + asin(arg1) + false + + + -1.0:1.0 + + + + + + + + asin(arg1) + false + + + -1.0:1.0 + + + + + + + + + + false + + + + + + + + + + asinh(arg1) + false + + + + + + + + + + asinh(arg1) + false + + + + + + + + + + asinh(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + + tan(arg1) + false + + + + + + + + + + tan(arg1) + false + + + + + + + + + + tan(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + tanh(arg1) + false + + + + + + + + + + tanh(arg1) + false + + + + + + + + + + tanh(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + 1:31 + + + + + + false + + + + + + + + + false + + + + + 1:31 + + + + + + false + + + + + + + + + + + atan(arg1) + false + + + + + + + + + + atan(arg1) + false + + + + + + + + + + atan(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + + tgamma(arg1) + false + + + + + !0.0: + + + + + + + + tgamma(arg1) + false + + + + + !0.0: + + + + + + + + tgamma(arg1) + false + + + + + !0.0: + + + + + + + trunc(arg1) + false + + + + + + + + + + trunc(arg1) + false + + + + + + + + + + trunc(arg1) + false + + + + + + + + + + atanh(arg1) + false + + + + -1.0:1.0 + + + + + + + atanh(arg1) + false + + + + -1.0:1.0 + + + + + + + atanh(arg1) + false + + + + -1.0:1.0 + + + + + + + + + false + + + + + + + + + + atan2(arg1, arg2) + false + + + + + + + + + + + + + atan2(arg1, arg2) + false + + + + + + + + + + + + + atan2(arg1, arg2) + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + 0: + + + + 0: + + + + + + + ceil(arg1) + false + + + + + + + + + + ceil(arg1) + false + + + + + + + + + + ceil(arg1) + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + cbrt(arg1) + false + + + + + + + + + + cbrt(arg1) + false + + + + + + + + + + cbrt(arg1) + false + + + + + + + + + + cos(arg1) + false + + + + + + + + + + cos(arg1) + false + + + + + + + + + + cos(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + 26: + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + :-1,1: + + + + + + + false + + + + + + + :-1,1: + + + + + true + + + + + + + + + + + erf(arg1) + false + + + + + + + + + + erf(arg1) + false + + + + + + + + + + erf(arg1) + false + + + + + + + + + + erfc(arg1) + false + + + + + + + + + + erfc(arg1) + false + + + + + + + + + + erfc(arg1) + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + exp(arg1) + false + + + + + + + + + + exp(arg1) + false + + + + + + + + + + exp(arg1) + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + exp2(arg1) + false + + + + + + + + + + exp2(arg1) + false + + + + + + + + + + exp2(arg1) + false + + + + + + + + + + expm1(arg1) + false + + + + + + + + + + expm1(arg1) + false + + + + + + + + + + expm1(arg1) + false + + + + + + + + + true + + + + + + + false + + + + + + + + + + + + fabs(arg1) + false + + + + + + + + + + fabs(arg1) + false + + + + + + + + + + fabs(arg1) + false + + + + + + + + + + fdim(arg1, arg2) + false + + + + + + + + + + + + + fdim(arg1, arg2) + false + + + + + + + + + + + + + fdim(arg1, arg2) + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + floor(arg1) + false + + + + + + + + + + floor(arg1) + false + + + + + + + + + + floor(arg1) + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + fmax(arg1,arg2) + false + + + + + + + + + + + + + fmax(arg1,arg2) + false + + + + + + + + + + + + + fmax(arg1,arg2) + false + + + + + + + + + + + + + fmin(arg1,arg2) + false + + + + + + + + + + + + + fmin(arg1,arg2) + false + + + + + + + + + + + + + fmin(arg1,arg2) + false + + + + + + + + + + + + + fmod(arg1,arg2) + false + + + + + + + !0.0 + + + + + + + fmod(arg1,arg2) + false + + + + + + + !0.0 + + + + + + + fmod(arg1,arg2) + false + + + + + + + !0.0 + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + 0: + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + hypot(arg1, arg2) + false + + + + + + + + + + + + + + + + hypot(arg1, arg2) + false + + + + + + + + + + + + + hypot(arg1, arg2) + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + 0:2 + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + 0: + + + + + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + 0: + + + + + + + + + + + + false + + + + 0:255 + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + false + + + + + + false + + + + 0:255 + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + Obsolete function 'gets' called. It is recommended to use 'fgets' or 'gets_s' instead. +The obsolete function 'gets' is called. With 'gets' you'll get a buffer overrun if the input data exceeds the size of the buffer. It is recommended to use the functions 'fgets' or 'gets_s' instead. + + + + + false + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1 <=0x5A || arg1>=0x61 && arg1 <=0x7A + false + + + + + 0:255 + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1 <=0x5A || arg1>=0x61 && arg1 <=0x7A + false + + + + + + + + + + + arg1>='A' && arg1<='Z' || arg1>='a' && arg1 <='z' + false + + + + + 0:255 + + + + + + + arg1>='A' && arg1<='Z' || arg1>='a' && arg1 <='z' + false + + + + + + + + + + + arg1==' ' || arg1=='\t' + false + + + + + 0:255 + + + + + + + arg1==' ' || arg1=='\t' + false + + + + + + + + + + + arg1==0x7F || arg1<=0x1F + false + + + + + 0:255 + + + + + + + arg1==0x7F || arg1<=0x1F + false + + + + + + + + + + + + false + + + + + + + + + + + + + arg1>='0' && arg1<='9' + false + + + + + 0:255 + + + + + + + arg1>='0' && arg1<='9' + false + + + + + + + + + + + arg1>=0x21 && arg1<=0x7E + false + + + + + 0:255 + + + + + + + arg1>=0x21 && arg1<=0x7E + false + + + + + + + + + + + arg1>=0x61 && arg1<=0x7A + false + + + + + 0:255 + + + + + + + arg1>=0x61 && arg1<=0x7A + false + + + + + + + + + + + arg1>=0x20 && arg1<=0x7E + false + + + + + 0:255 + + + + + + + arg1>=0x20 && arg1<=0x7E + false + + + + + + + + + + + arg1>=0x21 && arg1<=0x2F || arg1>=0x3A && arg1<=0x40 || arg1>=0x5B && arg1<=0x60 || arg1>=0x7B && arg1<=0x7E + false + + + + + 0:255 + + + + + + + arg1>=0x21 && arg1<=0x2F || arg1>=0x3A && arg1<=0x40 || arg1>=0x5B && arg1<=0x60 || arg1>=0x7B && arg1<=0x7E + false + + + + + + + + + + + arg1>=0x09 && arg1<=0x0D || arg1==0x20 + false + + + + + 0:255 + + + + + + + arg1>=0x09 && arg1<=0x0D || arg1==0x20 + false + + + + + + + + + + + arg1>=0x41 && arg1<=0x5A + false + + + + + 0:255 + + + + + + + arg1>=0x41 && arg1<=0x5A + false + + + + + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1<=0x46 || arg1>=0x61 && arg1<=0x66 + false + + + + + 0:255 + + + + + + + arg1>=0x30 && arg1<=0x39 || arg1>=0x41 && arg1<=0x46 || arg1>=0x61 && arg1<=0x66 + false + + + + + + + + + + + + false + + + + + + + + + + + + + arg1 < 'A' || arg1 > 'Z' ? arg1 : arg1 + 32 + false + + + + + + + + + + arg1 < 'a' || arg1 > 'z' ? arg1 : arg1 - 32 + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + arg1>0?arg1:-arg1 + false + + + + + + + + + + arg1>0?arg1:-arg1 + false + + + + + + + + + + ldexp(arg1,arg2) + false + + + + + + + + + + + + + ldexp(arg1,arg2) + false + + + + + + + + + + + + + ldexp(arg1,arg2) + false + + + + + + + + + + + + + + lgamma(arg1) + false + + + + + !0.0: + + + + + + + + lgamma(arg1) + false + + + + + !0.0: + + + + + + + + lgamma(arg1) + false + + + + + !0.0: + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + false + + + + + 0: + + + + + + + false + + + + + + + :-1,1: + + + + + + + false + + + + + + + :-1,1: + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + log(arg1) + false + + + + 4.94066e-324: + + + + + + log(arg1) + false + + + + 1.4013e-45: + + + + + + log(arg1) + false + + + + 4.94066e-324: + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + arg1>arg2?1:0 + false + + + + + + + + + + + + + arg1>arg2?1:0 + false + + + + + + + + + + + + + arg1 >= arg2?1:0 + false + + + + + + + + + + + + + arg1 >= arg2?1:0 + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + logb(arg1) + false + + + + + + + + + + logb(arg1) + false + + + + + + + + + + logb(arg1) + false + + + + + + + + + + arg1<arg2?1:0 + false + + + + + + + + + + + + + arg1 <= arg2?1:0 + false + + + + + + + + + + + + + (arg1<arg2 || arg1>arg2)?1:0 + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + ilogb(arg1) + false + + + + + + + + + + ilogb(arg1) + false + + + + + + + + + + ilogb(arg1) + false + + + + + + + + + + log10(arg1) + false + + + + 4.94066e-324: + + + + + + + log10(arg1) + false + + + + 1.4013e-45: + + + + + + + log10(arg1) + false + + + + 4.94066e-324: + + + + + + + log1p(arg1) + false + + + + + + + + + + log1p(arg1) + false + + + + + + + + + + log1p(arg1) + false + + + + + + + + + + log2(arg1) + false + + + + 4.94066e-324: + + + + + + + log2(arg1) + false + + + + 1.4013e-45: + + + + + + + log2(arg1) + false + + + + 4.94066e-324: + + + + + + + nearbyint(arg1) + false + + + + + + + + + + nearbyint(arg1) + false + + + + + + + + + + nearbyint(arg1) + false + + + + + + + + + + nextafter(arg1) + false + + + + + + + + + + + + + nextafter(arg1) + false + + + + + + + + + + + + + nextafter(arg1) + false + + + + + + + + + + + + + nexttoward(arg1) + false + + + + + + + + + + + + + nexttoward(arg1) + false + + + + + + + + + + + + + nexttoward(arg1) + false + + + + + + + + + + + true + + + + + + + + + + + + + + false + + + 0: + + + + + + + false + + + 0: + + + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + + + + + 0: + + + + + 0: + + + + + + + + false + + + + + + + + + + 0: + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + 0: + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + 0: + + + + + + + 0: + + + + + + false + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + pow(arg1, arg2) + false + + + + + + + + + + + + + pow(arg1, arg2) + false + + + + + + + + + + + + + pow(arg1, arg2) + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + !0.0 + + + + + + + + + + + false + + + + + + + !0.0 + + + + + + + + + + + false + + + + + + + !0.0 + + + + + + + + + + remainder(arg1,arg2) + false + + + + + + + !0.0 + + + + + + + remainder(arg1,arg2) + false + + + + + + + !0.0 + + + + + + + remainder(arg1,arg2) + false + + + + + + + !0.0 + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + 0: + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + 0: + + + + + + + + + false + + + + + + + + + + 0: + + + + 0: + + + + + + + + + + + false + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + 0: + + + + + + false + + + + + 0: + + + + + + false + + + + + 0: + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + round(arg1) + false + + + + + + + + + + round(arg1) + false + + + + + + + + + + round(arg1) + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + maybe + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + 0:2 + + + + 0: + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + 0:255 + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + arg1 + false + + + + + + + + + + + + + + + false + + + + + + + + + 1: + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + + + + strlen(arg1) + false + + + + + + + + + + arg1 + false + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + 0: + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + 0:255 + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + 0: + + + + + + + false + + + + + + + false + + + + + + arg1 < 'A' || arg1 > 'Z' ? arg1 : arg1 + 32 + false + + + + + 0:255 + + + + + + arg1 < 'a' || arg1 > 'z' ? arg1 : arg1 - 32 + false + + + + + 0:255 + + + + + + false + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + 0: + + + + 0:255 + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + arg1<arg2?arg2:arg1>arg3?arg3:arg1 + + + + + + + + + + + + + + + + + false + + + arg1<arg2?arg1:arg2 + + + + + + + + + + + false + + + arg1>arg2?arg1:arg2 + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + 0: + + + + + + false + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + 0: + + + + + + + false + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + false + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + 0: + + + + + false + + + + + 0: + + + + + false + + + + + + + + + + false + + + + + 0: + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + arg1 + + + + + + + + + + + + + false + & arg1 + + + + + false + + + + false + + + + + + + false + + + 0: + + + + + + + + false + + + 0: + + + + + + + + false + + + 0: + + + + + + + + false + + + 0: + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + 0: + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + 0: + + + + 0: + + + + + + + false + + + 0: + + + + 0: + + + + + + + false + + + 0: + + + + 0: + + + + + + + false + + + 0: + + + + 0: + + + + + + + false + + + + false + + + + + + + + false + + + + + + + + + 0: + + + + + false + + + + + + + + + 0: + + + + + false + + + + + + + + + 0: + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + 2:36 + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + 0: + + + + + + + + false + + + 0: + + + + 0: + + + + + + false + + + 0: + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + true + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + 0: + + + + + + false + + + 0: + + + + + + false + + + 0: + + + + 0: + + + + + + false + + + + + + + + false + + + + + + + + false + + + false + + + + + + + false + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + malloc,std::malloc + calloc,std::calloc + aligned_alloc,std::aligned_alloc + realloc,std::realloc + free,std::free + + + strdup,std::strdup + free,std::free + + + fopen,std::fopen + tmpfile,std::tmpfile + freopen,std::freopen + fclose,std::fclose + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + std::fstream + std::wfstream + std::ofstream + std::wofstream + std::basic_fstream + std::basic_ofstream + std::insert_iterator + std::lock_guard + std::scoped_lock + std::unique_lock + std::shared_lock + std::pair + std::complex + std::exception + std::logic_error + std::domain_error + std::invalid_argument + std::length_error + std::out_of_range + std::future_error + std::runtime_error + std::range_error + std::overflow_error + std::underflow_error + std::regex_error + std::system_error + std::format_error + std::bad_typeid + std::bad_cast + std::monostate + std::bad_optional_access + std::bad_expected_access + std::bad_weak_ptr + std::bad_function_call + std::bad_alloc + std::bad_array_new_length + std::bad_exception + std::ios_base::failure + std::filesystem::filesystem_error + std::bad_variant_access + std::span + std::stringstream + std::wstringstream + std::istringstream + std::wistringstream + std::ostringstream + std::wostringstream + + + std::mutex + std::recursive_mutex + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/tinyxml2.cfg b/micromamba_root/share/Cppcheck/cfg/tinyxml2.cfg new file mode 100644 index 0000000000000000000000000000000000000000..e652fa9c11d7fce06a9d75ec5cbe19429bae6282 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/tinyxml2.cfg @@ -0,0 +1,37 @@ + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/vcl.cfg b/micromamba_root/share/Cppcheck/cfg/vcl.cfg new file mode 100644 index 0000000000000000000000000000000000000000..bf288ce32b18128fad2a4bd57c91607160e20ca1 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/vcl.cfg @@ -0,0 +1,4 @@ + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/windows.cfg b/micromamba_root/share/Cppcheck/cfg/windows.cfg new file mode 100644 index 0000000000000000000000000000000000000000..7020162805aa1ce503cab54f24380732ccb414ad --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/windows.cfg @@ -0,0 +1,17237 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + CreatePen + CreateBrushIndirect + CreateDIBPatternBrush + CreateDIBPatternBrushPt + CreateHatchBrush + CreatePatternBrush + CreateSolidBrush + CreateFont + CreateFontIndirect + CreateFontIndirectEx + CreateBitmap + CreateBitmapIndirect + CreateCompatibleBitmap + CreateDIBitmap + CreateDIBSection + CreateDiscardableBitmap + CreateEllipticRgn + CreateEllipticRgnIndirect + CreatePolygonRgn + CreatePolyPolygonRgn + CreateRectRgn + CreateRectRgnIndirect + CreateRoundRectRgn + CreateHalftonePalette + CreatePalette + DeleteObject + + + closesocket + socket + + + CreateThread + CreateFile + CreateFileA + CreateFileW + OpenFile + CreateJobObject + CreateRemoteThread + CreateConsoleScreenBuffer + OpenBackupEventLog + OpenEventLog + CreateFileMapping + CreateFileMappingFromApp + CreateFileMappingNuma + CreateMemoryResourceNotification + OpenFileMapping + CreateNamedPipe + CreateEvent + CreateEventA + CreateEventW + CreateEventEx + CreateEventExA + CreateEventExW + CreateMutex + CreateMutexA + CreateMutexW + CreateMutexEx + CreateMutexExA + CreateMutexExW + CreateSemaphore + CreateSemaphoreA + CreateSemaphoreW + CreateSemaphoreEx + CreateSemaphoreExA + CreateSemaphoreExW + CreateTimerQueue + CreateWaitableTimer + OpenEvent + OpenEventA + OpenEventW + OpenMutex + OpenMutexA + OpenMutexW + OpenSemaphore + OpenSemaphoreA + OpenSemaphoreW + OpenWaitableTimer + OpenJobObject + OpenProcess + OpenThread + CreateMailslot + CloseHandle + + + FindFirstFile + FindFirstFileW + FindFirstFileA + FindFirstFileEx + FindFirstFileExW + FindFirstFileExA + FindFirstFileNameW + FindFirstFileNameTransactedW + FindFirstStreamTransactedW + FindFirstFileTransacted + FindFirstFileTransactedA + FindFirstFileTransactedW + FindFirstStreamW + FindClose + + + OpenSCManager + OpenService + CreateService + CloseServiceHandle + + + LockServiceDatabase + UnlockServiceDatabase + + + HeapCreate + HeapDestroy + + + _wfopen + _tfopen + _wfopen_s + _tfopen_s + fclose + _fcloseall + + + _open + _topen + _wopen + _close + + + _popen + _wpopen + _tpopen + _pclose + + + LoadLibrary + LoadLibraryA + LoadLibraryW + LoadLibraryEx + LoadLibraryExA + LoadLibraryExW + + + FreeLibrary + FreeLibraryAndExitThread + + + UuidToString + UuidToStringA + UuidToStringW + RpcStringFree + + + ExAllocatePool + ExAllocatePoolWithQuota + ExAllocatePoolWithQuotaTag + ExAllocatePoolWithTag + ExAllocatePoolWithTagPriority + ExFreePool + ExFreePoolWithTag + + + _dupenv_s + _wdupenv_s + _tdupenv_s + free + + + HeapAlloc + HeapReAlloc + HeapFree + + + IoAllocateErrorLogEntry + IoWriteErrorLogEntry + IoFreeErrorLogEntry + + + IoAllocateIrp + IoFreeIrp + IofCallDriver + IoCallDriver + + + IoAllocateMdl + IoFreeMdl + + + MmAllocateContiguousMemory + MmFreeContiguousMemory + + + MmAllocateContiguousMemorySpecifyCache + MmAllocateContiguousMemorySpecifyCacheNode + MmFreeContiguousMemorySpecifyCache + + + IoAllocateWorkItem + IoFreeWorkItem + + + RtlAllocateHeap + RtlFreeHeap + + + ExAllocateFromPagedLookasideList + ExFreeToPagedLookasideList + + + ExAllocateFromNPagedLookasideList + ExFreeToNPagedLookasideList + + + AllocateHeap + FreeHeap + + + AllocateLsaHeap + FreeLsaHeap + + + AllocatePrivateHeap + FreePrivateHeap + + + VirtualAlloc + VirtualFree + + + VirtualAllocEx + VirtualAllocExNuma + VirtualFreeEx + + + LocalAlloc + LocalFree + + + GlobalAlloc + GlobalFree + SetClipboardData + + + MapViewOfFile + MapViewOfFileEx + MapViewOfFileExNuma + MapViewOfFileFromApp + UnmapViewOfFile + + + RtlCreateHeap + RtlDestroyHeap + + + strdup + wcsdup + _strdup + _wcsdup + _mbsdup + _tcsdup + _malloc_dbg + _calloc_dbg + _strdup_dbg + _wcsdup_dbg + _tcsdup_dbg + free + _free_dbg + + + _aligned_malloc + _aligned_malloc_dbg + _aligned_offset_malloc + _aligned_offset_malloc_dbg + _aligned_free + _aligned_free_dbg + + + CoTaskMemAlloc + CoTaskMemFree + + + _malloca + + _freea + + + AllocateAndInitializeSid + FreeSid + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + false + + + + + + + 0: + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + 0: + + + + false + + + + + + + + 0: + + + + + true + + + true + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + false + + + + + + 0: + + + + + false + + + + + + + + + + false + + + + + 0: + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + false + + + + + + arg1 + false + + + + + + + + + + + + + + + arg1 + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 1: + + Security Warning: Consider using StringCchCopy instead. Using this function incorrectly can compromise the security of your application. This function uses structured exception handling (SEH) to catch access violations and other errors. When this function catches SEH errors, it returns NULL without null-terminating the string and without notifying the caller of the error. The caller is not safe to assume that insufficient space is the error condition. + + + + false + + + + + + + + + + + + + + + 1: + + Security Warning: Consider using StringCchCopy instead. Using this function incorrectly can compromise the security of your application. This function uses structured exception handling (SEH) to catch access violations and other errors. When this function catches SEH errors, it returns NULL without null-terminating the string and without notifying the caller of the error. The caller is not safe to assume that insufficient space is the error condition. + + + + + false + + + + + + + + + + 1: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + 1: + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + It is recommend you use _stricmp instead. + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + 0: + + + + + + + + + + + false + + + + + + + + + 0: + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + These POSIX functions are deprecated. Use the ISO C++ conformant _strdup, _wcsdup, _mbsdup instead. + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + false + strcmp(arg1,arg2) + + + + + + + + + + + + + + + + + false + strcmp(arg1,arg2) + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + 0:2 + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + arg1>0?arg1:-arg1 + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + 0 + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + 0: + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + 0: + + + + + + false + + + + + + false + + + + + + + + + + + + + + + false + + + 0: + + + + + false + + + + + + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + 0: + + + + + + false + + + + 0: + + + + + + + + false + + + + + + + + + + + false + + strlen(arg1) + + + + + + + + + + + + + + + false + + strlen(arg1) + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + 0 + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + 0: + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + true + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 1: + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + Due to security concerns it is not recommended to use this function, see MSDN for details. + + + + + + + + + + + + + + + + false + + + Due to security concerns it is not recommended to use this function, see MSDN for details. + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + Due to security concerns it is not recommended to use this function, see MSDN for details. + + + + + + + + + + + + + + + + false + + Due to security concerns it is not recommended to use this function, see MSDN for details. + + + + + + + + + false + + + + + + + + + 1: + + + + + + + + + + false + + + + + + + + + 1: + + + + + + + + + 0 + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + 1: + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + 0,1 + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + 0: + + + + + + false + + + + 0: + + This function is deprecated because a more secure version is available '_malloca'. + + + + false + + + + + + + + arg1 + false + + + + + + + + + + arg1 + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + 1: + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + arg1 < 'A' || arg1 > 'Z' ? arg1 : arg1 + 32 + false + + + + 0:255 + + + + + + + false + + + + 0:255 + + + + + + + + + + false + + + + + + + + + + + + arg1 < 'a' || arg1 > 'z' ? arg1 : arg1 - 32 + false + + + + 0:255 + + + + + + + false + + + + 0:255 + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + 2:36 + + + + + false + + + + + + + + + + + + + + 2:36 + + + + + + false + + + + + + + + + + 0: + + + + + + + + + + false + + + + + + 0: + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + This function is obsolete. The ControlTrace function supersedes this function. + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + 0: + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + GetVersion may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper functions + + + + false + + + GetVersionEx may be altered or unavailable for releases after Windows 8.1. Instead, use the Version Helper functions + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/wxsqlite3.cfg b/micromamba_root/share/Cppcheck/cfg/wxsqlite3.cfg new file mode 100644 index 0000000000000000000000000000000000000000..0987c3d52752738a0e005ad1efb6eb72c3c3629e --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/wxsqlite3.cfg @@ -0,0 +1,1955 @@ + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + false + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/wxsvg.cfg b/micromamba_root/share/Cppcheck/cfg/wxsvg.cfg new file mode 100644 index 0000000000000000000000000000000000000000..c4e60d630f03bcd2f1fb791d981035e0e8affb41 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/wxsvg.cfg @@ -0,0 +1,16905 @@ + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + -3.402823e+38:3.402823e+38 + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + -3.402823e+38:3.402823e+38 + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + + + + false + + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + false + + + + + + false + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + -1.79769e+308:1.79769e+308 + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + -1.79769e+308:1.79769e+308 + + + + + -1.79769e+308:1.79769e+308 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/wxwidgets.cfg b/micromamba_root/share/Cppcheck/cfg/wxwidgets.cfg new file mode 100644 index 0000000000000000000000000000000000000000..9dea60761d12e24c73f0c53641c3ba0b0d10e002 --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/wxwidgets.cfg @@ -0,0 +1,17313 @@ + + + + + wxAcceleratorEntry + wxAny + wxArchiveIterator + wxArrayDouble + wxArrayInt + wxArrayPtrVoid + wxArrayShort + wxArrayString + wxBitmap + wxBitmapBundle + wxBitmapHandler + wxBoxSizer + wxBrush + wxChar + wxUniChar + wxUniCharRef + wxColour + wxColourDatabase + wxCursor + wxDateSpan + wxDelegateRendererNative + wxHeaderButtonParams + wxRendererNative + wxRendererVersion + wxTextWrapper + wxDCClipper + wxDCBrushChanger + wxDCFontChanger + wxDCPenChanger + wxDCTextColourChanger + wxDCTextBgColourChanger + wxDCTextBgModeChanger + wxFileType + wxFont + wxFlexGridSizer + wxFontEnumerator + wxFontInfo + wxFontList + wxFontMetrics + wxGBPosition + wxGBSizerItem + wxGBSpan + wxGDIObject + wxGraphicsBrush + wxGraphicsFont + wxGraphicsGradientStop + wxGraphicsGradientStops + wxGraphicsMatrix + wxGraphicsPath + wxGridBagSizer + wxGridSizer + wxIcon + wxIconBundle + wxIconLocation + wxIFFHandler + wxImage + wxImageHandler + wxGIFHandler + wxJPEGHandler + wxPCXHandler + wxPNGHandler + wxPNMHandler + wxTGAHandler + wxTIFFHandler + wxXPMHandler + wxMask + wxMetafile + wxNativeFontInfo + wxPalette + wxPen + wxPenList + wxPoint + wxPoint2DDouble + wxPoint2DInt + wxPosition + wxRealPoint + wxRegion + wxRegionContain + wxRegionIterator + wxRegEx + wxRect + wxSize + wxSizer + wxSizerItem + wxSplitterRenderParams + wxStaticBoxSizer + wxStdDialogButtonSizer + wxSystemOptions + wxSystemSettings + wxTarEntry + wxTarInputStream + wxTimeSpan + wxUString + wxVariant + wxVariantData + wxVariantDataCurrency + wxVariantDataErrorCode + wxVariantDataSafeArray + wxVector + wxVersionInfo + wxWrapSizer + wxZipEntry + wxZipInputStream + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + 0: + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + "#arg1" + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + This is the same as 'wxString::IsEmpty' and is kept for wxWidgets 1.xx compatibility. You should not use it in new code. + + + + false + + + + + + This is a wxWidgets 1.xx compatibility function; you should not use it in new code. + + + + + false + + + + This is a wxWidgets 1.xx compatibility function; you should not use it in new code. + + + + + false + + + + + + + + false + + + + This is a wxWidgets 1.xx compatibility function; you should not use it in new code. + + + + + false + + + + + This is a wxWidgets 1.xx compatibility function; you should not use it in new code. + + + + + + false + + + + + This is the same as 'wxString::Len' and is kept for wxWidgets 1.xx compatibility. You should not use it in new code. + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + true + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + 10,16 + + + + + + + false + + + + + + + + + + + + false + + + + 0: + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + 0: + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + 0: + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + 1: + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxApp::MacOpenFiles' method instead in any new code. + + + + false + + + + + This function is deprecated, use 'wxPlatformInfo::GetBitness()' instead. + + + + false + + + + + + + + + This function is deprecated, please use 'ToWChar()' instead. + + + + false + + + + + + + + + This function is deprecated, please use 'FromWChar()' instead. + + + + false + + + + + + + This function has been deprecated in favour of 'wxMenuBar::SetMenuLabel()'. + + + + false + + + + + This function only exists for compatibility, please override FormatTimeMS() in the new code. + + + + false + + + + + This function is deprecated. Please use 'wxMenuItem::GetMenuLabel()' or 'wxMenuItem::GetMenuLabelText()' instead. + + + + false + + + + + This function is deprecated. Please use 'wxMenuItem::GetItemLabel()' or 'wxMenuItem::GetItemLabelText()' instead. + + + + false + + + + + This function is deprecated in favour of 'wxMenuItem::GetItemLabel()'. + + + + false + + + + + + This function is deprecated, use 'wxPlatformInfo::GetBitness()' instead. + + + + false + + + + + + + This function is deprecated, use 'wxPGProperty::AddPrivateChild()' instead. + + + + false + + + + This function is deprecated. Ids generated by it can conflict with the Ids defined by the user code, use wxID_ANY to assign ids which are guaranteed to not conflict with the user-defined ids for the controls and menu items you create instead of using this function. + + + + false + + + + + + + + This function is deprecated, use 'wxPGProperty::GetValueAsString()' instead. + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + This function is deprecated, use 'wxPlatformInfo::GetBitnessName()' instead. + + + + false + + + + This function is deprecated, use 'wxPlatformInfo::SetBitness()' instead. + + + + false + + + + This function is deprecated in favour of 'wxMenuItem::SetItemLabel()'. + + + + false + + + + + + + This function is deprecated, please use 'wxFileName::SplitPath()' instead. + + + + false + + + + + + + + + + + + This function is deprecated. This is the old way of detecting tool right clicks, although it will still work, you should use the EVT_TOOL_RCLICKED() macro instead. + + + + false + + + + + + The setup dialog is deprecated, though retained for backward compatibility. + + + + false + + + + + + + This function has been deprecated, use 'wxWindow::Close()' instead. + + + + false + + + + + + The setup dialog is deprecated, though retained for backward compatibility. + + + + false + + + + + + + This function is deprecated use 'CreateThread()' instead. + + + + false + + + + This function is deprecated in favour of 'IsShown()'. + + + + false + + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'PushBack' method instead in any new code. + + + + + false + + + + + + This function should be used instead of changing 'wxCAL_NO_YEAR_CHANGE' style bit directly. It allows or disallows the user to change the year interactively. Only in generic 'wxCalendarCtrl'. + + + + false + + + + + + + This function is deprecated. Construct a wxFileName with wxPATH_UNIX and then use wxFileName::GetFullPath(wxPATH_DOS) instead. + + + + false + + + + + + This function is deprecated. + + + + false + + + + + This function is kept mostly for backwards compatibility. Use 'LastReadCount()' or 'LastWriteCount()' instead. 'LastCount()' is still needed for use with less commonly used functions: 'Discard()', 'Peek()', and 'Unread()'. + + + + + false + + + + + This function is deprecated. + + + + false + + + + This function is deprecated, use GetStream() instead + + + + false + + + + + + This function is deprecated because its name is misleading: notice that the argument is in milliseconds, not microseconds. Please use either 'wxMilliSleep()' or 'wxMicroSleep()' depending on the resolution you need. + + + + false + + + + + + + This function is kept mostly for backwards compatibility. + + + + false + + + + This function is deprecated, use 'wxWindow::SetInitialSize' instead. + + + + false + + + + This function is deprecated, use 'wxTextInputStream::ReadLine()' or 'wxTextInputStream::ReadWord()' instead. + + + + + false + + + + Use 'wxStyledTextEvent::GetString()' instead. + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + This function is deprecated. + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + This function is deprecated, use 'wxDC::SetPalette' instead. + + + + + false + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'GetMargins()' method instead in any new code. + + + + false + + + + + + + + + false + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'Dismiss()' method instead in any new code. + + + + + false + + This function is deprecated and kept mostly for backwards compatibility. Please override 'Popup()' method instead in any new code. + + + + + false + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'SetMargins()' method instead in any new code. + + + + + false + + + + + + + + + + + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code. + + + + + false + + + + + + + + + + + + + + + + + + + This function is deprecated and kept mostly for backwards compatibility. Please override 'wxDataViewCustomRenderer::ActivateCell()' method instead in any new code. + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + This function is deprecated and is replaced by 'wxLog' functionality. + + + + + false + + + + + + This function is deprecated and is replaced by 'wxLog' functionality. + + + + + false + + + + + + This function is deprecated. Construct a 'wxFileName' with 'wxPATH_DOS' and then use 'wxFileName::GetFullPath(wxPATH_UNIX)' instead. + + + + + false + + + + + + + This function is deprecated. Please use 'wxFileName::SplitPath()' instead. + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + This function is deprecated. + + + + + + false + + + + + + + + false + + + + + + This function is deprecated. This is exactly the same as 'FitInside()' in wxWidgets 2.9 and later, please replace calls to it with 'FitInside()'. + + + + false + + + + + + This function is deprecated. This function does not free the old sizer which may result in memory leaks, use 'wxSizerItem::AssignSizer' which does free it instead. + + + + false + + + + + + + + + This is identical to 'wxSizerItem::SetMinSize()', prefer to use the other function, as its name is more clear + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + 0: + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + This function is deprecated. This function does not free the old sizer which may result in memory leaks, use 'wxSizerItem::AssignSpacer' which does free it instead. + + + + false + + + + + + This function is for backward compatibility only, and applications should use 'wxHelpControllerBase::DisplaySection()' instead. + + + + + + false + + + + + This function is deprecated. + + + + false + + + + + This function is deprecated in favour of 'wxIconizeEvent::IsIconized()'. + + + + false + + + + + This function is deprecated, use 'wxList::GetCount()' instead. Returns the number of elements in the list. + + + + + + false + + + + + + This function is deprecated since version 3.1.2, dimensions and depth can only be set at construction time. + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + This function is deprecated, please use 'wxWindow::FindWindowByLabel()' instead. + + + + false + + + + + + This function is deprecated, please use 'wxWindow::FindWindowByName()' instead. + + + + false + + + + + + This function is deprecated, please use 'wxFileName::CreateTempFileName()' instead. + + + + false + + + + + + + + + + This function is deprecated, use 'wxGetUserId()' with no arguments instead. + + + + false + + + + + + + + + + This function is deprecated, use 'wxGetEmailAddress()' with no arguments instead. + + + + false + + + + + + + + + + This function is deprecated, use 'wxGetHostName()' with no arguments instead. + + + + false + + + + + + + + + + This function is deprecated, use 'wxGetUserName()' with no arguments instead. + + + + false + + + + + + + + + + + + This function is deprecated, use 'wxGetCwd()' instead. + + + + false + + + + + + + + + + + + + + This function is deprecated. Please use 'wxGrid::SetCellAlignment(row, col, horiz, vert)' instead. + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + 0 + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + strlen(arg1) + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + This is the same as wxString::Trim() except that it doesn't change this string. This is a wxWidgets 1.xx compatibility function; you should not use it in new code. + + + + + + + + + + + false + + + + + + + + + false + + + + + + This function is deprecated since version 3.1.2, dimensions and depth can only be set at construction time. + + + + + false + + + + 0: + + + + + + + + + + false + + + + + + + + + + 0,2:36 + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + 0,1 + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + true + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + 0: + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + 0: + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + 1: + + + + + + + + false + + + 1: + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + false + + + + + + + + + + 0: + + + + + false + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + false + + + + + 0: + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + 0: + + + + + + false + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + 0: + + + + + + + + + false + + + + + + 0: + + + + + false + + + + + + 0: + + + + + false + + + + + + + 0: + + + + + false + + + + + + 1: + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + 0: + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + 1: + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + 0: + + + + + + + false + + + + + + + 0: + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + 0: + + + + + 0: + + + + + + false + + + + + + + 0: + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + false + + + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + 0:59 + + + + + + + false + + + + + 0:60 + + + + + + + false + + + + + 0:23 + + + + + + + false + + + + + + + + + + false + + + + 1:12 + + + + + + + false + + + + + 1:31 + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + 0: + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + 1: + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + 0.0:1.0 + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + This is a wxWidgets 1.xx compatibility function. Use 'wxString::Mid' in new applications instead. + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + arg1<arg2?arg1:arg2 + + + + + + + + + + + false + + arg1>arg2?arg1:arg2 + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + 1: + + + + + + + + + false + + + + + 0: + + + + + + + false + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + This is a wxWidgets 1.xx compatibility function. Use 'wxString::Find' in new applications instead. + + + + + + + + false + + This is a wxWidgets 1.xx compatibility function. You should not use it in new code. + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + This is a wxWidgets 1.xx compatibility function. Use 'wxString::Truncate' in new applications instead. + + + + false + + + + + + + + + + false + + + This is a wxWidgets 1.xx compatibility function. Use 'wxString::MakeUpper' in new applications instead. + + + + false + + + This is a wxWidgets 1.xx compatibility function. Use 'wxString::MakeLower' in new applications instead. + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + 0:255 + + + + 0:255 + + + + 0:255 + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + 0: + + + + 1: + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + 1: + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + 0: + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + 0: + + + + + false + + + + + + + + 0: + + + + + false + + + + + + + + 0: + + + + + + false + + + + + + + + 0: + + + + + + + false + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + 0:15 + + + + + + + + false + + + + + + + + + 0:15 + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + 0: + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + false + + + + + 0: + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + false + + + + + + + + 0: + + + + + 1: + + + + + false + + + + + + 0: + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + false + + + + + 0: + + + + 0: + + + + + + + 0: + + + + + + false + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + + + false + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + Please note that this method does the same thing as the standard 'reserve()' one and should not be used in new code. + + + + + false + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + 0: + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + false + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + + + false + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/zephyr.cfg b/micromamba_root/share/Cppcheck/cfg/zephyr.cfg new file mode 100644 index 0000000000000000000000000000000000000000..999de4ea1b50765c242c5ecf715dc66eeb2ff52b --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/zephyr.cfg @@ -0,0 +1,113 @@ + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + 0:2147483647 + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/cfg/zlib.cfg b/micromamba_root/share/Cppcheck/cfg/zlib.cfg new file mode 100644 index 0000000000000000000000000000000000000000..e6584cd6ca1cac48cbcccd333421aaeef4040ffa --- /dev/null +++ b/micromamba_root/share/Cppcheck/cfg/zlib.cfg @@ -0,0 +1,1450 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + :16 + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + :16 + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + false + + + + + + + + false + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + + + + + false + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + + + + + gzopen + gzopen64 + gzdopen + gzopen_w + gzclose + gzclose_r + gzclose_w + + + + + + false + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + false + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + 0: + + + + + + + + false + + + + + + + + + + 0: + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + 0: + + + + + + + false + + + + + + + + + 0:255 + + + + + + + + false + + + + + + + + + + + false + + + + 0:255 + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + 0: + + + + + + + + false + + + + 0: + + + + + + + + + + 0: + + + + + + + + false + + + + 0: + + + + + 0: + + + + + + + + + + + + false + + + + 0: + + + + + + + + + + 0: + + + + + + + + false + + + + 0: + + + + + + + + + + 0: + + + + + + + + false + + + + 0: + + + + + 0: + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + false + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + + + false + + + + + + + + + + + + + false + + + + + + + + + + + false + + + + + + + + + + + + + + + + diff --git a/micromamba_root/share/Cppcheck/platforms/aix_ppc64.xml b/micromamba_root/share/Cppcheck/platforms/aix_ppc64.xml new file mode 100644 index 0000000000000000000000000000000000000000..3abf639e62a3055c177985de9794f76f970a502e --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/aix_ppc64.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 8 + 8 + 4 + 8 + 8 + 8 + 8 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t2.xml b/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t2.xml new file mode 100644 index 0000000000000000000000000000000000000000..218a08cc13d1e379035115d7832016a81c54a225 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t2.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 8 + 4 + 4 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t4.xml b/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t4.xml new file mode 100644 index 0000000000000000000000000000000000000000..6a7d2e38d1bfc223e2150d30dd2c233308052f43 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/arm32-wchar_t4.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 8 + 4 + 4 + 4 + + diff --git a/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t2.xml b/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t2.xml new file mode 100644 index 0000000000000000000000000000000000000000..2b0cff4989fe49b547f4411978132eae101f0cf9 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t2.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 8 + 8 + 4 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t4.xml b/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t4.xml new file mode 100644 index 0000000000000000000000000000000000000000..35183bb089c5d05e181ee0c6f0873f5ab6f98b09 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/arm64-wchar_t4.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 8 + 8 + 4 + 4 + + diff --git a/micromamba_root/share/Cppcheck/platforms/avr8.xml b/micromamba_root/share/Cppcheck/platforms/avr8.xml new file mode 100644 index 0000000000000000000000000000000000000000..a5cd45e35c83a05517a3f61b676b78ee1e1b5948 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/avr8.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 2 + 4 + 8 + 4 + 4 + 4 + 2 + 2 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/cray_sv1.xml b/micromamba_root/share/Cppcheck/platforms/cray_sv1.xml new file mode 100644 index 0000000000000000000000000000000000000000..1c26bc21d0efc161b18f7f58147383449e343081 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/cray_sv1.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 8 + 8 + 8 + 8 + 8 + 16 + 8 + 8 + 8 + + diff --git a/micromamba_root/share/Cppcheck/platforms/elbrus-e1cp.xml b/micromamba_root/share/Cppcheck/platforms/elbrus-e1cp.xml new file mode 100644 index 0000000000000000000000000000000000000000..818c2841580d288724b73aa81695efc49ef98d63 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/elbrus-e1cp.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 4 + 8 + 8 + 4 + 8 + 16 + 8 + 8 + 4 + + diff --git a/micromamba_root/share/Cppcheck/platforms/mips32.xml b/micromamba_root/share/Cppcheck/platforms/mips32.xml new file mode 100644 index 0000000000000000000000000000000000000000..c8fb46d40a1ce303cf66e120488a22cd35442fa3 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/mips32.xml @@ -0,0 +1,18 @@ + + + 8 + signed + + 1 + 2 + 4 + 4 + 8 + 4 + 8 + 8 + 4 + 4 + 4 + + diff --git a/micromamba_root/share/Cppcheck/platforms/msp430_eabi_large_datamodel.xml b/micromamba_root/share/Cppcheck/platforms/msp430_eabi_large_datamodel.xml new file mode 100644 index 0000000000000000000000000000000000000000..18465323e9bf085d8aaa9c767ab517103a99f438 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/msp430_eabi_large_datamodel.xml @@ -0,0 +1,18 @@ + + + 8 + signed + + 1 + 2 + 2 + 4 + 8 + 4 + 8 + 8 + 4 + 4 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/pic16.xml b/micromamba_root/share/Cppcheck/platforms/pic16.xml new file mode 100644 index 0000000000000000000000000000000000000000..44fa44caa9eabb4e9deb706c51f2224b8323b482 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/pic16.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 2 + 4 + 8 + 4 + 4 + 8 + 2 + 2 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/pic8-enhanced.xml b/micromamba_root/share/Cppcheck/platforms/pic8-enhanced.xml new file mode 100644 index 0000000000000000000000000000000000000000..a5cd45e35c83a05517a3f61b676b78ee1e1b5948 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/pic8-enhanced.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 2 + 4 + 8 + 4 + 4 + 4 + 2 + 2 + 2 + + diff --git a/micromamba_root/share/Cppcheck/platforms/pic8.xml b/micromamba_root/share/Cppcheck/platforms/pic8.xml new file mode 100644 index 0000000000000000000000000000000000000000..b855cbefc2c4ff78f702dee2c549750242c104e7 --- /dev/null +++ b/micromamba_root/share/Cppcheck/platforms/pic8.xml @@ -0,0 +1,18 @@ + + + 8 + unsigned + + 1 + 2 + 2 + 4 + 4 + 4 + 4 + 4 + 2 + 2 + 2 + + diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Buenos_Aires b/micromamba_root/share/zoneinfo/America/Argentina/Buenos_Aires new file mode 100644 index 0000000000000000000000000000000000000000..d6f999b8605c9f73653a16e2ddbd5a49b96c0f56 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Buenos_Aires differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Catamarca b/micromamba_root/share/zoneinfo/America/Argentina/Catamarca new file mode 100644 index 0000000000000000000000000000000000000000..1dcc8d85434c9d016f170cb2f16811ebef327b77 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Catamarca differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/ComodRivadavia b/micromamba_root/share/zoneinfo/America/Argentina/ComodRivadavia new file mode 100644 index 0000000000000000000000000000000000000000..1dcc8d85434c9d016f170cb2f16811ebef327b77 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/ComodRivadavia differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Cordoba b/micromamba_root/share/zoneinfo/America/Argentina/Cordoba new file mode 100644 index 0000000000000000000000000000000000000000..35a52e53d123b5ef5d293b3af19046630f02bb66 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Cordoba differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Jujuy b/micromamba_root/share/zoneinfo/America/Argentina/Jujuy new file mode 100644 index 0000000000000000000000000000000000000000..b275f27c0287415674d2ccc850c3d612f4a45b0f Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Jujuy differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/La_Rioja b/micromamba_root/share/zoneinfo/America/Argentina/La_Rioja new file mode 100644 index 0000000000000000000000000000000000000000..23fca12205222be27c167e597df5086520f699cf Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/La_Rioja differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Mendoza b/micromamba_root/share/zoneinfo/America/Argentina/Mendoza new file mode 100644 index 0000000000000000000000000000000000000000..691c56978a033586e3302db2ef600e4b0ffd6366 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Mendoza differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Rio_Gallegos b/micromamba_root/share/zoneinfo/America/Argentina/Rio_Gallegos new file mode 100644 index 0000000000000000000000000000000000000000..991d1fae69ee1602fc6a07e6e85a3b62d66650c2 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Rio_Gallegos differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Salta b/micromamba_root/share/zoneinfo/America/Argentina/Salta new file mode 100644 index 0000000000000000000000000000000000000000..58863e0436d16ef8ff8ba3d96b452086e4ae8ff5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Salta differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/San_Juan b/micromamba_root/share/zoneinfo/America/Argentina/San_Juan new file mode 100644 index 0000000000000000000000000000000000000000..7eba33c1c5b13cbd9b7566f450d524a45cf8b65e Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/San_Juan differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/San_Luis b/micromamba_root/share/zoneinfo/America/Argentina/San_Luis new file mode 100644 index 0000000000000000000000000000000000000000..0a81cbddfa2813041472b716baa91c35a8451379 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/San_Luis differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Tucuman b/micromamba_root/share/zoneinfo/America/Argentina/Tucuman new file mode 100644 index 0000000000000000000000000000000000000000..10556d5d856a0f33afd8da2b07a2005e7be80fb0 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Tucuman differ diff --git a/micromamba_root/share/zoneinfo/America/Argentina/Ushuaia b/micromamba_root/share/zoneinfo/America/Argentina/Ushuaia new file mode 100644 index 0000000000000000000000000000000000000000..e0317502769271ad0c038493df2ad2b90ec402d4 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Argentina/Ushuaia differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Indianapolis b/micromamba_root/share/zoneinfo/America/Indiana/Indianapolis new file mode 100644 index 0000000000000000000000000000000000000000..6b08d15bdaba6cf94dcb2681887154f4d265d8ba Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Indianapolis differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Knox b/micromamba_root/share/zoneinfo/America/Indiana/Knox new file mode 100644 index 0000000000000000000000000000000000000000..b187d5f8c75685af67913e9360b50ecad19fe6ad Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Knox differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Marengo b/micromamba_root/share/zoneinfo/America/Indiana/Marengo new file mode 100644 index 0000000000000000000000000000000000000000..a730fe666b6522026ec2eb74f94616699178a346 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Marengo differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Petersburg b/micromamba_root/share/zoneinfo/America/Indiana/Petersburg new file mode 100644 index 0000000000000000000000000000000000000000..341a0235ef488ee623aba36a8b5928122774d2fb Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Petersburg differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Tell_City b/micromamba_root/share/zoneinfo/America/Indiana/Tell_City new file mode 100644 index 0000000000000000000000000000000000000000..76e1f6285b552c11ceae9bc6cdbd6a308419b0e8 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Tell_City differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Vevay b/micromamba_root/share/zoneinfo/America/Indiana/Vevay new file mode 100644 index 0000000000000000000000000000000000000000..f2acf6cbbd653929e826366aec83f443d11c66e7 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Vevay differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Vincennes b/micromamba_root/share/zoneinfo/America/Indiana/Vincennes new file mode 100644 index 0000000000000000000000000000000000000000..c255f89b6da9916832a8b6a9bb7620859ce33d91 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Vincennes differ diff --git a/micromamba_root/share/zoneinfo/America/Indiana/Winamac b/micromamba_root/share/zoneinfo/America/Indiana/Winamac new file mode 100644 index 0000000000000000000000000000000000000000..679d321e3b691b5403d9c9493367651360ea6f15 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Indiana/Winamac differ diff --git a/micromamba_root/share/zoneinfo/America/Kentucky/Louisville b/micromamba_root/share/zoneinfo/America/Kentucky/Louisville new file mode 100644 index 0000000000000000000000000000000000000000..f2136d6ed41bb7dc0646b91bab366efb46bacb78 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Kentucky/Louisville differ diff --git a/micromamba_root/share/zoneinfo/America/Kentucky/Monticello b/micromamba_root/share/zoneinfo/America/Kentucky/Monticello new file mode 100644 index 0000000000000000000000000000000000000000..d9f54a18bbe6885a05a7f42a056bc892b7a641e8 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/Kentucky/Monticello differ diff --git a/micromamba_root/share/zoneinfo/America/North_Dakota/Beulah b/micromamba_root/share/zoneinfo/America/North_Dakota/Beulah new file mode 100644 index 0000000000000000000000000000000000000000..becf4383301e2d90db0c0c06659b588d25042ee5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/North_Dakota/Beulah differ diff --git a/micromamba_root/share/zoneinfo/America/North_Dakota/Center b/micromamba_root/share/zoneinfo/America/North_Dakota/Center new file mode 100644 index 0000000000000000000000000000000000000000..d03bda045d31662adc65450b33e9665c54fdb245 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/North_Dakota/Center differ diff --git a/micromamba_root/share/zoneinfo/America/North_Dakota/New_Salem b/micromamba_root/share/zoneinfo/America/North_Dakota/New_Salem new file mode 100644 index 0000000000000000000000000000000000000000..ecefc15d8cdf601347e114ff25b3bb2df4d56a57 Binary files /dev/null and b/micromamba_root/share/zoneinfo/America/North_Dakota/New_Salem differ diff --git a/micromamba_root/share/zoneinfo/Brazil/Acre b/micromamba_root/share/zoneinfo/Brazil/Acre new file mode 100644 index 0000000000000000000000000000000000000000..fb5185ca60283bd56f795e9a956274c0b6e63325 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Brazil/Acre differ diff --git a/micromamba_root/share/zoneinfo/Brazil/DeNoronha b/micromamba_root/share/zoneinfo/Brazil/DeNoronha new file mode 100644 index 0000000000000000000000000000000000000000..9e74745ca79137918281337fa270c5fec4bd7da1 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Brazil/DeNoronha differ diff --git a/micromamba_root/share/zoneinfo/Brazil/East b/micromamba_root/share/zoneinfo/Brazil/East new file mode 100644 index 0000000000000000000000000000000000000000..a16da2c4d5a980cd944d86c34ea8a2f597e39b71 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Brazil/East differ diff --git a/micromamba_root/share/zoneinfo/Brazil/West b/micromamba_root/share/zoneinfo/Brazil/West new file mode 100644 index 0000000000000000000000000000000000000000..59c952ebc65169dce30078a3e1ee371e0da52ae4 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Brazil/West differ diff --git a/micromamba_root/share/zoneinfo/Canada/Atlantic b/micromamba_root/share/zoneinfo/Canada/Atlantic new file mode 100644 index 0000000000000000000000000000000000000000..9fa850a7d4c36dea84149bc0ea2fcd3581d61a8c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Atlantic differ diff --git a/micromamba_root/share/zoneinfo/Canada/Central b/micromamba_root/share/zoneinfo/Canada/Central new file mode 100644 index 0000000000000000000000000000000000000000..7e646d18e18851bfde743b379e52df4ec5b5a20f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Central differ diff --git a/micromamba_root/share/zoneinfo/Canada/Eastern b/micromamba_root/share/zoneinfo/Canada/Eastern new file mode 100644 index 0000000000000000000000000000000000000000..668e70d765dc3fb0eda16fb0f1932af607b53412 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Eastern differ diff --git a/micromamba_root/share/zoneinfo/Canada/Mountain b/micromamba_root/share/zoneinfo/Canada/Mountain new file mode 100644 index 0000000000000000000000000000000000000000..645ee9453073acf4cff9f9420b358a8ebbe40f93 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Mountain differ diff --git a/micromamba_root/share/zoneinfo/Canada/Newfoundland b/micromamba_root/share/zoneinfo/Canada/Newfoundland new file mode 100644 index 0000000000000000000000000000000000000000..94d790baaccb72298bb577041cf3c8400339a7da Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Newfoundland differ diff --git a/micromamba_root/share/zoneinfo/Canada/Pacific b/micromamba_root/share/zoneinfo/Canada/Pacific new file mode 100644 index 0000000000000000000000000000000000000000..c998491112ea5e4430b8266498cf7f23e1266bc5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Pacific differ diff --git a/micromamba_root/share/zoneinfo/Canada/Saskatchewan b/micromamba_root/share/zoneinfo/Canada/Saskatchewan new file mode 100644 index 0000000000000000000000000000000000000000..a3f8217a544ebb0993473bbffaae8e2d723c4ec3 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Saskatchewan differ diff --git a/micromamba_root/share/zoneinfo/Canada/Yukon b/micromamba_root/share/zoneinfo/Canada/Yukon new file mode 100644 index 0000000000000000000000000000000000000000..40baa9aba2a879f7a38a5a0f67e16e7a2d677a5e Binary files /dev/null and b/micromamba_root/share/zoneinfo/Canada/Yukon differ diff --git a/micromamba_root/share/zoneinfo/Chile/Continental b/micromamba_root/share/zoneinfo/Chile/Continental new file mode 100644 index 0000000000000000000000000000000000000000..d3fc9b8343369abf5f14be781397f426c5969608 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Chile/Continental differ diff --git a/micromamba_root/share/zoneinfo/Chile/EasterIsland b/micromamba_root/share/zoneinfo/Chile/EasterIsland new file mode 100644 index 0000000000000000000000000000000000000000..54dff005b876339f5c1ff3dc0aeae1519c29b368 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Chile/EasterIsland differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT b/micromamba_root/share/zoneinfo/Etc/GMT new file mode 100644 index 0000000000000000000000000000000000000000..157573b1d340e0f57a0dd4d9698bd3798cbf7136 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+0 b/micromamba_root/share/zoneinfo/Etc/GMT+0 new file mode 100644 index 0000000000000000000000000000000000000000..157573b1d340e0f57a0dd4d9698bd3798cbf7136 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+0 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+1 b/micromamba_root/share/zoneinfo/Etc/GMT+1 new file mode 100644 index 0000000000000000000000000000000000000000..98d5dcf917c6f1d9bd0018db0dc4dd0590e6a8ca Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+1 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+10 b/micromamba_root/share/zoneinfo/Etc/GMT+10 new file mode 100644 index 0000000000000000000000000000000000000000..ecb287e667868e92d97cdf5fee601e09cded0ff2 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+10 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+11 b/micromamba_root/share/zoneinfo/Etc/GMT+11 new file mode 100644 index 0000000000000000000000000000000000000000..e941412971a4d805e311e8e4e7eb37e10994e4be Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+11 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+12 b/micromamba_root/share/zoneinfo/Etc/GMT+12 new file mode 100644 index 0000000000000000000000000000000000000000..9c95bd0736da8932cd70e1d9590f8a3ab676c620 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+12 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+2 b/micromamba_root/share/zoneinfo/Etc/GMT+2 new file mode 100644 index 0000000000000000000000000000000000000000..6d5ce3db7323d63f73e9e92b6f4d3d6b77632a94 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+2 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+3 b/micromamba_root/share/zoneinfo/Etc/GMT+3 new file mode 100644 index 0000000000000000000000000000000000000000..5ef7be71fd96e4ef66fce3ab675303559dbb22a3 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+3 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+4 b/micromamba_root/share/zoneinfo/Etc/GMT+4 new file mode 100644 index 0000000000000000000000000000000000000000..75f16216f0d39ff98d969cd1f6703473f6fea50f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+4 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+5 b/micromamba_root/share/zoneinfo/Etc/GMT+5 new file mode 100644 index 0000000000000000000000000000000000000000..589990ae8966d1af67f1e05c21e14149adec2089 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+5 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+6 b/micromamba_root/share/zoneinfo/Etc/GMT+6 new file mode 100644 index 0000000000000000000000000000000000000000..fcb60ca2465a3e0c4febd41ac1a05bbb39fd96ed Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+6 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+7 b/micromamba_root/share/zoneinfo/Etc/GMT+7 new file mode 100644 index 0000000000000000000000000000000000000000..c0427a40eef929dcf25451be77c74af6e9111065 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+7 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+8 b/micromamba_root/share/zoneinfo/Etc/GMT+8 new file mode 100644 index 0000000000000000000000000000000000000000..9bdc2283c07d8dae0bb0147c7a7c648ac6a30405 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+8 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT+9 b/micromamba_root/share/zoneinfo/Etc/GMT+9 new file mode 100644 index 0000000000000000000000000000000000000000..ca7a81f656f206f32586fdd294a2b385bb519b6a Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT+9 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-0 b/micromamba_root/share/zoneinfo/Etc/GMT-0 new file mode 100644 index 0000000000000000000000000000000000000000..157573b1d340e0f57a0dd4d9698bd3798cbf7136 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-0 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-1 b/micromamba_root/share/zoneinfo/Etc/GMT-1 new file mode 100644 index 0000000000000000000000000000000000000000..cb45601c958da687b3e3d63366aa259a8a1c5376 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-1 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-10 b/micromamba_root/share/zoneinfo/Etc/GMT-10 new file mode 100644 index 0000000000000000000000000000000000000000..11d988e10a3e318a7cba485d995872636d1acaf0 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-10 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-11 b/micromamba_root/share/zoneinfo/Etc/GMT-11 new file mode 100644 index 0000000000000000000000000000000000000000..f4c5d5cc29b5c1687e9728b6b63cd2a5328c9dfb Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-11 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-12 b/micromamba_root/share/zoneinfo/Etc/GMT-12 new file mode 100644 index 0000000000000000000000000000000000000000..cd397b02cdde1d348db020ce46785285feb312ba Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-12 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-13 b/micromamba_root/share/zoneinfo/Etc/GMT-13 new file mode 100644 index 0000000000000000000000000000000000000000..8fad7c6b0bef4b13898a94f4004726837cde975e Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-13 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-14 b/micromamba_root/share/zoneinfo/Etc/GMT-14 new file mode 100644 index 0000000000000000000000000000000000000000..a595e60eeae161b68617bb401d4acc53dbac1846 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-14 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-2 b/micromamba_root/share/zoneinfo/Etc/GMT-2 new file mode 100644 index 0000000000000000000000000000000000000000..97b44a9baecfd5bd30393142c63323160353bf2f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-2 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-3 b/micromamba_root/share/zoneinfo/Etc/GMT-3 new file mode 100644 index 0000000000000000000000000000000000000000..4eb17ff0057b8843a0b840c6fef4b77accfe43b5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-3 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-4 b/micromamba_root/share/zoneinfo/Etc/GMT-4 new file mode 100644 index 0000000000000000000000000000000000000000..13aef80cbbcf0c938b8d11d92b0755e146a501d2 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-4 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-5 b/micromamba_root/share/zoneinfo/Etc/GMT-5 new file mode 100644 index 0000000000000000000000000000000000000000..83a28169552f4fd39e9d0322398d787aad303e3c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-5 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-6 b/micromamba_root/share/zoneinfo/Etc/GMT-6 new file mode 100644 index 0000000000000000000000000000000000000000..79a983e5454a35f134cd4ad736ed912f3deae64f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-6 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-7 b/micromamba_root/share/zoneinfo/Etc/GMT-7 new file mode 100644 index 0000000000000000000000000000000000000000..e136690e165a933fbad2fdc0aba8d97886714fe0 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-7 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-8 b/micromamba_root/share/zoneinfo/Etc/GMT-8 new file mode 100644 index 0000000000000000000000000000000000000000..bc70fe416fdbe3abb2c636a7bc1485b79e03af13 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-8 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT-9 b/micromamba_root/share/zoneinfo/Etc/GMT-9 new file mode 100644 index 0000000000000000000000000000000000000000..d18cedd524f4cc132106d822fa8bb9bd3779edab Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT-9 differ diff --git a/micromamba_root/share/zoneinfo/Etc/GMT0 b/micromamba_root/share/zoneinfo/Etc/GMT0 new file mode 100644 index 0000000000000000000000000000000000000000..157573b1d340e0f57a0dd4d9698bd3798cbf7136 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/GMT0 differ diff --git a/micromamba_root/share/zoneinfo/Etc/Greenwich b/micromamba_root/share/zoneinfo/Etc/Greenwich new file mode 100644 index 0000000000000000000000000000000000000000..157573b1d340e0f57a0dd4d9698bd3798cbf7136 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/Greenwich differ diff --git a/micromamba_root/share/zoneinfo/Etc/UCT b/micromamba_root/share/zoneinfo/Etc/UCT new file mode 100644 index 0000000000000000000000000000000000000000..00841a62213e6cccf7f0b7353e5e8ae214185486 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/UCT differ diff --git a/micromamba_root/share/zoneinfo/Etc/UTC b/micromamba_root/share/zoneinfo/Etc/UTC new file mode 100644 index 0000000000000000000000000000000000000000..00841a62213e6cccf7f0b7353e5e8ae214185486 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/UTC differ diff --git a/micromamba_root/share/zoneinfo/Etc/Universal b/micromamba_root/share/zoneinfo/Etc/Universal new file mode 100644 index 0000000000000000000000000000000000000000..00841a62213e6cccf7f0b7353e5e8ae214185486 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/Universal differ diff --git a/micromamba_root/share/zoneinfo/Etc/Zulu b/micromamba_root/share/zoneinfo/Etc/Zulu new file mode 100644 index 0000000000000000000000000000000000000000..00841a62213e6cccf7f0b7353e5e8ae214185486 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Etc/Zulu differ diff --git a/micromamba_root/share/zoneinfo/Europe/Amsterdam b/micromamba_root/share/zoneinfo/Europe/Amsterdam new file mode 100644 index 0000000000000000000000000000000000000000..31973271d2f87f7e9df4e8b0a1481f09a9e5407d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Amsterdam differ diff --git a/micromamba_root/share/zoneinfo/Europe/Andorra b/micromamba_root/share/zoneinfo/Europe/Andorra new file mode 100644 index 0000000000000000000000000000000000000000..38685d4219d244f56f665c8afb92eaa6737badb8 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Andorra differ diff --git a/micromamba_root/share/zoneinfo/Europe/Astrakhan b/micromamba_root/share/zoneinfo/Europe/Astrakhan new file mode 100644 index 0000000000000000000000000000000000000000..aff8d82d2a2de0857f78217cc9d04a112d1e1a08 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Astrakhan differ diff --git a/micromamba_root/share/zoneinfo/Europe/Athens b/micromamba_root/share/zoneinfo/Europe/Athens new file mode 100644 index 0000000000000000000000000000000000000000..231bf9c3b713e3676dbd8f3ced867973c601e104 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Athens differ diff --git a/micromamba_root/share/zoneinfo/Europe/Belfast b/micromamba_root/share/zoneinfo/Europe/Belfast new file mode 100644 index 0000000000000000000000000000000000000000..b9e95d92623c6cc4c35b16f7ceba3006f5ce4934 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Belfast differ diff --git a/micromamba_root/share/zoneinfo/Europe/Belgrade b/micromamba_root/share/zoneinfo/Europe/Belgrade new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Belgrade differ diff --git a/micromamba_root/share/zoneinfo/Europe/Berlin b/micromamba_root/share/zoneinfo/Europe/Berlin new file mode 100644 index 0000000000000000000000000000000000000000..465546bd396ae5eb75076f13ba9c29b0c926c835 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Berlin differ diff --git a/micromamba_root/share/zoneinfo/Europe/Bratislava b/micromamba_root/share/zoneinfo/Europe/Bratislava new file mode 100644 index 0000000000000000000000000000000000000000..fb7c145ac4c8ab8f39731e75db8c384b7dc4ee11 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Bratislava differ diff --git a/micromamba_root/share/zoneinfo/Europe/Brussels b/micromamba_root/share/zoneinfo/Europe/Brussels new file mode 100644 index 0000000000000000000000000000000000000000..31973271d2f87f7e9df4e8b0a1481f09a9e5407d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Brussels differ diff --git a/micromamba_root/share/zoneinfo/Europe/Bucharest b/micromamba_root/share/zoneinfo/Europe/Bucharest new file mode 100644 index 0000000000000000000000000000000000000000..c4a391e73b97e1342d352c5cc15a0bace202deef Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Bucharest differ diff --git a/micromamba_root/share/zoneinfo/Europe/Budapest b/micromamba_root/share/zoneinfo/Europe/Budapest new file mode 100644 index 0000000000000000000000000000000000000000..940be4670a64ece1265dd28523d78a80f9008dd2 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Budapest differ diff --git a/micromamba_root/share/zoneinfo/Europe/Busingen b/micromamba_root/share/zoneinfo/Europe/Busingen new file mode 100644 index 0000000000000000000000000000000000000000..388df2969f2dc56738183bd4f0d5755c4533a797 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Busingen differ diff --git a/micromamba_root/share/zoneinfo/Europe/Chisinau b/micromamba_root/share/zoneinfo/Europe/Chisinau new file mode 100644 index 0000000000000000000000000000000000000000..9152e68594bb66cc756e0407654a203952fbd4e5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Chisinau differ diff --git a/micromamba_root/share/zoneinfo/Europe/Copenhagen b/micromamba_root/share/zoneinfo/Europe/Copenhagen new file mode 100644 index 0000000000000000000000000000000000000000..465546bd396ae5eb75076f13ba9c29b0c926c835 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Copenhagen differ diff --git a/micromamba_root/share/zoneinfo/Europe/Dublin b/micromamba_root/share/zoneinfo/Europe/Dublin new file mode 100644 index 0000000000000000000000000000000000000000..17d2b1582df89d5794f20fb028956dd9da154922 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Dublin differ diff --git a/micromamba_root/share/zoneinfo/Europe/Gibraltar b/micromamba_root/share/zoneinfo/Europe/Gibraltar new file mode 100644 index 0000000000000000000000000000000000000000..017bb2e34746c8a11c6955d49cc492c974412801 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Gibraltar differ diff --git a/micromamba_root/share/zoneinfo/Europe/Guernsey b/micromamba_root/share/zoneinfo/Europe/Guernsey new file mode 100644 index 0000000000000000000000000000000000000000..b9e95d92623c6cc4c35b16f7ceba3006f5ce4934 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Guernsey differ diff --git a/micromamba_root/share/zoneinfo/Europe/Helsinki b/micromamba_root/share/zoneinfo/Europe/Helsinki new file mode 100644 index 0000000000000000000000000000000000000000..ff5e56530570974516d249927952c69da601b664 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Helsinki differ diff --git a/micromamba_root/share/zoneinfo/Europe/Isle_of_Man b/micromamba_root/share/zoneinfo/Europe/Isle_of_Man new file mode 100644 index 0000000000000000000000000000000000000000..b9e95d92623c6cc4c35b16f7ceba3006f5ce4934 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Isle_of_Man differ diff --git a/micromamba_root/share/zoneinfo/Europe/Istanbul b/micromamba_root/share/zoneinfo/Europe/Istanbul new file mode 100644 index 0000000000000000000000000000000000000000..c89186687300068ac4e8505cc0012a1dbf6a9960 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Istanbul differ diff --git a/micromamba_root/share/zoneinfo/Europe/Jersey b/micromamba_root/share/zoneinfo/Europe/Jersey new file mode 100644 index 0000000000000000000000000000000000000000..b9e95d92623c6cc4c35b16f7ceba3006f5ce4934 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Jersey differ diff --git a/micromamba_root/share/zoneinfo/Europe/Kaliningrad b/micromamba_root/share/zoneinfo/Europe/Kaliningrad new file mode 100644 index 0000000000000000000000000000000000000000..0ec475647055bd235131c6620aa46da7f43209ac Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Kaliningrad differ diff --git a/micromamba_root/share/zoneinfo/Europe/Kiev b/micromamba_root/share/zoneinfo/Europe/Kiev new file mode 100644 index 0000000000000000000000000000000000000000..753a6c86f38586797589233f4528837f5b09151c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Kiev differ diff --git a/micromamba_root/share/zoneinfo/Europe/Kirov b/micromamba_root/share/zoneinfo/Europe/Kirov new file mode 100644 index 0000000000000000000000000000000000000000..bfac56111d9cc81a93cce85205c685880433b96f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Kirov differ diff --git a/micromamba_root/share/zoneinfo/Europe/Kyiv b/micromamba_root/share/zoneinfo/Europe/Kyiv new file mode 100644 index 0000000000000000000000000000000000000000..753a6c86f38586797589233f4528837f5b09151c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Kyiv differ diff --git a/micromamba_root/share/zoneinfo/Europe/Lisbon b/micromamba_root/share/zoneinfo/Europe/Lisbon new file mode 100644 index 0000000000000000000000000000000000000000..7e9aae727b2b660e7f5e383121f445daf033a9c5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Lisbon differ diff --git a/micromamba_root/share/zoneinfo/Europe/Ljubljana b/micromamba_root/share/zoneinfo/Europe/Ljubljana new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Ljubljana differ diff --git a/micromamba_root/share/zoneinfo/Europe/London b/micromamba_root/share/zoneinfo/Europe/London new file mode 100644 index 0000000000000000000000000000000000000000..b9e95d92623c6cc4c35b16f7ceba3006f5ce4934 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/London differ diff --git a/micromamba_root/share/zoneinfo/Europe/Luxembourg b/micromamba_root/share/zoneinfo/Europe/Luxembourg new file mode 100644 index 0000000000000000000000000000000000000000..31973271d2f87f7e9df4e8b0a1481f09a9e5407d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Luxembourg differ diff --git a/micromamba_root/share/zoneinfo/Europe/Madrid b/micromamba_root/share/zoneinfo/Europe/Madrid new file mode 100644 index 0000000000000000000000000000000000000000..60bdf4d07e6ef544ff18013b272dfb851f1cc27c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Madrid differ diff --git a/micromamba_root/share/zoneinfo/Europe/Malta b/micromamba_root/share/zoneinfo/Europe/Malta new file mode 100644 index 0000000000000000000000000000000000000000..27539c2243ff2c6be1fe890995485be2df39bf77 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Malta differ diff --git a/micromamba_root/share/zoneinfo/Europe/Mariehamn b/micromamba_root/share/zoneinfo/Europe/Mariehamn new file mode 100644 index 0000000000000000000000000000000000000000..ff5e56530570974516d249927952c69da601b664 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Mariehamn differ diff --git a/micromamba_root/share/zoneinfo/Europe/Minsk b/micromamba_root/share/zoneinfo/Europe/Minsk new file mode 100644 index 0000000000000000000000000000000000000000..30d3a672bf64d0d787ac92bc75d9bc1cc62855c9 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Minsk differ diff --git a/micromamba_root/share/zoneinfo/Europe/Monaco b/micromamba_root/share/zoneinfo/Europe/Monaco new file mode 100644 index 0000000000000000000000000000000000000000..00a27264c2cb3e28f2f46e5c267e12d575236a9d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Monaco differ diff --git a/micromamba_root/share/zoneinfo/Europe/Moscow b/micromamba_root/share/zoneinfo/Europe/Moscow new file mode 100644 index 0000000000000000000000000000000000000000..5e6b6de6451b4408fb71ef73950712a0827d49a6 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Moscow differ diff --git a/micromamba_root/share/zoneinfo/Europe/Nicosia b/micromamba_root/share/zoneinfo/Europe/Nicosia new file mode 100644 index 0000000000000000000000000000000000000000..390347f442a486e296689c189e3346695bba5105 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Nicosia differ diff --git a/micromamba_root/share/zoneinfo/Europe/Oslo b/micromamba_root/share/zoneinfo/Europe/Oslo new file mode 100644 index 0000000000000000000000000000000000000000..465546bd396ae5eb75076f13ba9c29b0c926c835 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Oslo differ diff --git a/micromamba_root/share/zoneinfo/Europe/Paris b/micromamba_root/share/zoneinfo/Europe/Paris new file mode 100644 index 0000000000000000000000000000000000000000..00a27264c2cb3e28f2f46e5c267e12d575236a9d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Paris differ diff --git a/micromamba_root/share/zoneinfo/Europe/Podgorica b/micromamba_root/share/zoneinfo/Europe/Podgorica new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Podgorica differ diff --git a/micromamba_root/share/zoneinfo/Europe/Prague b/micromamba_root/share/zoneinfo/Europe/Prague new file mode 100644 index 0000000000000000000000000000000000000000..fb7c145ac4c8ab8f39731e75db8c384b7dc4ee11 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Prague differ diff --git a/micromamba_root/share/zoneinfo/Europe/Riga b/micromamba_root/share/zoneinfo/Europe/Riga new file mode 100644 index 0000000000000000000000000000000000000000..d99170b6420d4b91ec0c0e4652136f765974e0d8 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Riga differ diff --git a/micromamba_root/share/zoneinfo/Europe/Rome b/micromamba_root/share/zoneinfo/Europe/Rome new file mode 100644 index 0000000000000000000000000000000000000000..639ca3be4062496b10a8dee26be3733cf457fbdd Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Rome differ diff --git a/micromamba_root/share/zoneinfo/Europe/Samara b/micromamba_root/share/zoneinfo/Europe/Samara new file mode 100644 index 0000000000000000000000000000000000000000..8d0c26e5c85294b799e1f346994b04948d3175fe Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Samara differ diff --git a/micromamba_root/share/zoneinfo/Europe/San_Marino b/micromamba_root/share/zoneinfo/Europe/San_Marino new file mode 100644 index 0000000000000000000000000000000000000000..639ca3be4062496b10a8dee26be3733cf457fbdd Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/San_Marino differ diff --git a/micromamba_root/share/zoneinfo/Europe/Sarajevo b/micromamba_root/share/zoneinfo/Europe/Sarajevo new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Sarajevo differ diff --git a/micromamba_root/share/zoneinfo/Europe/Saratov b/micromamba_root/share/zoneinfo/Europe/Saratov new file mode 100644 index 0000000000000000000000000000000000000000..2684d8f8b89f7807ed4a0fcba89822b24a0166bb Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Saratov differ diff --git a/micromamba_root/share/zoneinfo/Europe/Simferopol b/micromamba_root/share/zoneinfo/Europe/Simferopol new file mode 100644 index 0000000000000000000000000000000000000000..298b8326ca7ab3e86b5f508fd06fc744b4a142f6 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Simferopol differ diff --git a/micromamba_root/share/zoneinfo/Europe/Skopje b/micromamba_root/share/zoneinfo/Europe/Skopje new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Skopje differ diff --git a/micromamba_root/share/zoneinfo/Europe/Sofia b/micromamba_root/share/zoneinfo/Europe/Sofia new file mode 100644 index 0000000000000000000000000000000000000000..89450685cd149950dc6d65d1b4f076d96c3dc9a0 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Sofia differ diff --git a/micromamba_root/share/zoneinfo/Europe/Stockholm b/micromamba_root/share/zoneinfo/Europe/Stockholm new file mode 100644 index 0000000000000000000000000000000000000000..465546bd396ae5eb75076f13ba9c29b0c926c835 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Stockholm differ diff --git a/micromamba_root/share/zoneinfo/Europe/Tallinn b/micromamba_root/share/zoneinfo/Europe/Tallinn new file mode 100644 index 0000000000000000000000000000000000000000..fbebdc6255b547b1f3a547f0f92cc8148f05f186 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Tallinn differ diff --git a/micromamba_root/share/zoneinfo/Europe/Tirane b/micromamba_root/share/zoneinfo/Europe/Tirane new file mode 100644 index 0000000000000000000000000000000000000000..743a7337ffd8c404d1da0d2d078ea1cd8459affe Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Tirane differ diff --git a/micromamba_root/share/zoneinfo/Europe/Tiraspol b/micromamba_root/share/zoneinfo/Europe/Tiraspol new file mode 100644 index 0000000000000000000000000000000000000000..9152e68594bb66cc756e0407654a203952fbd4e5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Tiraspol differ diff --git a/micromamba_root/share/zoneinfo/Europe/Ulyanovsk b/micromamba_root/share/zoneinfo/Europe/Ulyanovsk new file mode 100644 index 0000000000000000000000000000000000000000..bb842cb1f5087d422630f76f17c3a5eee6490a6b Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Ulyanovsk differ diff --git a/micromamba_root/share/zoneinfo/Europe/Uzhgorod b/micromamba_root/share/zoneinfo/Europe/Uzhgorod new file mode 100644 index 0000000000000000000000000000000000000000..753a6c86f38586797589233f4528837f5b09151c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Uzhgorod differ diff --git a/micromamba_root/share/zoneinfo/Europe/Vaduz b/micromamba_root/share/zoneinfo/Europe/Vaduz new file mode 100644 index 0000000000000000000000000000000000000000..388df2969f2dc56738183bd4f0d5755c4533a797 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Vaduz differ diff --git a/micromamba_root/share/zoneinfo/Europe/Vatican b/micromamba_root/share/zoneinfo/Europe/Vatican new file mode 100644 index 0000000000000000000000000000000000000000..639ca3be4062496b10a8dee26be3733cf457fbdd Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Vatican differ diff --git a/micromamba_root/share/zoneinfo/Europe/Vienna b/micromamba_root/share/zoneinfo/Europe/Vienna new file mode 100644 index 0000000000000000000000000000000000000000..75339e98d0a72f2792924294d7a9e560dba4648f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Vienna differ diff --git a/micromamba_root/share/zoneinfo/Europe/Vilnius b/micromamba_root/share/zoneinfo/Europe/Vilnius new file mode 100644 index 0000000000000000000000000000000000000000..43c3d7f1089366e1c48297906c2693712ac6d99c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Vilnius differ diff --git a/micromamba_root/share/zoneinfo/Europe/Volgograd b/micromamba_root/share/zoneinfo/Europe/Volgograd new file mode 100644 index 0000000000000000000000000000000000000000..0715d58bc1873c8bae589a08752cbbae562692c7 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Volgograd differ diff --git a/micromamba_root/share/zoneinfo/Europe/Warsaw b/micromamba_root/share/zoneinfo/Europe/Warsaw new file mode 100644 index 0000000000000000000000000000000000000000..efe1a40f2a8ffd499d22cd83e6b5df6c6c1e8e5c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Warsaw differ diff --git a/micromamba_root/share/zoneinfo/Europe/Zagreb b/micromamba_root/share/zoneinfo/Europe/Zagreb new file mode 100644 index 0000000000000000000000000000000000000000..a1bf9281ed1bc2c9b82ee64efdca60b4af762ede Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Zagreb differ diff --git a/micromamba_root/share/zoneinfo/Europe/Zaporozhye b/micromamba_root/share/zoneinfo/Europe/Zaporozhye new file mode 100644 index 0000000000000000000000000000000000000000..753a6c86f38586797589233f4528837f5b09151c Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Zaporozhye differ diff --git a/micromamba_root/share/zoneinfo/Europe/Zurich b/micromamba_root/share/zoneinfo/Europe/Zurich new file mode 100644 index 0000000000000000000000000000000000000000..388df2969f2dc56738183bd4f0d5755c4533a797 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Europe/Zurich differ diff --git a/micromamba_root/share/zoneinfo/Indian/Antananarivo b/micromamba_root/share/zoneinfo/Indian/Antananarivo new file mode 100644 index 0000000000000000000000000000000000000000..5f4ebcb7f9789c4ecda13ac66c2e768851113004 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Antananarivo differ diff --git a/micromamba_root/share/zoneinfo/Indian/Chagos b/micromamba_root/share/zoneinfo/Indian/Chagos new file mode 100644 index 0000000000000000000000000000000000000000..8b8ce226b6b7f67229577b837775e7d448348bde Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Chagos differ diff --git a/micromamba_root/share/zoneinfo/Indian/Christmas b/micromamba_root/share/zoneinfo/Indian/Christmas new file mode 100644 index 0000000000000000000000000000000000000000..ed687d2985c208171adcaa3401496b05325edca4 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Christmas differ diff --git a/micromamba_root/share/zoneinfo/Indian/Cocos b/micromamba_root/share/zoneinfo/Indian/Cocos new file mode 100644 index 0000000000000000000000000000000000000000..14b2ad09ead50a62d5e2b426396c51f9beb293be Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Cocos differ diff --git a/micromamba_root/share/zoneinfo/Indian/Comoro b/micromamba_root/share/zoneinfo/Indian/Comoro new file mode 100644 index 0000000000000000000000000000000000000000..5f4ebcb7f9789c4ecda13ac66c2e768851113004 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Comoro differ diff --git a/micromamba_root/share/zoneinfo/Indian/Kerguelen b/micromamba_root/share/zoneinfo/Indian/Kerguelen new file mode 100644 index 0000000000000000000000000000000000000000..58a82e4eb701ecb0413f908c57080646be392bba Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Kerguelen differ diff --git a/micromamba_root/share/zoneinfo/Indian/Mahe b/micromamba_root/share/zoneinfo/Indian/Mahe new file mode 100644 index 0000000000000000000000000000000000000000..58d75bc26eec90272e97696f40483eb56c2b8b45 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Mahe differ diff --git a/micromamba_root/share/zoneinfo/Indian/Maldives b/micromamba_root/share/zoneinfo/Indian/Maldives new file mode 100644 index 0000000000000000000000000000000000000000..58a82e4eb701ecb0413f908c57080646be392bba Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Maldives differ diff --git a/micromamba_root/share/zoneinfo/Indian/Mauritius b/micromamba_root/share/zoneinfo/Indian/Mauritius new file mode 100644 index 0000000000000000000000000000000000000000..7c1113488200c4d45ddb533bbebd899e2073f750 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Mauritius differ diff --git a/micromamba_root/share/zoneinfo/Indian/Mayotte b/micromamba_root/share/zoneinfo/Indian/Mayotte new file mode 100644 index 0000000000000000000000000000000000000000..5f4ebcb7f9789c4ecda13ac66c2e768851113004 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Mayotte differ diff --git a/micromamba_root/share/zoneinfo/Indian/Reunion b/micromamba_root/share/zoneinfo/Indian/Reunion new file mode 100644 index 0000000000000000000000000000000000000000..58d75bc26eec90272e97696f40483eb56c2b8b45 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Indian/Reunion differ diff --git a/micromamba_root/share/zoneinfo/Mexico/BajaNorte b/micromamba_root/share/zoneinfo/Mexico/BajaNorte new file mode 100644 index 0000000000000000000000000000000000000000..0d8c993bd1cf2fa2cbf002421ec9c0fb2b29645b Binary files /dev/null and b/micromamba_root/share/zoneinfo/Mexico/BajaNorte differ diff --git a/micromamba_root/share/zoneinfo/Mexico/BajaSur b/micromamba_root/share/zoneinfo/Mexico/BajaSur new file mode 100644 index 0000000000000000000000000000000000000000..5aa6039ea4cb36077f048782b54c6275c25e86b3 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Mexico/BajaSur differ diff --git a/micromamba_root/share/zoneinfo/Mexico/General b/micromamba_root/share/zoneinfo/Mexico/General new file mode 100644 index 0000000000000000000000000000000000000000..18112346129a885b5d5fa27109682b63784f72c0 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Mexico/General differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Apia b/micromamba_root/share/zoneinfo/Pacific/Apia new file mode 100644 index 0000000000000000000000000000000000000000..a6b835aab4c5e2e2a31bda0afdc8646b57d19a87 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Apia differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Auckland b/micromamba_root/share/zoneinfo/Pacific/Auckland new file mode 100644 index 0000000000000000000000000000000000000000..afb3929318475d4f0ea9d6c9e94d0f5f81d8b82e Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Auckland differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Bougainville b/micromamba_root/share/zoneinfo/Pacific/Bougainville new file mode 100644 index 0000000000000000000000000000000000000000..7c667093c50d33ce9161662a732fcf6c5092a38b Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Bougainville differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Chatham b/micromamba_root/share/zoneinfo/Pacific/Chatham new file mode 100644 index 0000000000000000000000000000000000000000..f06065ebd18315683f60cf87839d477a1d699f01 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Chatham differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Chuuk b/micromamba_root/share/zoneinfo/Pacific/Chuuk new file mode 100644 index 0000000000000000000000000000000000000000..5d8fc3a1b253d1df3a0184013469c6e46f6f6f75 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Chuuk differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Easter b/micromamba_root/share/zoneinfo/Pacific/Easter new file mode 100644 index 0000000000000000000000000000000000000000..54dff005b876339f5c1ff3dc0aeae1519c29b368 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Easter differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Efate b/micromamba_root/share/zoneinfo/Pacific/Efate new file mode 100644 index 0000000000000000000000000000000000000000..bf7471dd3fc26b7fba883acf0e0bf0a69687b31e Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Efate differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Enderbury b/micromamba_root/share/zoneinfo/Pacific/Enderbury new file mode 100644 index 0000000000000000000000000000000000000000..2b6a06088ef603f03fb482b628347ff72970fe3d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Enderbury differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Fakaofo b/micromamba_root/share/zoneinfo/Pacific/Fakaofo new file mode 100644 index 0000000000000000000000000000000000000000..b7b30213e154012a5275c1384b41dbff29860644 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Fakaofo differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Fiji b/micromamba_root/share/zoneinfo/Pacific/Fiji new file mode 100644 index 0000000000000000000000000000000000000000..610b850b1dec4966d570eb36f9a8b35fd6aacd68 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Fiji differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Funafuti b/micromamba_root/share/zoneinfo/Pacific/Funafuti new file mode 100644 index 0000000000000000000000000000000000000000..6bc216823e007c8dbdd6a5e8402b2e0cc5eaf3fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Funafuti differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Galapagos b/micromamba_root/share/zoneinfo/Pacific/Galapagos new file mode 100644 index 0000000000000000000000000000000000000000..a9403eca467d3b2ccf85b76bf2d94678a2ce3030 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Galapagos differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Gambier b/micromamba_root/share/zoneinfo/Pacific/Gambier new file mode 100644 index 0000000000000000000000000000000000000000..ddfc34ffc0971e01ec4f13b78ddfa40033853cd1 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Gambier differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Guadalcanal b/micromamba_root/share/zoneinfo/Pacific/Guadalcanal new file mode 100644 index 0000000000000000000000000000000000000000..720c679017404f9b9ecec0687c09a879abf6d256 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Guadalcanal differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Guam b/micromamba_root/share/zoneinfo/Pacific/Guam new file mode 100644 index 0000000000000000000000000000000000000000..bf9a2d955fc23bb6c2043472e8292d4adc20d4ed Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Guam differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Honolulu b/micromamba_root/share/zoneinfo/Pacific/Honolulu new file mode 100644 index 0000000000000000000000000000000000000000..40e3d492e6c22c30041c31f159d4fe0ee9451c03 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Honolulu differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Johnston b/micromamba_root/share/zoneinfo/Pacific/Johnston new file mode 100644 index 0000000000000000000000000000000000000000..40e3d492e6c22c30041c31f159d4fe0ee9451c03 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Johnston differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Kanton b/micromamba_root/share/zoneinfo/Pacific/Kanton new file mode 100644 index 0000000000000000000000000000000000000000..2b6a06088ef603f03fb482b628347ff72970fe3d Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Kanton differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Kiritimati b/micromamba_root/share/zoneinfo/Pacific/Kiritimati new file mode 100644 index 0000000000000000000000000000000000000000..2f676d3bf5c8599994bcabd402ca30efa4cde5dd Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Kiritimati differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Kosrae b/micromamba_root/share/zoneinfo/Pacific/Kosrae new file mode 100644 index 0000000000000000000000000000000000000000..f5d58242c8198bfd7139883e1299b0706704bd32 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Kosrae differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Kwajalein b/micromamba_root/share/zoneinfo/Pacific/Kwajalein new file mode 100644 index 0000000000000000000000000000000000000000..9416d522d0a3e19ab6b81317f5b94961c55e91fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Kwajalein differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Majuro b/micromamba_root/share/zoneinfo/Pacific/Majuro new file mode 100644 index 0000000000000000000000000000000000000000..6bc216823e007c8dbdd6a5e8402b2e0cc5eaf3fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Majuro differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Marquesas b/micromamba_root/share/zoneinfo/Pacific/Marquesas new file mode 100644 index 0000000000000000000000000000000000000000..6ea24b72cd9552c973510d1c17ace66fd35e1cc5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Marquesas differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Midway b/micromamba_root/share/zoneinfo/Pacific/Midway new file mode 100644 index 0000000000000000000000000000000000000000..001289ceecff85fe0d0f376a6bc394329445f13f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Midway differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Nauru b/micromamba_root/share/zoneinfo/Pacific/Nauru new file mode 100644 index 0000000000000000000000000000000000000000..ae13aac7792a04fe97b0a746f546e52d32f484c5 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Nauru differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Niue b/micromamba_root/share/zoneinfo/Pacific/Niue new file mode 100644 index 0000000000000000000000000000000000000000..be874e2472c2a79ed0d4de3011abd8831812911f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Niue differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Norfolk b/micromamba_root/share/zoneinfo/Pacific/Norfolk new file mode 100644 index 0000000000000000000000000000000000000000..0c0bdbda2a72022180bde561f6693268e27beb6b Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Norfolk differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Noumea b/micromamba_root/share/zoneinfo/Pacific/Noumea new file mode 100644 index 0000000000000000000000000000000000000000..824f814160ee4a95cc6a6d5553b3c1aacc907895 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Noumea differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Pago_Pago b/micromamba_root/share/zoneinfo/Pacific/Pago_Pago new file mode 100644 index 0000000000000000000000000000000000000000..001289ceecff85fe0d0f376a6bc394329445f13f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Pago_Pago differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Palau b/micromamba_root/share/zoneinfo/Pacific/Palau new file mode 100644 index 0000000000000000000000000000000000000000..bc8eb7a55b8a20a8c800507b620d0afef1d477a4 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Palau differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Pitcairn b/micromamba_root/share/zoneinfo/Pacific/Pitcairn new file mode 100644 index 0000000000000000000000000000000000000000..8a4ba4d30a6b7da8399f20a8b98c91169e04ae40 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Pitcairn differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Pohnpei b/micromamba_root/share/zoneinfo/Pacific/Pohnpei new file mode 100644 index 0000000000000000000000000000000000000000..720c679017404f9b9ecec0687c09a879abf6d256 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Pohnpei differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Ponape b/micromamba_root/share/zoneinfo/Pacific/Ponape new file mode 100644 index 0000000000000000000000000000000000000000..720c679017404f9b9ecec0687c09a879abf6d256 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Ponape differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Port_Moresby b/micromamba_root/share/zoneinfo/Pacific/Port_Moresby new file mode 100644 index 0000000000000000000000000000000000000000..5d8fc3a1b253d1df3a0184013469c6e46f6f6f75 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Port_Moresby differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Rarotonga b/micromamba_root/share/zoneinfo/Pacific/Rarotonga new file mode 100644 index 0000000000000000000000000000000000000000..7220bda0adb9f04d704cb893a5d1ee8bd9173b82 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Rarotonga differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Saipan b/micromamba_root/share/zoneinfo/Pacific/Saipan new file mode 100644 index 0000000000000000000000000000000000000000..bf9a2d955fc23bb6c2043472e8292d4adc20d4ed Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Saipan differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Samoa b/micromamba_root/share/zoneinfo/Pacific/Samoa new file mode 100644 index 0000000000000000000000000000000000000000..001289ceecff85fe0d0f376a6bc394329445f13f Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Samoa differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Tahiti b/micromamba_root/share/zoneinfo/Pacific/Tahiti new file mode 100644 index 0000000000000000000000000000000000000000..50a064fa0166a0dc22f89cdadf957a545d3f6544 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Tahiti differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Tarawa b/micromamba_root/share/zoneinfo/Pacific/Tarawa new file mode 100644 index 0000000000000000000000000000000000000000..6bc216823e007c8dbdd6a5e8402b2e0cc5eaf3fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Tarawa differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Tongatapu b/micromamba_root/share/zoneinfo/Pacific/Tongatapu new file mode 100644 index 0000000000000000000000000000000000000000..f28c8401845f84a68a46d45ec2f5b1383a0274b8 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Tongatapu differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Truk b/micromamba_root/share/zoneinfo/Pacific/Truk new file mode 100644 index 0000000000000000000000000000000000000000..5d8fc3a1b253d1df3a0184013469c6e46f6f6f75 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Truk differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Wake b/micromamba_root/share/zoneinfo/Pacific/Wake new file mode 100644 index 0000000000000000000000000000000000000000..6bc216823e007c8dbdd6a5e8402b2e0cc5eaf3fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Wake differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Wallis b/micromamba_root/share/zoneinfo/Pacific/Wallis new file mode 100644 index 0000000000000000000000000000000000000000..6bc216823e007c8dbdd6a5e8402b2e0cc5eaf3fc Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Wallis differ diff --git a/micromamba_root/share/zoneinfo/Pacific/Yap b/micromamba_root/share/zoneinfo/Pacific/Yap new file mode 100644 index 0000000000000000000000000000000000000000..5d8fc3a1b253d1df3a0184013469c6e46f6f6f75 Binary files /dev/null and b/micromamba_root/share/zoneinfo/Pacific/Yap differ diff --git a/micromamba_root/share/zoneinfo/US/Alaska b/micromamba_root/share/zoneinfo/US/Alaska new file mode 100644 index 0000000000000000000000000000000000000000..cdf0572be31d3052a98494e3d01802b83737f23c Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Alaska differ diff --git a/micromamba_root/share/zoneinfo/US/Aleutian b/micromamba_root/share/zoneinfo/US/Aleutian new file mode 100644 index 0000000000000000000000000000000000000000..b1497bda631efdcb6635ffb6b0ee6f7da9e2a280 Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Aleutian differ diff --git a/micromamba_root/share/zoneinfo/US/Arizona b/micromamba_root/share/zoneinfo/US/Arizona new file mode 100644 index 0000000000000000000000000000000000000000..c2bd2f949b248b835c98216b4dc66f9f6eb0265e Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Arizona differ diff --git a/micromamba_root/share/zoneinfo/US/Central b/micromamba_root/share/zoneinfo/US/Central new file mode 100644 index 0000000000000000000000000000000000000000..b016880653929aa40dd5ac0e82e4094a9d787cdf Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Central differ diff --git a/micromamba_root/share/zoneinfo/US/East-Indiana b/micromamba_root/share/zoneinfo/US/East-Indiana new file mode 100644 index 0000000000000000000000000000000000000000..6b08d15bdaba6cf94dcb2681887154f4d265d8ba Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/East-Indiana differ diff --git a/micromamba_root/share/zoneinfo/US/Eastern b/micromamba_root/share/zoneinfo/US/Eastern new file mode 100644 index 0000000000000000000000000000000000000000..2b6c2eea14df07392729ae9f5712a44ec4f02bae Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Eastern differ diff --git a/micromamba_root/share/zoneinfo/US/Hawaii b/micromamba_root/share/zoneinfo/US/Hawaii new file mode 100644 index 0000000000000000000000000000000000000000..40e3d492e6c22c30041c31f159d4fe0ee9451c03 Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Hawaii differ diff --git a/micromamba_root/share/zoneinfo/US/Indiana-Starke b/micromamba_root/share/zoneinfo/US/Indiana-Starke new file mode 100644 index 0000000000000000000000000000000000000000..b187d5f8c75685af67913e9360b50ecad19fe6ad Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Indiana-Starke differ diff --git a/micromamba_root/share/zoneinfo/US/Michigan b/micromamba_root/share/zoneinfo/US/Michigan new file mode 100644 index 0000000000000000000000000000000000000000..6eb3ac46ec56985b52488ae6a8d80247c2adcd4a Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Michigan differ diff --git a/micromamba_root/share/zoneinfo/US/Mountain b/micromamba_root/share/zoneinfo/US/Mountain new file mode 100644 index 0000000000000000000000000000000000000000..09e54e5c7c5bb2384e37626d4b985cfad29ed29b Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Mountain differ diff --git a/micromamba_root/share/zoneinfo/US/Pacific b/micromamba_root/share/zoneinfo/US/Pacific new file mode 100644 index 0000000000000000000000000000000000000000..aaf07787ad92b65eadae63b64bba290f9f961507 Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Pacific differ diff --git a/micromamba_root/share/zoneinfo/US/Samoa b/micromamba_root/share/zoneinfo/US/Samoa new file mode 100644 index 0000000000000000000000000000000000000000..001289ceecff85fe0d0f376a6bc394329445f13f Binary files /dev/null and b/micromamba_root/share/zoneinfo/US/Samoa differ diff --git a/micromamba_root/share/zoneinfo/build/etc/localtime b/micromamba_root/share/zoneinfo/build/etc/localtime new file mode 100644 index 0000000000000000000000000000000000000000..b4dd7735ed5b945e3403f2dd7cd57712dc9184d3 Binary files /dev/null and b/micromamba_root/share/zoneinfo/build/etc/localtime differ