Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • BackTrack 5 R2
  • Wine 1.4 / 1.5.5
  • Mozilla Firefox 12...
  • Ubuntu 11.04
  • Angry Birds 1.1.2.1
  • Ubuntu 10.04.4 LTS
  • Linux Kernel 3.4
  • Ubuntu Manual 10.10
  • Adobe Flash Player...
  • Pidgin 2.10.4
  • Home > Linux > Programming > Perl Modules

    InlineX::CPP2XS 0.19

    Download button

    No screenshots available
    Downloads: 429  Tell us about an update
    User Rating:
    Rated by:
    Good (3.5/5)
    11 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Sisyphus | More programs
    Perl Artistic License / FREE
    April 25th, 2012, 11:17 GMT
    ROOT / Programming / Perl Modules

     Read user reviews (0)  Refer to a friend  Subscribe

    InlineX::CPP2XS description

    A Perl module to convert from Inline C++ code to XS

    InlineX::CPP2XS is a Perl module to convert from Inline C++ code to XS.

    SYNOPSIS

    #USAGE:
    #cpp2xs($module_name, $package_name [, $build_dir] [, $config_opts])
    use InlineX::CPP2XS qw(cpp2xs);

    my $module_name = 'MY::XS_MOD';
    my $package_name = 'MY::XS_MOD';

    # $build_dir is an optional third arg.
    # If omitted it defaults to '.' (the cwd).
    my $build_dir = '/some/where/else';

    # $config_opts is an optional fourth arg (hash reference)
    my $config_opts = {'WRITE_PM' => 1,
    'WRITE_MAKEFILE_PL' => 1,
    'VERSION' => 0.42,
    };


    # Create /some/where/else/XS_MOD.xs from ./src/XS_MOD.cpp
    # Will also create the typemap file /some/where/else/CPP.map
    # if that file is going to be needed to build the module:
    cpp2xs($module_name, $package_name, $build_dir);

    # Or create XS_MOD.xs (and CPP.map, if needed) in the cwd:
    cpp2xs($module_name, $package_name);


    The optional fourth arg (a reference to a hash) is to enable the
    passing of additional information and configuration options that
    Inline may need - and also to enable the creation of the
    Makefile.PL and .pm file(if desired).
    See the "Recognised Hash Keys" section below.

    # Create XS_MOD.xs in the cwd, and generate the Makefile.PL
    # and XS_MOD.pm :
    cpp2xs($module_name, $package_name, $config_opts);


    NOTE: If you wish to supply the $config_opts argument, but not the
    $build_dir argument then you simply omit the $build_dir argument.
    That is, the following are equivalent:
    cpp2xs($module_name, $package_name, '.', $config_opts);
    cpp2xs($module_name, $package_name, $config_opts);
    If a third argument is given, it's deemed to be the build directory
    unless it's a hash reference (in which case it's deemed to be the
    hash reference containing the additional config options).

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    Inline C | C to XS | Perl module | Inline | C | XS



    HTML code for linking to this page:


    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM