Z
Zach
I am looking for a program which can automatically convert K&R C code
to ANSI C code.
Zach
to ANSI C code.
Zach
protoize, comes with gccZach said:I am looking for a program which can automatically convert K&R C code
to ANSI C code.
Zach said:I am looking for a program which can automatically convert K&R C code
to ANSI C code.
Joachim Schmitz said:protoize, comes with gcc
When I first noticed protoize, I found that it would change the
default type promotions. Checking now, I see this is still the
case:
int foobar(a,b)
char a;
short b;
{
return a * b;
}
becomes (with protoize)
int foobar(char a, short int b)
{
return a * b;
}
where cproto will give
int foobar(int a, int b);
When I first noticed protoize, I found that it would change the
default type promotions. Checking now, I see this is still the
case:
int foobar(a,b)
char a;
short b;
{
return a * b;
}
becomes (with protoize)
int foobar(char a, short int b)
{
return a * b;
}
where cproto will give
int foobar(int a, int b);
Want to reply to this thread or ask your own question?
You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.