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

Comparing EV/typemap (file contents):
Revision 1.4 by root, Sun Oct 28 09:39:18 2007 UTC vs.
Revision 1.9 by root, Wed Oct 31 19:07:43 2007 UTC

1Base T_BASE 1Signal T_SIGNAL
2Event T_EVENT
3 2
4/* for 5.6 compatibility */ 3struct ev_watcher * T_WATCHER
4struct ev_io * T_WATCHER
5struct ev_time * T_WATCHER
6struct ev_timer * T_WATCHER
7struct ev_periodic * T_WATCHER
8struct ev_signal * T_WATCHER
9struct ev_idle * T_WATCHER
10struct ev_prepare * T_WATCHER
11struct ev_check * T_WATCHER
12struct ev_child * T_WATCHER
13
14char * T_PVbyte
5const char * T_PV 15const char * T_PVbyte
6 16
7INPUT 17INPUT
8 18
9T_BASE 19T_SIGNAL
20 if (($var = sv_signum ($arg)) <= 0)
21 croak (\"'%s' is not a valid signal number or name\", SvPV_nolen ($arg));
22
23T_PVbyte
24 $var = ($type)SvPVbyte_nolen ($arg)
25
26T_WATCHER
10 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg)) 27 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
11 && SvSTASH (SvRV ($arg)) == stash_base)) 28 && (SvSTASH (SvRV ($arg)) == stash_" . ($type =~ /ev_(\S+)/, "$1") . "
12 croak (\"object is not of type EV::Base\"); 29 || sv_derived_from ($arg, \"EV::" . ($type =~ /ev_(\S+)/, ucfirst "$1") . "\"))))
13 $var = (Base)SvIV (SvRV ($arg)); 30 croak (\"object is not of type EV::" . ($type =~ /ev_(\S+)/, ucfirst "$1") . "\");
14
15T_EVENT
16 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
17 && SvSTASH (SvRV ($arg)) == stash_event))
18 croak (\"object is not of type EV::Event\");
19 $var = (Event)SvPVX (SvRV ($arg)); 31 $var = ($type)SvPVX (SvRV ($arg));
20 32
21OUTPUT 33OUTPUT
22 34
23T_BASE 35T_PVbyte
24 sv_setref_iv ($arg, "EV::Base", (IV)$var); 36 sv_setpv ((SV *)$arg, $var);
25 37
26T_EVENT 38T_WATCHER
27 $arg = e_self ($var); 39 $arg = e_bless ((struct ev_watcher *)$var, stash_${ ($type =~ /ev_(\S+)/, \"$1") });
28 40
41

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines