ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/typemap
Revision: 1.7
Committed: Wed Oct 31 10:50:05 2007 UTC (16 years, 6 months ago) by root
Branch: MAIN
Changes since 1.6: +20 -20 lines
Log Message:
EV first rough cut

File Contents

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