tzcode2007h.tar.gz - Functions defined with prototypes and C99 features?

Bradley White bww at acm.org
Wed Nov 7 23:25:55 UTC 2007


On Tue, 06 Nov 2007 09:47:15 -0800 Jonathan Leffler wrote:
>
> static int differ_by_repeat(time_t t1, time_t t0);
>
> static int
> differ_by_repeat(t1, t0)
> const time_t    t1;
> const time_t    t0;
> { ... }
>
> Which illustrates several points - one being the prevalent use of const in
> the function definitions that doesn't necessarily appear in the prototype.

This is a feature ... top-level constness is the business of the definition,
not the declaration.



More information about the tz mailing list