File: typemap

package info (click to toggle)
libconvert-uulib-perl 1%3A1.5~dfsg-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye, buster
  • size: 688 kB
  • sloc: ansic: 8,212; perl: 145; makefile: 53; awk: 13
file content (16 lines) | stat: -rw-r--r-- 299 bytes parent folder | download | duplicates (7)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
uulist *			T_UULIST

INPUT

T_UULIST
	if (sv_derived_from($arg, \"Convert::UUlib::Item\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = ($type) tmp;
	}
	else
	    croak(\"$var is not of type Convert::UUlib::Item\")

OUTPUT

T_UULIST
	sv_setref_pv($arg, \"Convert::UUlib::Item\", (void*)$var);