File: make.function.prototypes

package info (click to toggle)
maradns 1.2.12.04-1etch2
  • links: PTS
  • area: main
  • in suites: etch
  • size: 6,676 kB
  • ctags: 2,176
  • sloc: ansic: 26,137; sh: 3,657; perl: 703; makefile: 622; python: 593; sql: 106; awk: 11
file content (12 lines) | stat: -rwxr-xr-x 217 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
#!/bin/bash

# Quick and dirty hack to make function prototypes

p() { grep \{ | perl -pe 's/\)/);/;s/\{//' ; }

grep ^int $1 | p
grep ^void $1 | p
grep ^js_string $1 | p
grep ^csv2_read $1 | p
grep ^unsigned $1 | p