[webkit-dev] GTK port of Webkit
darin at apple.com
Mon Feb 13 16:03:18 PST 2006
On Feb 13, 2006, at 11:51 AM, Krzysztof Kowalczyk wrote:
> 1. I think Darin is correct about USER_TIMER_MAXIMUM being Windows
> only. Looking at gtk source, it doesn't seem to have the equivalent -
> it'll accept any value. On windows, btw, it's #define
> USER_TIMER_MAXIMUM 0x7FFFFFFF.
Well, it will accept any guint value, but we need to check the double
to be sure it's no larger than the largest guint.
> 2. Shouldn't it be: static guint timerID = 0; ?
> Without initialization timerID will have a random value on startup.
No. In C, global variables get 0 automatically even if you don't
specify a value.
More information about the webkit-dev