File: combined.typemap

package info (click to toggle)
libextutils-typemap-perl 1.00-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 120 kB
  • sloc: perl: 276; makefile: 2
file content (20 lines) | stat: -rw-r--r-- 254 bytes parent folder | download | duplicates (13)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
TYPEMAP
unsigned int	T_UV
int	T_IV
double	T_NV

INPUT
T_UV
	$var = ($type)SvUV($arg);
T_IV
	$var = ($type)SvIV($arg);
T_NV
	$var = ($type)SvNV($arg);

OUTPUT
T_UV
	sv_setuv($arg, (UV)$var);
T_IV
	sv_setiv($arg, (IV)$var);
T_NV
	sv_setnv($arg, (NV)$var);