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

Comparing EV/EV.xs (file contents):
Revision 1.180 by root, Wed Jan 22 23:17:31 2020 UTC vs.
Revision 1.183 by root, Wed Aug 16 16:03:37 2023 UTC

21# define GvCV_set(gv,cv) GvCV (gv) = cv 21# define GvCV_set(gv,cv) GvCV (gv) = cv
22#endif 22#endif
23 23
24#if EV_ENABLE_ASSERTIONS 24#if EV_ENABLE_ASSERTIONS
25# undef NDEBUG 25# undef NDEBUG
26# include <assert.h> 26#else
27# define NDEBUG 1
27#endif 28#endif
29
30/* make sure we get a real assert, not perl's incompatible version */
31#undef assert
32#include <assert.h>
28 33
29#define EV_STANDALONE 1 34#define EV_STANDALONE 1
30#define EV_PROTOTYPES 1 35#define EV_PROTOTYPES 1
31#define EV_USE_NANOSLEEP EV_USE_MONOTONIC 36#define EV_USE_NANOSLEEP EV_USE_MONOTONIC
32#define EV_USE_FLOOR 1 37#define EV_USE_FLOOR 1
1265 1270
1266MODULE = EV PACKAGE = EV::Child PREFIX = ev_child_ 1271MODULE = EV PACKAGE = EV::Child PREFIX = ev_child_
1267 1272
1268#if EV_CHILD_ENABLE 1273#if EV_CHILD_ENABLE
1269 1274
1275void ev_child_reinit ()
1276 CODE:
1277 ev_signal_stop (evapi.default_loop, &childev);
1278 ev_signal_start (evapi.default_loop, &childev);
1279
1270void ev_child_start (ev_child *w) 1280void ev_child_start (ev_child *w)
1271 CODE: 1281 CODE:
1272 START (child, w); 1282 START (child, w);
1273 1283
1274void ev_child_stop (ev_child *w) 1284void ev_child_stop (ev_child *w)
1320} 1330}
1321 1331
1322SV *path (ev_stat *w, SV *new_path = NO_INIT) 1332SV *path (ev_stat *w, SV *new_path = NO_INIT)
1323 CODE: 1333 CODE:
1324{ 1334{
1325 RETVAL = e_fh (w) ? e_fh (w) : &PL_sv_undef; 1335 RETVAL = e_fh (w) ? newSVsv (e_fh (w)) : &PL_sv_undef;
1326 1336
1327 if (items > 1) 1337 if (items > 1)
1328 { 1338 {
1329 sv_2mortal (RETVAL); 1339 sv_2mortal (e_fh (w));
1330 e_fh (w) = newSVsv (new_path); 1340 e_fh (w) = newSVsv (new_path);
1331 RESET (stat, w, (w, SvPVbyte_nolen (e_fh (w)), w->interval)); 1341 RESET (stat, w, (w, SvPVbyte_nolen (e_fh (w)), w->interval));
1332 } 1342 }
1333} 1343}
1334 OUTPUT: 1344 OUTPUT:

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines