Include

Include is a Perl module that allow you to use #defines from C header files.
Download

Include Ranking & Summary

Advertisement

  • Rating:
  • License:
  • Perl Artistic License
  • Price:
  • FREE
  • Publisher Name:
  • Graham Barr
  • Publisher web site:
  • http://search.cpan.org/~gbarr/

Include Tags


Include Description

Include is a Perl module that allow you to use #defines from C header files. Include is a Perl module that allow you to use #defines from C header files.SYNOPSIS use Include qw(-I /some/path/of/mine); use Include q< sys/types.h >; use Include q< sys/types.h > "//";The Include module implements a method of using #define constants from C header files. It does this by putting an extra level of indirection on the use operator.To enhance performance a cache scheme is used. When a new module is required the cache is checked first, if the package is not found then it will be generated from the C header files.Include can be configured to place any generated packages into the cache automatically, for security reasons this is turned off by default.There are three ways in which the use Include statement can be used. use Include qw(-I /some/path/of/mine);Will unshift the directory /some/path/of/mine onto the search path used so that subsequent searches for .h header files will search the given directories first. use Include q< sys/types.h >; use Include q< sys/types.h > "//";Both of these will define all the constants found in and any header files included by it. The first will export all of these into the calling package, but the second will only export defined macros that contain an unppercase character.SubroutinesUnder normal use the Include package is only used via the use/import interface. But there are some routines that are defined.CacheOnThis subroutine will cause the Include module to save any generated packages into the cache.Generate( @headers )This subroutine will force the generation of the given header files, and any files included in them, reguardless of whether they are currently in the cache. If cache writing is turned on then the cache files will be overwritten.Search( @dirs )This subroutine will unshift the given directories onto the search path used for locating the header files. Requirements: · Perl


Include Related Software