File: list_capstone_functions.sh

package info (click to toggle)
rust-capstone-sys 0.17.0-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 44,524 kB
  • sloc: ansic: 70,376; cs: 18,890; pascal: 14,893; java: 14,778; ml: 13,672; python: 6,145; makefile: 1,172; sh: 532; cpp: 285
file content (12 lines) | stat: -rwxr-xr-x 274 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/sh
#
# Lists capstone types from capstone includes (enums and structs)

set -eu

SCRIPT_DIR="$(dirname "$0")"
CAPSTONE_INCLUDE="$SCRIPT_DIR/../capstone/include"

grep -A1 '^CAPSTONE_EXPORT' "$CAPSTONE_INCLUDE"/capstone.h \
    | grep -oE '[^( ]+\(' \
    | tr -d '('