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.4 by root, Sun Nov 11 04:08:00 2007 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
68 RETVAL = THIS->at; 68 RETVAL = THIS->at;
69 OUTPUT: 69 OUTPUT:
70 RETVAL 70 RETVAL
71 71
72IOM_CHAINED 72IOM_CHAINED
73timer::interval (NV interval) 73timer::interval (NV repeat)
74 CODE: 74 CODE:
75 THIS->interval = interval; 75 THIS->repeat = repeat;
76 OUTPUT: 76 OUTPUT:
77 RETVAL 77 RETVAL
78 78
79IOM_CHAINED 79IOM_CHAINED
80timer::set (NV tstamp) 80timer::set (NV tstamp)
82 THIS->set (tstamp); 82 THIS->set (tstamp);
83 OUTPUT: 83 OUTPUT:
84 RETVAL 84 RETVAL
85 85
86IOM_CHAINED 86IOM_CHAINED
87timer::start (NV tstamp = THIS->at) 87timer::start (NV tstamp = ev::now ())
88 CODE: 88 CODE:
89 THIS->start (tstamp); 89 THIS->start (tstamp - ev::now ());
90 OUTPUT: 90 OUTPUT:
91 RETVAL 91 RETVAL
92 92
93IOM_CHAINED 93IOM_CHAINED
94timer::after (NV delay) 94timer::after (NV delay)
95 CODE: 95 CODE:
96 THIS->start (NOW + delay); 96 THIS->start (delay);
97 OUTPUT: 97 OUTPUT:
98 RETVAL 98 RETVAL
99 99
100IOM_CHAINED 100IOM_CHAINED
101timer::stop () 101timer::stop ()

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines