12 Dec 2007 01:57:26 UTC
- Distribution: P5NCI
- Module version: 0.31
- Source (raw)
- Browse (raw)
- How to Contribute
- Issues (4)
- Testers (253 / 260 / 2)
- KwaliteeBus factor: 1
- 80.00% Coverage
- License: perl_5
- Activity24 month
- Download (17.84KB)
- MetaCPAN Explorer
- Subscribe to distribution
- This version
- Latest versionCHROMATIC chromatic
P5NCI::Declare - declarative syntax for P5NCI bindings
use P5NCI::Declare library => 'shared_library'; sub perl_function :NCI( c_function => 'vii' ); perl_function( 101, 77 );
P5NCI::Declareallows you to bind Perl functions to C functions with subroutine attributes.
usethis module, you must pass: the key
librarywhere the value is the name of the shared library you want to load (following the normal P5NCI conventions). You may pass an optional
pathkey, where the value is the path to the library.
To bind a Perl function name to a C function, use a subroutine declaration with the
NCIattribute. The attribute takes a pair where the key is the name of the function and the value is its P5NCI signature.
chromatic, <chromatic at wgz dot org>
No known bugs.
Copyright (c) 2006 - 2007, chromatic. Some rights reserved.
This module is free software; you can use, redistribute, and modify it under the same terms as Perl 5.8.x.