Softpedia
 


LINUX CATEGORIES:



GLOBAL PAGES >>
NEWS ARCHIVE >>
SOFTPEDIA REVIEWS >>
MEET THE EDITORS >>
WEEK'S BEST
  • Linux Kernel 3.9.3 / 3....
  • LibreOffice 3.6.6 / 4.0.3
  • MPlayer 1.1.1
  • systemd 204
  • Arch Linux 2013.05.01
  • Blender 2.67a
  • KDE Software Compilatio...
  • CrunchBang Linux Stable...
  • Elementary OS 0.1 / 0.2...
  • SystemRescueCd 3.6.0
  • Home > Linux > Programming > Libraries

    Include 1.02a

    Download button

    No screenshots available
    Downloads: 307  View global page NEW!  Tell us about an update
    User Rating:
    Rated by:
    NOT RATED
    0 user(s)
    Developer:

    License / Price:

    Last Updated:

    Category:
    Graham Barr | More programs
    Perl Artistic License / FREE
    May 9th, 2007, 12:05 GMT
    ROOT / Programming / Libraries

     Read user reviews (0)  Refer to a friend  Subscribe

    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 > "/[A-Z]/";

    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 > "/[A-Z]/";

    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.

    Subroutines

    Under normal use the Include package is only used via the use/import interface. But there are some routines that are defined.

    CacheOn

    This 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.

    Product's homepage

    Requirements:

    · Perl

      


    TAGS:

    #defines functions | C headers | Perl module | Include | C | header

    Go to top

    WindowsGamesDriversMacLinuxScriptsMobileHandheldNews

    SUBMIT PROGRAM   |   ADVERTISE   |   GET HELP   |   SEND US FEEDBACK   |   RSS FEEDS   |   UPDATE YOUR SOFTWARE   |   ROMANIAN FORUM