diff options
author | Didier Raboud <odyx@debian.org> | 2012-10-25 21:07:57 +0200 |
---|---|---|
committer | Didier Raboud <odyx@debian.org> | 2012-10-25 21:07:57 +0200 |
commit | 81ab83f382660bc7980ae954725c4ebf28764b03 (patch) | |
tree | 523268f698a63a8fd44f3491d94d140266b2403b /scripting/perl/CUPS.pm | |
parent | a75966e33dbc3e3e096338fd332f515cb313b58a (diff) | |
download | cups-upstream/1.6.0.tar.gz |
Imported Upstream version 1.6.0upstream/1.6.0
Diffstat (limited to 'scripting/perl/CUPS.pm')
-rw-r--r-- | scripting/perl/CUPS.pm | 144 |
1 files changed, 0 insertions, 144 deletions
diff --git a/scripting/perl/CUPS.pm b/scripting/perl/CUPS.pm deleted file mode 100644 index 5f2ed5f1..00000000 --- a/scripting/perl/CUPS.pm +++ /dev/null @@ -1,144 +0,0 @@ -package CUPS; - -use 5.006; -use strict; -use warnings; -use Carp; - -require Exporter; -require DynaLoader; -use AutoLoader; - -our @ISA = qw(Exporter DynaLoader); - -# Items to export into callers namespace by default. Note: do not export -# names by default without a very good reason. Use EXPORT_OK instead. -# Do not simply export all your public functions/methods/constants. - -# This allows declaration use CUPS ':all'; -# If you do not need this, moving things directly into @EXPORT or @EXPORT_OK -# will save memory. -our %EXPORT_TAGS = ( 'all' => [ qw( - CUPS_DATE_ANY - CUPS_VERSION - HTTP_MAX_BUFFER - HTTP_MAX_HOST - HTTP_MAX_URI - HTTP_MAX_VALUE - IPP_MAX_NAME - IPP_MAX_VALUES - IPP_PORT - PPD_MAX_LINE - PPD_MAX_NAME - PPD_MAX_TEXT - PPD_VERSION -) ] ); - -our @EXPORT_OK = ( @{ $EXPORT_TAGS{'all'} } ); - -our @EXPORT = qw( - CUPS_DATE_ANY - CUPS_VERSION - HTTP_MAX_BUFFER - HTTP_MAX_HOST - HTTP_MAX_URI - HTTP_MAX_VALUE - IPP_MAX_NAME - IPP_MAX_VALUES - IPP_PORT - PPD_MAX_LINE - PPD_MAX_NAME - PPD_MAX_TEXT - PPD_VERSION -); -our $VERSION = '1.2'; - -sub AUTOLOAD { - # This AUTOLOAD is used to 'autoload' constants from the constant() - # XS function. If a constant is not found then control is passed - # to the AUTOLOAD in AutoLoader. - - my $constname; - our $AUTOLOAD; - ($constname = $AUTOLOAD) =~ s/.*:://; - croak "& not defined" if $constname eq 'constant'; - my $val = constant($constname, @_ ? $_[0] : 0); - if ($! != 0) { - if ($! =~ /Invalid/ || $!{EINVAL}) { - $AutoLoader::AUTOLOAD = $AUTOLOAD; - goto &AutoLoader::AUTOLOAD; - } - else { - croak "Your vendor has not defined CUPS macro $constname"; - } - } - { - no strict 'refs'; - # Fixed between 5.005_53 and 5.005_61 - if ($] >= 5.00561) { - *$AUTOLOAD = sub () { $val }; - } - else { - *$AUTOLOAD = sub { $val }; - } - } - goto &$AUTOLOAD; -} - -bootstrap CUPS $VERSION; - -# Preloaded methods go here. - -# Autoload methods go after =cut, and are processed by the autosplit program. - -1; -__END__ -# Below is stub documentation for your module. You better edit it! - -=head1 NAME - -CUPS - Perl extension for blah blah blah - -=head1 SYNOPSIS - - use CUPS; - blah blah blah - -=head1 DESCRIPTION - -Stub documentation for CUPS, created by h2xs. It looks like the -author of the extension was negligent enough to leave the stub -unedited. - -Blah blah blah. - -=head2 EXPORT - -None by default. - -=head2 Exportable constants - - CUPS_DATE_ANY - CUPS_VERSION - HTTP_MAX_BUFFER - HTTP_MAX_HOST - HTTP_MAX_URI - HTTP_MAX_VALUE - IPP_MAX_NAME - IPP_MAX_VALUES - IPP_PORT - PPD_MAX_LINE - PPD_MAX_NAME - PPD_MAX_TEXT - PPD_VERSION - - -=head1 AUTHOR - -A. U. Thor, E<lt>a.u.thor@a.galaxy.far.far.awayE<gt> - -=head1 SEE ALSO - -L<perl>. - -=cut |