File: typemap

package info (click to toggle)
libdata-uuid-perl 1.227-1
  • links: PTS, VCS
  • area: main
  • in suites: sid, trixie
  • size: 176 kB
  • sloc: ansic: 328; perl: 70; makefile: 3
file content (14 lines) | stat: -rw-r--r-- 317 bytes parent folder | download | duplicates (5)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
perl_uuid_t*			T_PV
uuid_context_t*		T_PTRUUID

INPUT
T_PTRUUID
	if (SvROK($arg) && sv_derived_from($arg, \"Data::UUID\")) {
	    IV tmp = SvIV((SV*)SvRV($arg));
	    $var = INT2PTR($type,tmp);
	}
	else
	    croak(\"$var is not of type Data::UUID\")
OUTPUT
T_PTRUUID
	sv_setref_pv($arg, \"Data::UUID\", (void*)$var);