Name : perl-ExtUtils-H2PM
| |
Version : 0.11
| Vendor : obs://build_opensuse_org/devel:languages:perl
|
Release : 1.12
| Date : 2024-08-05 18:12:34
|
Group : Unspecified
| Source RPM : perl-ExtUtils-H2PM-0.11-1.12.src.rpm
|
Size : 0.06 MB
| |
Packager : (none)
| |
Summary : Automatically generate perl modules to wrap C header files
|
Description :
This module assists in generating wrappers around system functionallity, such as \'socket()\' types or \'ioctl()\' calls, where the only interesting features required are the values of some constants or layouts of structures normally only known to the C header files. Rather than writing an entire XS module just to contain some constants and pack/unpack functions, this module allows the author to generate, at module build time, a pure perl module containing constant declarations and structure utility functions. The module then requires no XS module to be loaded at run time.
In comparison to _h2ph_, \'C::Scan::Constants\', and so on, this module works by generating a small C program containing \'printf()\' lines to output the values of the constants, compiling it, and running it. This allows it to operate without needing tricky syntax parsing or guessing of the contents of C header files.
It can also automatically build pack/unpack functions for simple structure layouts, whose members are all simple integer or character array fields. It is not intended as a full replacement of arbitrary code written in XS modules. If structures should contain pointers, or require special custom handling, then likely an XS module will need to be written.
|
RPM found in directory: /packages/linux-pbone/ftp5.gwdg.de/pub/opensuse/repositories/devel:/languages:/perl:/CPAN-E/openSUSE_Tumbleweed/x86_64 |