File: typemap

package info (click to toggle)
libio-aio-perl 4.81-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 988 kB
  • sloc: ansic: 5,008; perl: 603; makefile: 11; sh: 2
file content (49 lines) | stat: -rw-r--r-- 842 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
aio_req		T_AIO
aio_req_ornot	T_AIO_ORNOT
SV8 *		T_SV8

VAL64		T_VAL64
size_t          T_VAL64
ssize_t         T_VAL64
off_t           T_VAL64

aio_rfd		T_AIO_RFD
aio_wfd		T_AIO_WFD

octet_string		T_STR8
octet_string_ornull	T_STR8_ORNULL

INPUT

T_AIO
	if (!($var = SvAIO_REQ ($arg)))
          croak (\"busy IO::AIO::REQ object expected\")

T_AIO_ORNOT
	if (!($var = SvAIO_REQ ($arg)))
	  XSRETURN_EMPTY

T_SV8
	($var) = $arg;
        if (SvPOKp ($var) && !sv_utf8_downgrade ($var, 1))
          croak (\"\\\"%s\\\" argument must be byte/octet-encoded\", \"$var\")

T_VAL64
	$var = ($type)SvVAL64 ($arg);

T_AIO_RFD
	$var = s_fileno_croak ($arg, 0);

T_AIO_WFD
	$var = s_fileno_croak ($arg, 1);

T_STR8
	$var = SvPVbyte_nolen ($arg);

T_STR8_ORNULL
	$var = SvOK ($arg) ? SvPVbyte_nolen ($arg) : 0;

OUTPUT

T_VAL64
	$arg = newSVval64 ($var);