ANSIfication patches

Thomas Dickey dickey at radix.net
Fri Feb 18 13:24:01 PST 2005


On Fri, Feb 18, 2005 at 04:20:55PM -0500, Adam Jackson wrote:
> 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 

mostly - but even non-API code has internal interfaces.

> (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...)

	http://invisible-island.net/ansification/index.html

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

-- 
Thomas E. Dickey
http://invisible-island.net
ftp://invisible-island.net
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 228 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20050218/dab32812/attachment.pgp>


More information about the xorg mailing list