From a5bc710d0826d2d2f035239c3cd633f37563e96e Mon Sep 17 00:00:00 2001 From: Simon Gorchakov Date: Sun, 10 May 2020 22:35:47 +0300 Subject: [PATCH] Add python bindings and test --- bindings/const_generator.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bindings/const_generator.py b/bindings/const_generator.py index daa18f0d..c1ad6b26 100644 --- a/bindings/const_generator.py +++ b/bindings/const_generator.py @@ -6,7 +6,7 @@ import sys, re, os INCL_DIR = os.path.join('..', 'include', 'unicorn') -include = [ 'arm.h', 'arm64.h', 'mips.h', 'x86.h', 'sparc.h', 'm68k.h', 'unicorn.h' ] +include = [ 'arm.h', 'arm64.h', 'mips.h', 'x86.h', 'sparc.h', 'm68k.h', 'ppc.h', 'unicorn.h' ] template = { 'python': { @@ -21,6 +21,7 @@ template = { 'x86.h': 'x86', 'sparc.h': 'sparc', 'm68k.h': 'm68k', + 'ppc.h': 'ppc', 'unicorn.h': 'unicorn', 'comment_open': '#', 'comment_close': '', @@ -37,6 +38,7 @@ template = { 'x86.h': 'x86', 'sparc.h': 'sparc', 'm68k.h': 'm68k', + 'ppc.h': 'ppc', 'unicorn.h': 'unicorn', 'comment_open': '#', 'comment_close': '', @@ -53,6 +55,7 @@ template = { 'x86.h': 'x86', 'sparc.h': 'sparc', 'm68k.h': 'm68k', + 'ppc.h': 'ppc', 'unicorn.h': 'unicorn', 'comment_open': '//', 'comment_close': '', @@ -69,6 +72,7 @@ template = { 'x86.h': 'X86', 'sparc.h': 'Sparc', 'm68k.h': 'M68k', + 'ppc.h': 'ppc', 'unicorn.h': 'Unicorn', 'comment_open': '//', 'comment_close': '', @@ -85,6 +89,7 @@ template = { 'x86.h': 'X86', 'sparc.h': 'Sparc', 'm68k.h': 'M68k', + 'ppc.h': 'ppc', 'unicorn.h': 'Common', 'comment_open': ' //', 'comment_close': '', @@ -101,6 +106,7 @@ template = { 'x86.h': 'X86', 'sparc.h': 'Sparc', 'm68k.h': 'M68k', + 'ppc.h': 'ppc', 'unicorn.h': 'Unicorn', 'comment_open': '//', 'comment_close': '',