Mail Archives: djgpp-workers/1998/02/02/13:30:24
On Mon, 2 Feb 1998, Robert Hoehne wrote:
> > Btw, Robert: does your gcc port includes protoize and unprotoize?
>
> Currently no. Are these usefull tools? What do they do?
`protoize' takes a K&R-style source which lacks prototypes and
generates a source where all function declarations and definitions
have ANSI prototypes. It is IMHO invaluable when you have an old
source which you must compile with -Wall to look for possible bugs or
unsafe code.
`unprotoize' does the opposite, which is nowadays not required too
much, since most compilers support ANSI prototypes.
The problem is that they won't work without porting due to the usual
filename-related hassles and binary vs text I/O problems (I once
ported an old version of them). Yet another item on my todo list,
sigh...
- Raw text -