Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 29.544.813 Times

C::DynaLib 0.55

  Date Added: April 17, 2010  |  Visits: 723

C::DynaLib

Report Broken Link
Printer Friendly Version


Product Homepage
Download (75 downloads)



C::DynaLib is a Perl interface to C compiled code. SYNOPSIS use C::DynaLib; use sigtrap; # recommended $lib = new C::DynaLib( $linker_arg ); $func = $lib->DeclareSub( $symbol_name [, $return_type [, @arg_types] ] ); # or $func = $lib->DeclareSub( { "name" => $symbol_name, [param => $value,] ... } ); # or use C::DynaLib qw(DeclareSub); $func = DeclareSub( $function_pointer, [, $return_type [, @arg_types] ] ); # or $func = DeclareSub( { "ptr" => $function_pointer, [param => $value,] ... } ); $result = $func->( @args ); $callback = new C::DynaLib::Callback( &my_sub, $return_type, @arg_types ); $callback_pointer = $callback->Ptr(); PLUG FOR PERL XS If you have a C compiler that Perl supports, you will get better results by writing XSubs than by using this module. I GUARANTEE IT! It may take you longer to do what you want, but your code will be much more solid and portable. See perlxs. This module brings "pointers" to Perl. Perls non-use of pointers is one of its great strengths. If you dont know what I mean, then maybe you ought to practice up a bit on C or C++ before using this module. If anything, pointers are more dangerous in Perl than in C, due to Perls dynamic, interpretive nature. The XSub interface and Perl objects provide a means of calling C and C++ code while preserving Perls abstraction from pointers. Once again, I urge you to check out perlxs! Its really cool!!! This module allows Perl programs to call C functions in dynamic libraries. It is useful for testing library functions, writing simple programs without the bother of XS, and generating C function pointers that call Perl code. Your Perl must be of the dynamic variety and have a working DynaLoader to use the dynamic loading capabilities of this module. Be sure you answered "y" when Configure (from the Perl source kit) asked, "Do you wish to use dynamic loading?". The mechanics of passing arguments to and returning values from C functions vary greatly among machines, operating systems, and compilers. Therefore, Makefile.PL checks the Perl configuration and may even compile and run a test program before the module is built. This module is divided into two packages, C::DynaLib and C::DynaLib::Callback. Each makes use of Perl objects (see perlobj) and provides its own constructor. A C::DynaLib object corresponds to a dynamic library whose functions are available to Perl. A C::DynaLib::Callback object corresponds to a Perl sub which may be accessed from C..

Requirements: No special requirements
Platforms: Linux
Keyword: Cdynalib Declaresub Dynalib Dynamic Interface Libraries Module Perl Pointers Programming
Users rating: 0/10

License: Freeware Size: 35.84 KB
USER REVIEWS
More Reviews or Write Review


C::DYNALIB RELATED
Libraries  -  GCJ::Cni::Examples 0.03
GCJ::Cni::Examples is a Perl module with examples of how to use GCJs CNI interface to write Perl Modules in Java. EXAMPLES Writing Treaded modules in Java One benefit of using GCJ is that it takes advantage of POSIX threading. This is nice...
20.48 KB  
Libraries  -  Acme::EyeDrops 1.51
Acme::EyeDrops is a Perl module for visual programming in Perl. SYNOPSIS use Acme::EyeDrops qw(sightly); print sightly( { Shape => camel, SourceFile => eyesore.pl } ); Acme::EyeDrops converts a Perl program into an equivalent one, but...
102.4 KB  
Libraries  -  Alien Perl module 0.91
Alien Perl module package contains external libraries wrapped up for your viewing pleasure! SYNOPSIS perldoc Alien; Alien is a package that exists just to hold together an idea, the idea of Alien:: packages, so there is no code here, just...
10.24 KB  
Libraries  -  GnuPG::Interface 0.33
GnuPG::Interface is a Perl interface to GnuPG. SYNOPSIS # A simple example use IO::Handle; use GnuPG::Interface; # settting up the situation my $gnupg = GnuPG::Interface->new(); $gnupg->options->hash_init( armor => 1, homedir =>...
37.89 KB  
Modules  -  Content administration 6.x-1.0-beta2
This module provides a dynamic interface for content administration.It is intended to supplement Drupal's built-in content management page, and features these improvements over the standard interface: * Uses AHAH to show node previews and node...
20.48 KB  
Libraries  -  xflat 0.1.5
eXtended FLAT (XFLAT) is a binary format that supports dynamic shared libraries on MMU-less Linux (uClinux) platforms. XFLAT is a mature suite of development tools including compiler, dynamic loader, loader, linker and support tools. Configure...
3.1 MB  
Libraries  -  PDL::Slatec 2.4.3
PDL::Slatec is a PDL interface to the slatec numerical programming library. SYNOPSIS use PDL::Slatec; ($ndeg, $r, $ierr, $a) = polyfit($x, $y, $w, $maxdeg, $eps); This module serves the dual purpose of providing an interface to parts of...
2.1 MB  
Programming  -  Curl Advanced UI 0.7
Curl Advanced UI libraries - Advanced User Interface libraries provide components necessary for creating rich user interface applications easily. Please see the detail info in Wiki page.
1.75 MB  
Word Processing  -  Corrupt DOCX Salvager 2.0.4
Using a GUI interface and a Perl coded back end, Corrupt DOCX Salvager will often be able to extract text from damaged or corrupted Word 2007-2013 docx files where Word 2007-2013 fails. It can also be simply used as a viewer of the text in a docx...
3.68 MB  
Finance  -  123 Prepaid 1.3.1
Mobile banking a simple and exciting way to connect with your money through your iPhone anytime, anywhere. This application is free to download and delivers rich mobile banking features wrapped in a dynamic interface thats easy to navigate....
2 MB  
NEW DOWNLOADS IN PROGRAMMING, LIBRARIES
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by freedesktop.org, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB  
Libraries  -  EuGTK 4.8.9
Makes it easy to develop good- looking, fast, cross-platform programs that run on Linux, OS X, and Windows. Euphoria is a very fast interpreted/compiled language with straight-forward syntax. EuGTK allows programming in a clean, object-oriented...
10.68 MB  
Libraries  -  Linux User Group Library Manager 1.0
The LUG Library Manager is a project to help Linux User Groups start their own library. A LUG library is helpful to the community at large because it increases access to information, and gives everyone the opportunity to become more knowledgeable.
5.35 KB  
Libraries  -  Module::MakefilePL::Parse 0.12
Module::MakefilePL::Parse is a Perl module to parse required modules from Makefile.PL. SYNOPSIS use Module::MakefilePL::Parse; open $fh, Makefile.PL; $parser = Module::MakefilePL::Parse->new( join("", ) ); $info = $parser->required;...
8.19 KB  
Libraries  -  sqlpp 0.06
sqlpp Perl package is a SQL preprocessor. sqlpp is a conventional cpp-alike preprocessor taught to understand SQL ( PgSQL, in particular) syntax specificities. In addition to the standard #define/#ifdef/#else/#endif cohort, provides also...
10.24 KB  
Libraries  -  App::SimpleScan::Substitution::Line 2.02
App::SimpleScan::Substitution::Line is a line with optional fixed variable values. SYNOPSIS my $line = App::SimpleScan::Substitution::Line->new(" this "); # Use only this value when substituting " ". $line->fix(substituite =>...
54.27 KB