ANSIfication patches
Glynn Clements
glynn at gclements.plus.com
Tue Feb 22 18:23:13 PST 2005
Adam Jackson wrote:
> 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...)
When you pass an argument whose type isn't specified by the function's
prototype (i.e. it doesn't have a prototype or is variadic), char and
short values are promoted to int, float is promoted to double, and
everything else (int, long, double) is left as-is.
--
Glynn Clements <glynn at gclements.plus.com>
More information about the xorg
mailing list