Debian Codegraph @

typemap

raw
1 # See typemap section in perlxs man page for explanation on
2 # on the fly conversion of Config::Augeas to Config_Augeas
3
4 TYPEMAP
5 Config_Augeas * T_PTROBJ_SPECIAL
6
7 INPUT
8 T_PTROBJ_SPECIAL
9 if (sv_derived_from($arg, \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\")) {
10 IV tmp = SvIV((SV*)SvRV($arg));
11 $var = INT2PTR($type, tmp);
12 }
13 else
14 croak(\"$var is not of type ${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\")
15
16 OUTPUT
17 T_PTROBJ_SPECIAL
18 sv_setref_pv($arg, \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\",
19 (void*)$var);
20