File: typemap

package info (click to toggle)
libauthen-sasl-cyrus-perl 0.02-1
  • links: PTS
  • area: main
  • in suites: woody
  • size: 76 kB
  • ctags: 13
  • sloc: perl: 163; makefile: 55
file content (22 lines) | stat: -rw-r--r-- 340 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
TYPEMAP

Authen::SASL::Cyrus::Connection		T_PTROBJ_NU

INPUT

T_PTROBJ_NU
	if ($arg == &PL_sv_undef) {
		$var = 0;
	}
	else if (sv_isa($arg, \"${ntype}\")) {
		IV tmp = SvIV((SV*)SvRV($arg));
		$var = ($type) tmp;
	}
	else {
		croak(\"$var is not of type ${ntype}\");
	}

OUTPUT

T_PTROBJ_NU
	sv_setref_pv($arg, \"${ntype}\", (void*)$var);