unproto
/lib/cpp ... | unproto /somewhere/cpp ...
For maximal flexibility, the "cpp | unproto" pipeline can be packaged as an executable shell script named "/somewhere/cpp". This script should then be specified to the C compiler as a non-default preprocessor.
The overhead of shell script interpretation can be avoided by having the unprototyper itself open the pipe to the preprocessor. In that case, the source should be compiled with the PIPE_THROUGH_CPP macro defined (usually as "/lib/cpp"), and the resulting binary should be installed as "/somewhere/cpp".
Some versions of the lint command are implemented as a shell script. It should require only minor modification for integration with the unprotoizer. Other versions of the lint command accept the same command syntax as the C compiler for the specification of a non-default preprocessor. Some research may be needed.
Declarations of (whatever) are misunderstood and will result in syntax errors.
Does not generate explicit type casts for function argument expressions.
Wietse Venema (wietse@wzv.win.tue.nl) Eindhoven University of Technology Department of Mathematics and Computer Science Den Dolech 2, P.O. Box 513, 5600 MB Eindhoven, The Netherlands
91/09/22 21:21:35
1.2