Skip to content

Commit

Permalink
bindings: update const_generator.py
Browse files Browse the repository at this point in the history
  • Loading branch information
XVilka committed Dec 20, 2024
1 parent 041a088 commit b7e6cc7
Showing 1 changed file with 12 additions and 2 deletions.
14 changes: 12 additions & 2 deletions bindings/const_generator.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,11 +70,12 @@
'header': "(* For Capstone Engine. AUTO-GENERATED FILE, DO NOT EDIT [%s_const.ml] *)\n",
'footer': "",
'line_format': 'let _%s = %s;;\n',
'out_file': './ocaml/%s_const.ml',
'out_file': './ocaml/src/%s_const.ml',
# prefixes for constant filenames of all archs - case sensitive
'arm.h': 'arm',
'mips.h': 'mips',
'aarch64.h': ['AArch64', 'AARCH64'],
'm68k.h': 'm68k',
'mips.h': 'mips',
'x86.h': 'x86',
'ppc.h': 'ppc',
'sparc.h': 'sparc',
Expand All @@ -84,6 +85,15 @@
'm680x.h': 'm680x',
'evm.h': 'evm',
'wasm.h': 'wasm',
'mos65xx.h': 'mos65xx',
'bpf.h': 'bpf',
'riscv.h': 'riscv',
'sh.h': 'sh',
'tricore.h': ['TRICORE', 'TriCore'],
'alpha.h': ['ALPHA', 'Alpha'],
'hppa.h': 'hppa',
'loongarch.h': 'loongarch',
'xtensa.h': 'xtensa',
'comment_open': '(*',
'comment_close': ' *)',
},
Expand Down

0 comments on commit b7e6cc7

Please sign in to comment.