3 # Goes through the input line by line to find K&R style function
4 # declarations, and replaces them with ANSI style declarations.
8 for ($i = 0; $i < @blah; $i++)
10 if ($blah[$i] =~ /^([a-zA-Z_0-9]+)\s*\([^)]+\)\s*$/)
14 $blah[$funci]="$name (";
17 while ($lastline < @blah && $blah[$lastline] !~ /^{/)
22 while ($i < @blah && $blah[$i] !~ /^{/)
34 $blah[$funci] = "$blah[$funci]" . "$arg";
37 $blah[$funci] = "$blah[$funci]" . ")\n";
41 for ($i = 0; $i < @blah; $i++)