1ExtUtils::Typemaps::OutUpsuetrMaCpo(n3t)ributed Perl DocEuxmteUnttialtsi:o:nTypemaps::OutputMap(3)
2
3
4

NAME

6       ExtUtils::Typemaps::OutputMap - Entry in the OUTPUT section of a
7       typemap
8

SYNOPSIS

10         use ExtUtils::Typemaps;
11         ...
12         my $output = $typemap->get_output_map('T_NV');
13         my $code = $output->code();
14         $output->code("...");
15

DESCRIPTION

17       Refer to ExtUtils::Typemaps for details.
18

METHODS

20   new
21       Requires "xstype" and "code" parameters.
22
23   code
24       Returns or sets the OUTPUT mapping code for this entry.
25
26   xstype
27       Returns the name of the XS type of the OUTPUT map.
28
29   cleaned_code
30       Returns a cleaned-up copy of the code to which certain transformations
31       have been applied to make it more ANSI compliant.
32
33   targetable
34       This is an obscure optimization that used to live in
35       "ExtUtils::ParseXS" directly.
36
37       In a nutshell, this will check whether the output code involves calling
38       "set_iv", "set_uv", "set_nv", "set_pv" or "set_pvn" to set the special
39       $arg placeholder to a new value AT THE END OF THE OUTPUT CODE. If that
40       is the case, the code is eligible for using the "TARG"-related macros
41       to optimize this.  Thus the name of the method: "targetable".
42
43       If the optimization can not be applied, this returns undef.  If it can
44       be applied, this method returns a hash reference containing the
45       following information:
46
47         type:      Any of the characters i, u, n, p
48         with_size: Bool indicating whether this is the sv_setpvn variant
49         what:      The code that actually evaluates to the output scalar
50         what_size: If "with_size", this has the string length (as code,
51                    not constant)
52

SEE ALSO

54       ExtUtils::Typemaps
55

AUTHOR

57       Steffen Mueller "<smueller@cpan.org">
58
60       Copyright 2009, 2010, 2011, 2012 Steffen Mueller
61
62       This program is free software; you can redistribute it and/or modify it
63       under the same terms as Perl itself.
64
65
66
67perl v5.16.3                      2012-11-19  ExtUtils::Typemaps::OutputMap(3)
Impressum