[comp.lang.c] ANSI C to 'OLD' C

csko@cybaswan.UUCP (y w ko) (02/17/91)

Hi,
	I would be most grateful if someone could help me get hold
of a utility to convert 'C' source written with ANSI style
function prototypes to old style 'C'. I seem to remember
vaguely that there is something called 'unproto' which does
what I want.
	By the way, apart from GCC or Cfront (well, or using the above
mentioned utility), is that any other means of compiling 'C' 
code with function prototypes on the SUN's.
	Thanks in Advance!

						ywko

fischer@iesd.auc.dk (Lars P. Fischer) (02/19/91)

>>>>> On 17 Feb 91 12:10:43 GMT, csko@cybaswan.UUCP (y w ko) said:

csko> 	I would be most grateful if someone could help me get hold
csko> of a utility to convert 'C' source written with ANSI style
csko> function prototypes to old style 'C'.

You need protoize. It will convert K&R C to ANSI C and ANSI C to K&R
C. Protoize makes use of the parser from GCC. This means that the
protoize source code is a patch to GCC. You will need both the GCC and
the protoize source in order to compile it. Both are found at
prep.ai.mit.edu.

csko> 	By the way, apart from GCC or Cfront (well, or using the above
csko> mentioned utility), is that any other means of compiling 'C' 
csko> code with function prototypes on the SUN's.

GCC is the most readily available ANSI C compiler for Sun's. Why not
get it? installation on a Sun is no hassle at all, and the price is
right :-).

/Lars
--
Lars Fischer,  fischer@iesd.auc.dk   | Beauty is a French phonetic corruption
CS Dept., Univ. of Aalborg, DENMARK. |                   - FZ

dave@cs.arizona.edu (Dave P. Schaumann) (02/19/91)

In article <FISCHER.91Feb18171202@thiele.iesd.auc.dk> fischer@iesd.auc.dk (Lars P. Fischer) writes:
|>>>>> On 17 Feb 91 12:10:43 GMT, csko@cybaswan.UUCP (y w ko) said:
|
|csko| 	I would be most grateful if someone could help me get hold
|csko| of a utility to convert 'C' source written with ANSI style
|csko| function prototypes to old style 'C'.
|
|You need protoize. It will convert K&R C to ANSI C and ANSI C to K&R
|C. Protoize makes use of the parser from GCC. This means that the
|protoize source code is a patch to GCC. You will need both the GCC and
|the protoize source in order to compile it. Both are found at
|prep.ai.mit.edu.

Isn't this Q & A in the FAQ list?  If it isn't, it should be...
-- 
Dave Schaumann      | Is this question undecidable?
dave@cs.arizona.edu |