# Get prototypes from a .c file
# $Id: makeintprotos-sed,v 1.1 1998/10/21 13:15:44 mason Exp $
# /* INTPROTO */   must be above return type which are above function.
#		Args are on one line
# eg.
# /* INTPROTO */
# void                           ------>   void main(int argc, char **argv);
# main(int argc, char **argv)
# {
# }
#
/^[/][*] INTPROTO [*][/]$/{
n
N
s/\n\([_a-zA-Z][_a-zA-Z0-9]* *\)(/ \1 __PROTO((/
s/$/);/
p
}
