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

Comparing EV/typemap (file contents):
Revision 1.1 by root, Fri Oct 26 09:19:48 2007 UTC vs.
Revision 1.10 by root, Thu Nov 1 08:10:03 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines