ViewVC Help
View File | Revision Log | Show Annotations | Download File
/cvs/EV/typemap
Revision: 1.13
Committed: Thu Dec 20 07:12:57 2007 UTC (16 years, 4 months ago) by root
Branch: MAIN
Changes since 1.12: +1 -0 lines
Log Message:
*** empty log message ***

File Contents

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