Skip to content

perl11/Inline-Filters

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

INTRODUCTION:

Inline::Filters -- Common source code filters for Inline Modules.

Inline::Filters provides common source code filters to Inline Language
Modules like Inline::C and Inline::CPP.

Example:

   use Inline C => DATA => FILTERS => [Strip_POD => Preprocess];

   print "5 + 7 = ", add(5, 7);

   __END__
   __C__

   =head1 add

   Returns the sum of two integers x and y

   =cut

   #ifdef USE_LONG
   long
   #else
   int
   #endif
   add (int x, int y) { return x + y; }

When run, this complete program prints:

   5 + 7 = 12

-----------------------------------------------------------------------------
FEATURES:

This is a minor release of Inline::Filters. It includes these filters:

+ Preprocess
  + All languages
+ Strip_Comments
  + C
  + C++
  + Java
  + Python
+ Strip_POD
  + All languages

As a bonus, the documentation has greatly improved.

-----------------------------------------------------------------------------
INSTALLATION:

This module requires Inline.pm version 0.42 or higher to be installed.

To install Inline::Filters do this:

perl Makefile.PL
make
make test
make install

(On ActivePerl for MSWin32, use nmake instead of make.)

You have to 'make install' before you can run it successfully.

-----------------------------------------------------------------------------
INFORMATION:

- For more information on Inline::Filters see 'perldoc Inline::Filters'.
- For information about Inline.pm, see 'perldoc Inline'.
- For information on using Perl with C see 'perldoc Inline::C'.

The Inline mailing list is inline@perl.org. Send mail to 
inline-subscribe@perl.org to subscribe.

Please send questions and comments to "Neil Watkiss" <NEILW@cpan.org>

Copyright (c) 2000, Neil Watkiss. All Rights Reserved.  

Packages

No packages published

Languages

  • Perl 95.9%
  • Other 4.1%