File: typemap

package info (click to toggle)
libcrypt-smime-perl 0.10-1
  • links: PTS, VCS
  • area: main
  • in suites: wheezy
  • size: 184 kB
  • sloc: perl: 264; makefile: 2
file content (22 lines) | stat: -rw-r--r-- 564 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TYPEMAP
Crypt_SMIME    T_PTROBJ_SPECIAL


INPUT
T_PTROBJ_SPECIAL
    /* タイプ名のアンダースコアを::に変えたパッケージ名にblessされているのでなければcroak  */
    if (sv_derived_from($arg, \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\")) {
        IV tmp = SvIV((SV*)SvRV($arg));
        $var = ($type) tmp;
    }
    else {
        croak(\"$var is not of type ${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\");
    }


OUTPUT
T_PTROBJ_SPECIAL
    sv_setref_pv(
        $arg,
        \"${(my $ntt=$ntype)=~s/_/::/g;\$ntt}\",
        (void*)$var);