ANSIfication patches

Adam Jackson ajax at nwnk.net
Fri Feb 18 13:20:55 PST 2005


There are a few patches sitting in bugzilla regarding converting old ugly 
K&R-style code to ANSI:

https://bugs.freedesktop.org/show_bug.cgi?id=2560
https://bugs.freedesktop.org/show_bug.cgi?id=2566

What are the issues to look out for here?  Can we pretty much assume that 
non-API code is safe to convert and that the only dangerous areas would be 
(say) Xlib?  And how does the implicit argument passing convention for K&R 
differ from ANSI?  (Probably assumes 32-bit width everywhere, which really 
only matters for float/double...)

I'd really like for gcc to never tell me "function declaration is not a 
prototype" ever again.

- ajax
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050218/4903f28f/attachment.pgp>


More information about the xorg mailing list