2 # The PROTO macro is a subterfuge to be compatible with both ANSI and K&R
3 # declaration syntax. It's not widely known, so for the docn just map the
4 # thing to ANSI declaration syntax.
6 # First, join up defns broken across multiple lines in source---but leave
7 # any linebreaks, to prettify our examples
14 # Now actually do the PROTO interpretation.
15 # A PROTO invocation looks like
16 # PROTO( resulttype, function, (arglist));
17 s/[ ]*PROTO(\(.*\),[\n ]*\(.*\),[\n ]*\((.*)\));/\1 \2\3;/