… | |
… | |
24 | #undef readdir |
24 | #undef readdir |
25 | #undef getprotobyname |
25 | #undef getprotobyname |
26 | #undef gethostbyname |
26 | #undef gethostbyname |
27 | #undef ctime |
27 | #undef ctime |
28 | #undef strerror |
28 | #undef strerror |
|
|
29 | |
|
|
30 | // same here, massive symbol spamming |
|
|
31 | #undef do_open |
|
|
32 | #undef do_close |
29 | |
33 | |
30 | // perl bug #40256: perl does overwrite those with reentrant versions |
34 | // perl bug #40256: perl does overwrite those with reentrant versions |
31 | // but does not initialise their state structures. |
35 | // but does not initialise their state structures. |
32 | #undef random |
36 | #undef random |
33 | #undef crypt |
37 | #undef crypt |
… | |
… | |
355 | |
359 | |
356 | private: |
360 | private: |
357 | void cancel () { GEventAPI->cancel ((pe_watcher *)pe); } // private |
361 | void cancel () { GEventAPI->cancel ((pe_watcher *)pe); } // private |
358 | }; |
362 | }; |
359 | |
363 | |
|
|
364 | struct iw : watcher<pe_idle>, callback<void (iw &)> |
|
|
365 | { |
|
|
366 | template<class O, class M> |
|
|
367 | iw (O object, M method) |
|
|
368 | : callback<void (iw &)> (object, method) |
|
|
369 | { |
|
|
370 | alloc (); |
|
|
371 | } |
|
|
372 | |
|
|
373 | private: |
|
|
374 | void alloc (); |
|
|
375 | }; |
|
|
376 | |
360 | struct iow : watcher<pe_io>, callback<void (iow &, int)> |
377 | struct iow : watcher<pe_io>, callback<void (iow &, int)> |
361 | { |
378 | { |
362 | template<class O, class M> |
379 | template<class O, class M> |
363 | iow (O object, M method) |
380 | iow (O object, M method) |
364 | : callback<void (iow &, int)> (object, method) |
381 | : callback<void (iow &, int)> (object, method) |
365 | { |
382 | { |
366 | alloc (); |
383 | alloc (); |
367 | } |
384 | } |
368 | |
385 | |
369 | iow &fd (int fd); |
386 | void fd (int fd); |
370 | int poll (); |
387 | int poll (); |
371 | iow &poll (int events); |
388 | void poll (int events); |
372 | |
389 | |
373 | private: |
390 | private: |
374 | void alloc (); |
391 | void alloc (); |
375 | }; |
392 | }; |
376 | |
393 | |