Edit D:\app\Administrator\product\11.2.0\dbhome_1\perl\html\lib\XS\APItest.html
<?xml version="1.0" ?> <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> <html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>XS::APItest - Test the perl C API</title> <meta http-equiv="content-type" content="text/html; charset=utf-8" /> <link rev="made" href="mailto:" /> </head> <body style="background-color: white"> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> XS::APItest - Test the perl C API</span></strong></big> </td></tr> </table> <!-- INDEX BEGIN --> <div name="index"> <p><a name="__index__"></a></p> <ul> <li><a href="#name">NAME</a></li> <li><a href="#synopsis">SYNOPSIS</a></li> <li><a href="#abstract">ABSTRACT</a></li> <li><a href="#description">DESCRIPTION</a></li> <ul> <li><a href="#export">EXPORT</a></li> </ul> <li><a href="#see_also">SEE ALSO</a></li> <li><a href="#authors">AUTHORS</a></li> <li><a href="#copyright_and_license">COPYRIGHT AND LICENSE</a></li> </ul> <hr name="index" /> </div> <!-- INDEX END --> <p> </p> <h1><a name="name">NAME</a></h1> <p>XS::APItest - Test the perl C API</p> <p> </p> <hr /> <h1><a name="synopsis">SYNOPSIS</a></h1> <pre> use XS::APItest; print_double(4);</pre> <p> </p> <hr /> <h1><a name="abstract">ABSTRACT</a></h1> <p>This module tests the perl C API. Currently tests that <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a> works correctly.</p> <p> </p> <hr /> <h1><a name="description">DESCRIPTION</a></h1> <p>This module can be used to check that the perl C API is behaving correctly. This module provides test functions and an associated test script that verifies the output.</p> <p>This module is not meant to be installed.</p> <p> </p> <h2><a name="export">EXPORT</a></h2> <p>Exports all the test functions:</p> <dl> <dt><strong><a name="print_double" class="item"><strong>print_double</strong></a></strong> <dd> <p>Test that a double-precision floating point number is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_double( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_long_double" class="item"><strong>print_long_double</strong></a></strong> <dd> <p>Test that a <code>long double</code> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>. Takes no arguments - the test value is hard-wired into the function (as "7").</p> </dd> <dd> <pre> print_long_double();</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="have_long_double" class="item"><strong>have_long_double</strong></a></strong> <dd> <p>Determine whether a <code>long double</code> is supported by Perl. This should be used to determine whether to test <a href="#print_long_double"><code>print_long_double</code></a>.</p> </dd> <dd> <pre> print_long_double() if have_long_double;</pre> </dd> </li> <dt><strong><a name="print_nv" class="item"><strong>print_nv</strong></a></strong> <dd> <p>Test that an <code>NV</code> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_nv( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_iv" class="item"><strong>print_iv</strong></a></strong> <dd> <p>Test that an <code>IV</code> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_iv( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_uv" class="item"><strong>print_uv</strong></a></strong> <dd> <p>Test that an <code>UV</code> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_uv( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_int" class="item"><strong>print_int</strong></a></strong> <dd> <p>Test that an <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#int"><code>int</code></a> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_int( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_long" class="item"><strong>print_long</strong></a></strong> <dd> <p>Test that an <code>long</code> is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_long( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="print_float" class="item"><strong>print_float</strong></a></strong> <dd> <p>Test that a single-precision floating point number is formatted correctly by <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlfunc.html#printf"><code>printf</code></a>.</p> </dd> <dd> <pre> print_float( $val );</pre> </dd> <dd> <p>Output is sent to STDOUT.</p> </dd> </li> <dt><strong><a name="call_sv_call_pv_call_method" class="item"><strong>call_sv</strong>, <strong>call_pv</strong>, <strong>call_method</strong></a></strong> <dd> <p>These exercise the C calls of the same names. Everything after the flags arg is passed as the the args to the called function. They return whatever the C function itself pushed onto the stack, plus the return value from the function; for example</p> </dd> <dd> <pre> call_sv( sub { @_, 'c' }, G_ARRAY, 'a', 'b'); # returns 'a', 'b', 'c', 3 call_sv( sub { @_ }, G_SCALAR, 'a', 'b'); # returns 'b', 1</pre> </dd> </li> <dt><strong><a name="eval_sv" class="item"><strong>eval_sv</strong></a></strong> <dd> <p>Evaluates the passed SV. Result handling is done the same as for <code>call_sv()</code> etc.</p> </dd> </li> <dt><strong><a name="eval_pv" class="item"><strong>eval_pv</strong></a></strong> <dd> <p>Exercises the C function of the same name in scalar context. Returns the same SV that the C function returns.</p> </dd> </li> <dt><strong><a name="require_pv" class="item"><strong>require_pv</strong></a></strong> <dd> <p>Exercises the C function of the same name. Returns nothing.</p> </dd> </li> </dl> <p> </p> <hr /> <h1><a name="see_also">SEE ALSO</a></h1> <p><a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/lib/XS/Typemap.html">the XS::Typemap manpage</a>, <a href="file://C|\ADE\aime_smenon_perl_090715\perl\html/pod/perlapi.html">the perlapi manpage</a>.</p> <p> </p> <hr /> <h1><a name="authors">AUTHORS</a></h1> <p>Tim Jenness, <<a href="mailto:t.jenness@jach.hawaii.edu">t.jenness@jach.hawaii.edu</a>>, Christian Soeller, <<a href="mailto:csoelle@mph.auckland.ac.nz">csoelle@mph.auckland.ac.nz</a>>, Hugo van der Sanden <<a href="mailto:hv@crypt.compulink.co.uk">hv@crypt.compulink.co.uk</a>></p> <p> </p> <hr /> <h1><a name="copyright_and_license">COPYRIGHT AND LICENSE</a></h1> <p>Copyright (C) 2002,2004 Tim Jenness, Christian Soeller, Hugo van der Sanden. All Rights Reserved.</p> <p>This library is free software; you can redistribute it and/or modify it under the same terms as Perl itself.</p> <table border="0" width="100%" cellspacing="0" cellpadding="3"> <tr><td class="block" style="background-color: #cccccc" valign="middle"> <big><strong><span class="block"> XS::APItest - Test the perl C API</span></strong></big> </td></tr> </table> </body> </html>
Ms-Dos/Windows
Unix
Write backup
jsp File Browser version 1.2 by
www.vonloesch.de