Add functiopn prototype completions for valgrind --alloc-fn

darcs-hash:20060224135618-ac50b-bcd2fa57593f6a5c9f41b9513ac25f859baf1659.gz
This commit is contained in:
axel
2006-02-24 23:56:18 +10:00
parent 1075ca69b0
commit dad2b93d1e
2 changed files with 7 additions and 2 deletions

View File

@@ -0,0 +1,5 @@
function __fish_print_function_prototypes -d "Prints the names of all function prototypes found in the headers in the current directory"
cat *.h*|sed -n "s/^\(.*[^[a-zA-Z_0-9]\|\)\([a-zA-Z_][a-zA-Z_0-9]*\) *(.*);.*\$/\2/p"
end