File: typemap

package info (click to toggle)
cyrus-imapd 3.10.0~rc2-1
  • links: PTS, VCS
  • area: main
  • in suites: experimental
  • size: 87,996 kB
  • sloc: ansic: 284,322; perl: 136,912; javascript: 9,562; sh: 5,730; yacc: 2,565; makefile: 2,177; cpp: 2,147; lex: 662; xml: 621; awk: 303; python: 279; asm: 262
file content (15 lines) | stat: -rw-r--r-- 447 bytes parent folder | download | duplicates (10)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
TYPEMAP
Cyrus_IMAP      T_PTROBJ_SPECIAL

INPUT
T_PTROBJ_SPECIAL
        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);