1XS::Typemap(3pm)       Perl Programmers Reference Guide       XS::Typemap(3pm)
2
3
4

NAME

6       XS::Typemap - module to test the XS typemaps distributed with perl
7

SYNOPSIS

9         use XS::Typemap;
10
11         $output = T_IV( $input );
12         $output = T_PV( $input );
13         @output = T_ARRAY( @input );
14

DESCRIPTION

16       This module is used to test that the XS typemaps distributed with perl
17       are working as advertised. A function is available for each typemap
18       definition (eventually). In general each function takes a variable,
19       processes it through the OUTPUT typemap and then returns it using the
20       INPUT typemap.
21
22       A test script can then compare the input and output to make sure they
23       are the expected values. When only an input or output function is
24       provided the function will be named after the typemap entry and have
25       either '_IN' or '_OUT' appended.
26
27       All the functions are exported. There is no reason not to do this since
28       the entire purpose is for testing Perl. Namespace pollution will be
29       limited to the test script.
30

NOTES

32       This module is for testing only and should not normally be installed.
33

AUTHOR

35       Tim Jenness <t.jenness@jach.hawaii.edu>
36
37       Copyright (C) 2001 Tim Jenness All Rights Reserved.  This program is
38       free software; you can redistribute it and/or modify it under the same
39       terms as Perl itself.
40
41
42
43perl v5.10.1                      2009-04-14                  XS::Typemap(3pm)
Impressum