# Get prototypes from a .c file
# $Id: makeprotos-sed,v 1.1.1.1 2001/03/11 07:50:05 sashav Exp $
# /* PROTO */   must be above return type which are above function.
#		Args are on one line
# eg.
# /* PROTO */
# void                           ------>   void main(int argc, char **argv);
# main(int argc, char **argv)
# {
# }
#
/^[/][*] PROTO [*][/]$/{
n
N
s/\n\([_a-zA-Z][_a-zA-Z0-9]* *\)(/ \1 __PROTO((/
s/$/);/
p
}
