On Tue, 9 Sep 2003, Matthieu Herrb wrote:

> Yes. And this is a trap doing conversions semi-automatically. One need
> to be careful.

That sort of thing is usually caught by compiler warnings.  One that isn't
is changing the type, e.g.,

        int foo(x, y)
                char x;
                int y;

        int foo(char x, int y);         /* incorrect */
        int foo(int x, int x);          /* correct */

I have some notes here:

        http://dickey.his.com/ansification/index.html

>  >
>  > 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
>

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
_______________________________________________
Devel mailing list
[EMAIL PROTECTED]
http://XFree86.Org/mailman/listinfo/devel

Reply via email to