radare2/mk/rapi-list
pancake d6125712b5 * Add some missing methods in some vapis for valaswig
* 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
2010-03-18 22:22:21 +01:00

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}_,,"