ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/rxvt-unicode/src/iom_perl.xs
(Generate patch)

Comparing rxvt-unicode/src/iom_perl.xs (file contents):
Revision 1.3 by root, Thu Dec 14 17:33:53 2006 UTC vs.
Revision 1.6 by root, Sat Dec 26 09:23:53 2009 UTC

11 static const struct { 11 static const struct {
12 const char *name; 12 const char *name;
13 IV iv; 13 IV iv;
14 } *civ, iom_const_iv[] = { 14 } *civ, iom_const_iv[] = {
15# define iom_const_iv(name) { # name, (IV)name } 15# define iom_const_iv(name) { # name, (IV)name }
16 iom_const_iv (EVENT_NONE), 16 iom_const_iv (EV_NONE),
17 iom_const_iv (EVENT_READ), 17 iom_const_iv (EV_READ),
18 iom_const_iv (EVENT_WRITE), 18 iom_const_iv (EV_WRITE),
19# undef iom_const 19# undef iom_const
20 }; 20 };
21 21
22 for (civ = iom_const_iv + sizeof (iom_const_iv) / sizeof (iom_const_iv [0]); civ-- > iom_const_iv; ) 22 for (civ = iom_const_iv + sizeof (iom_const_iv) / sizeof (iom_const_iv [0]); civ-- > iom_const_iv; )
23 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv)); 23 newCONSTSUB (stash, (char *)civ->name, newSViv (civ->iv));
54 54
55SV * 55SV *
56timer::new () 56timer::new ()
57 CODE: 57 CODE:
58 timer *w = new timer; 58 timer *w = new timer;
59 w->start (NOW); 59 w->start (0);
60 RETVAL = newSVptr ((void *)(perl_watcher *)w, "IOM_CLASS::timer"); 60 RETVAL = newSVptr ((void *)(perl_watcher *)w, "IOM_CLASS::timer");
61 w->self = (HV *)SvRV (RETVAL); 61 w->self = (HV *)SvRV (RETVAL);
62 OUTPUT: 62 OUTPUT:
63 RETVAL 63 RETVAL
64 64
65# deprecated
65NV 66NV
66timer::at () 67timer::at ()
67 CODE: 68 CODE:
68 RETVAL = THIS->at; 69 RETVAL = THIS->remaining () + ev_now ();
69 OUTPUT: 70 OUTPUT:
70 RETVAL 71 RETVAL
71 72
72IOM_CHAINED 73IOM_CHAINED
73timer::interval (NV interval) 74timer::interval (NV repeat)
74 CODE: 75 CODE:
75 THIS->interval = interval; 76 THIS->repeat = repeat;
76 OUTPUT: 77 OUTPUT:
77 RETVAL 78 RETVAL
78 79
79IOM_CHAINED 80IOM_CHAINED
80timer::set (NV tstamp) 81timer::set (NV tstamp, NV repeat = THIS->repeat)
81 CODE: 82 CODE:
82 THIS->set (tstamp); 83 THIS->set (tstamp, repeat);
83 OUTPUT: 84 OUTPUT:
84 RETVAL 85 RETVAL
85 86
86IOM_CHAINED 87IOM_CHAINED
87timer::start (NV tstamp = THIS->at) 88timer::start (NV tstamp = ev::now (), NV repeat = THIS->repeat)
88 CODE: 89 CODE:
89 THIS->start (tstamp); 90 THIS->start (tstamp - ev::now (), repeat);
90 OUTPUT: 91 OUTPUT:
91 RETVAL 92 RETVAL
92 93
93IOM_CHAINED 94IOM_CHAINED
94timer::after (NV delay) 95timer::after (NV delay, NV repeat = THIS->repeat)
95 CODE: 96 CODE:
96 THIS->start (NOW + delay); 97 THIS->start (delay, repeat);
97 OUTPUT: 98 OUTPUT:
98 RETVAL 99 RETVAL
99 100
100IOM_CHAINED 101IOM_CHAINED
101timer::stop () 102timer::stop ()
212 CODE: 213 CODE:
213 THIS->stop (); 214 THIS->stop ();
214 OUTPUT: 215 OUTPUT:
215 RETVAL 216 RETVAL
216 217
218int
219pw::rpid ()
220 CODE:
221 RETVAL = THIS->rpid;
222 OUTPUT:
223 RETVAL
224
225int
226pw::rstatus ()
227 CODE:
228 RETVAL = THIS->rstatus;
229 OUTPUT:
230 RETVAL
231
217void 232void
218pw::DESTROY () 233pw::DESTROY ()
219 234
220 235

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines