#endif
}
-int
+unsigned int
ev_method (EV_P)
{
return method;
now_floor = mn_now;
rtmn_diff = ev_rt_now - mn_now;
- if (!(flags & EVMETHOD_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
+ if (!(flags & EVFLAG_NOENV) && !enable_secure () && getenv ("LIBEV_FLAGS"))
flags = atoi (getenv ("LIBEV_FLAGS"));
if (!(flags & 0x0000ffff))
#else
int
#endif
-ev_default_loop (unsigned int methods)
+ev_default_loop (unsigned int flags)
{
if (sigpipe [0] == sigpipe [1])
if (pipe (sigpipe))
default_loop = 1;
#endif
- loop_init (EV_A_ methods);
+ loop_init (EV_A_ flags);
if (ev_method (EV_A))
{
ev_timer_stop (EV_A_ w);
}
else if (w->repeat)
- ev_timer_start (EV_A_ w);
+ {
+ w->at = w->repeat;
+ ev_timer_start (EV_A_ w);
+ }
}
#if EV_PERIODICS