mirror of
https://github.com/radareorg/radare2.git
synced 2024-12-05 03:56:46 +00:00
d6125712b5
* Merge r_macro inside r_cmd - Rename RCommand to RCmd * Propagate LIL_ENDIAN in userconf.h.acr * Simplify configure script in swig/ - valaswig is now mandatory * Add 'st.fastcall' examples. --HG-- rename : libr/macro/macro.c => libr/cmd/macro.c
16 lines
323 B
Bash
Executable File
16 lines
323 B
Bash
Executable File
#!/bin/sh
|
|
if [ -z "$1" ]; then
|
|
echo "Usage: rapi-list [modname] # modname can be 'r_asm', 'r_bin' ..."
|
|
exit 1
|
|
fi
|
|
|
|
MOD=$1
|
|
cat libr/include/${MOD}.h | \
|
|
grep ^R_API | \
|
|
sed -e 's,const ,,g' | \
|
|
sed -e 's,struct ,,g' | \
|
|
sed -e 's,\*,,g' | \
|
|
cut -d '(' -f 1 | \
|
|
awk '{ print $3 }' | \
|
|
sed -e "s,^${MOD}_,,"
|