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.3 by root, Sun Oct 28 06:37:39 2007 UTC

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

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines