Warren Turkal wrote (in a message from Tuesday 9)
> When ansifying from K&R code, which order should the arguments come in?
>
> K&R code:
> int
> blah(x, y)
> float y;
> int x;
> { ... }
>
> Does the K&R code go to (1) or (2)?
> (1)
> int
> blah(int x, float y)
> { ... }
>
> (2)
> int
> blah(float y, int x)
> { ... }
>
> I am guessing that (1) is the correct answer.
Yes. And this is a trap doing conversions semi-automatically. One need
to be careful.
>
> Also, can you have K&R and ansi function definitions in the same file?
Yes, you can. But if you are converting existing code to ANSI
prototypes, try to be complete :)
Matthieu
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel