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.4 by root, Sun Oct 28 09:39:18 2007 UTC

1JSON * T_JSON 1Base T_BASE
2Event T_EVENT
3
4/* for 5.6 compatibility */
5const char * T_PV
2 6
3INPUT 7INPUT
4 8
5T_JSON 9T_BASE
6 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg)) 10 if (!(SvROK ($arg) && SvOBJECT (SvRV ($arg))
7 && SvSTASH (SvRV ($arg)) == JSON_STASH)) 11 && SvSTASH (SvRV ($arg)) == stash_base))
8 croak (\"object is not of type JSON::XS\"); 12 croak (\"object is not of type EV::Base\");
9 $var = (JSON *)SvPVX (SvRV ($arg)); 13 $var = (Base)SvIV (SvRV ($arg));
10 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));
11 20
21OUTPUT
22
23T_BASE
24 sv_setref_iv ($arg, "EV::Base", (IV)$var);
25
26T_EVENT
27 $arg = e_self ($var);
28

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines