C::Scan::Constants

C::Scan::Constants Perl module contains slurp constants from specified C header (.h) files.
Download

C::Scan::Constants Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Philip Monsen
  • Publisher web site:
  • http://search.cpan.org/~icerider/C-Scan-Constants-1.011/lib/C/Scan/Constants.pm

C::Scan::Constants Tags


C::Scan::Constants Description

C::Scan::Constants Perl module contains slurp constants from specified C header (.h) files. C::Scan::Constants Perl module contains slurp constants from specified C header (.h) files.SYNOPSIS ## Intended for use in your module's Makefile.PL file, to ## add DWIMery to use of C constants within your module. use C::Scan::Constants; my @hdr_files = ( "/path/to/first_header.h", "/path/to/second_header.h", ); ## Slurp a list of constant information from C headers my @constants = extract_constants_from( @hdr_files ); ## Create the C, XS, and pure-Perl machinery needed to ## provide automagical access to C constants at runtime. write_constants_module( "Your::Module", @constants );This module provides an alternative to using the h2ph command to generate Perl header (.ph) files that are then subsequently required by your module code. When you need access to C numeric and enumerated type constants, especially in a dynamic source tree environment, there are times when you'd like something a little more automagical and closely tailored to what you actually need. Now you have it, in this module.C::Scan::Constants was born out of a recognition that ModPerl::CScan and ExtUtils::Constant provide a wealth of capabilities in the area of C code parsing and autogenerated XS access to C constants, but that the actual mechanisms for harnessing them to do those things were really rather opaque. This module should help take (most of) the mystery out of those activities. Requirements: · Perl


C::Scan::Constants Related Software