5 XS::Typemap - module to test the XS typemaps distributed with perl
11 $output = T_IV( $input );
12 $output = T_PV( $input );
13 @output = T_ARRAY( @input );
17 This module is used to test that the XS typemaps distributed
18 with perl are working as advertised. A function is available
19 for each typemap definition (eventually). In general each function
20 takes a variable, processes it through the OUTPUT typemap and then
21 returns it using the INPUT typemap.
23 A test script can then compare the input and output to make sure they
24 are the expected values. When only an input or output function is
25 provided the function will be named after the typemap entry and have
26 either '_IN' or '_OUT' appended.
28 All the functions are exported. There is no reason not to do this since
29 the entire purpose is for testing Perl. Namespace pollution will be limited
34 use base qw/ DynaLoader Exporter /;
37 use vars qw/ $VERSION @EXPORT /;
47 T_SYSRET_fail T_SYSRET_pass
65 T_PTRREF_IN T_PTRREF_OUT
67 T_REF_IV_PTR_IN T_REF_IV_PTR_OUT
68 T_PTROBJ_IN T_PTROBJ_OUT
69 T_OPAQUE_IN T_OPAQUE_OUT T_OPAQUE_array
70 T_OPAQUEPTR_IN T_OPAQUEPTR_OUT T_OPAQUEPTR_OUT_short
71 T_OPAQUEPTR_IN_struct T_OPAQUEPTR_OUT_struct
73 T_STDIO_open T_STDIO_close T_STDIO_print
77 bootstrap XS::Typemap;
81 This module is for testing only and should not normally be installed.
85 Tim Jenness E<lt>t.jenness@jach.hawaii.eduE<gt>
87 Copyright (C) 2001 Tim Jenness All Rights Reserved. This program is
88 free software; you can redistribute it and/or modify it under the same