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.2 by root, Fri Oct 26 16:50:05 2007 UTC

1JSON * T_JSON 1Base T_BASE
2Event T_EVENT
2 3
3INPUT 4INPUT
4 5
5T_JSON 6T_BASE
6 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg)) 7 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
7 && SvSTASH (SvRV ($arg)) == JSON_STASH)) 8 && SvSTASH (SvRV ($arg)) == stash_base))
8 croak (\"object is not of type JSON::XS\"); 9 croak (\"object is not of type EV::Base\");
9 $var = (JSON *)SvPVX (SvRV ($arg)); 10 $var = (Base)SvIV (SvRV ($arg));
10 11
12T_EVENT
13 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
14 && SvSTASH (SvRV ($arg)) == stash_event))
15 croak (\"object is not of type EV::Event\");
16 $var = (Event)SvPVX (SvRV ($arg));
11 17
18OUTPUT
19
20T_BASE
21 sv_setref_iv ($arg, "EV::Base", (IV)$var);
22
23T_EVENT
24 $arg = e_self ($var);
25

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines