Squashed 'external/capstone/' content from commit e46f64fa

git-subtree-dir: external/capstone
git-subtree-split: e46f64fadb351e9ecd05264fab26f2772feb0994
This commit is contained in:
2026-05-11 11:55:07 +02:00
commit 802798ce3c
3968 changed files with 2967598 additions and 0 deletions
+18
View File
@@ -0,0 +1,18 @@
# Copyright © 2024 Peace-Maker <peacemakerctf@gmail.com>
# SPDX-License-Identifier: BSD-3
# Compatibility header with pre v6 API
import capstone
import capstone.aarch64_const
setattr(capstone, "CS_ARCH_ARM64", capstone.CS_ARCH_AARCH64)
setattr(capstone, "__all__", getattr(capstone, "__all__") + ["CS_ARCH_ARM64"])
globals().update(
(name.replace("AARCH64", "ARM64"), getattr(capstone.aarch64_const, name))
for name in capstone.aarch64_const.__dict__
if name.startswith("AARCH64")
)
globals().update(
(name.replace("AArch64CC", "ARM64_CC"), getattr(capstone.aarch64_const, name))
for name in capstone.aarch64_const.__dict__
if name.startswith("AArch64CC")
)