ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/Coro/EV/EV.xs
(Generate patch)

Comparing Coro/EV/EV.xs (file contents):
Revision 1.19 by root, Sat Nov 15 06:26:52 2008 UTC vs.
Revision 1.20 by root, Sat Nov 15 18:40:55 2008 UTC

86 return 0; 86 return 0;
87 } 87 }
88} 88}
89 89
90static void 90static void
91slf_init_timed_io (aTHX_ struct CoroSLF *frame, SV **arg, int items) 91slf_init_timed_io (pTHX_ struct CoroSLF *frame, SV **arg, int items)
92{ 92{
93 SV *data; 93 SV *data;
94 94
95 if (items < 2 || items > 3) 95 if (items < 2 || items > 3)
96 croak ("Coro::EV::timed_io_once requires exactly two or three parameters, not %d.\n", items); 96 croak ("Coro::EV::timed_io_once requires exactly two or three parameters, not %d.\n", items);
109 data 109 data
110 ); 110 );
111} 111}
112 112
113static void 113static void
114slf_init_timer (aTHX_ struct CoroSLF *frame, SV **arg, int items) 114slf_init_timer (pTHX_ struct CoroSLF *frame, SV **arg, int items)
115{ 115{
116 SV *data; 116 SV *data;
117 NV after; 117 NV after;
118 118
119 if (items != 1) 119 if (items != 1)
203 return 0; 203 return 0;
204 } 204 }
205} 205}
206 206
207static void 207static void
208slf_init_rw (aTHX_ struct CoroSLF *frame, SV *arg, int wr) 208slf_init_rw (pTHX_ struct CoroSLF *frame, SV *arg, int wr)
209{ 209{
210 AV *handle = (AV *)SvRV (arg); 210 AV *handle = (AV *)SvRV (arg);
211 SV *data_sv = AvARRAY (handle)[5]; 211 SV *data_sv = AvARRAY (handle)[5];
212 coro_handle *data; 212 coro_handle *data;
213 coro_dir *dir; 213 coro_dir *dir;
255 frame->prepare = GCoroAPI->prepare_schedule; 255 frame->prepare = GCoroAPI->prepare_schedule;
256 frame->check = slf_check_rw; 256 frame->check = slf_check_rw;
257} 257}
258 258
259static void 259static void
260slf_init_readable (aTHX_ struct CoroSLF *frame, SV **arg, int items) 260slf_init_readable (pTHX_ struct CoroSLF *frame, SV **arg, int items)
261{ 261{
262 slf_init_rw (aTHX_ frame, arg [0], 0); 262 slf_init_rw (aTHX_ frame, arg [0], 0);
263} 263}
264 264
265static void 265static void
266slf_init_writable (aTHX_ struct CoroSLF *frame, SV **arg, int items) 266slf_init_writable (pTHX_ struct CoroSLF *frame, SV **arg, int items)
267{ 267{
268 slf_init_rw (aTHX_ frame, arg [0], 1); 268 slf_init_rw (aTHX_ frame, arg [0], 1);
269} 269}
270 270
271/*****************************************************************************/ 271/*****************************************************************************/

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines