diff options
author | axel <axel@liljencrantz.se> | 2006-02-24 23:56:18 +1000 |
---|---|---|
committer | axel <axel@liljencrantz.se> | 2006-02-24 23:56:18 +1000 |
commit | dad2b93d1efe2e3827b6f9063391070fb9ffbe14 (patch) | |
tree | 259152f0f5008020afe45c29f9c7debc399fee96 /share/functions/__fish_print_function_prototypes.fish | |
parent | 1075ca69b0ef393b78952c0de639252fb70d559d (diff) |
Add functiopn prototype completions for valgrind --alloc-fn
darcs-hash:20060224135618-ac50b-bcd2fa57593f6a5c9f41b9513ac25f859baf1659.gz
Diffstat (limited to 'share/functions/__fish_print_function_prototypes.fish')
-rw-r--r-- | share/functions/__fish_print_function_prototypes.fish | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/share/functions/__fish_print_function_prototypes.fish b/share/functions/__fish_print_function_prototypes.fish new file mode 100644 index 00000000..14871352 --- /dev/null +++ b/share/functions/__fish_print_function_prototypes.fish @@ -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 + |