MAJOR=4
MINOR=23
DEVNAME=tty23
     	ˆÁÀÆ‚p¿ÅÄ Y    	‹      ÍVQoÚ0~ï¯ðü°7r!Ð1Ñà©#•†FQ¦iš&äÄ†X$qfRöëg:�J§ñä³ýÅþ¾»Ë�ý7A¿=ú6¸CŸF÷]4øò±Ûi#\øZk£ Ü¨;nà®‡Ž�É› EQ8EÍ‘j
£!Ä&Mê �‘q˜a˜\ù«5r…ü˜SfGäaN:ã�HNÈ¹Ñ‚qok “©Í36	wO¥k'’2·0éŠÖÉm¯[j`|a"£4š×2zÚÃS»R÷¡¼ÔÒ€?”l¹¢W=7{ãÚ4\3Z™Šø&FšˆiÖÂFæ˜ø"�"­¢ÉLÛ3i6s¦b‚MLï´û?,L¼úšøÅŠOZøC»Õ»é·Lz4å>ÐÃ˜{‹¹Å¤KµA©db"8;
~(Áâ×ñƒp)‘!³¬Ä}©‘LtN­Ök« Vû¨Â^ò�ž9cp;¼ë�‚Î°t	[±c÷ß‹É€*žÅ##Õr£½$ò6u~³�¢�2%¦±Á¡
:ˆ|…;æÙ,“E¶ïëíƒ¾HéãXQLžÌ}²°ó\ï]¥êU\¹�¦ç"thkÃçsÊÙ“Œ­y)2&2a\í«8–˜¹,¸²ÙSŽÿ‚ÿ™³IÙj:¦«š:ž…˜<›^J8^!G¯«ò8§S®ÇŠÿœÛßÙv±ƒË—"ïôlÛ¯W;ûEÕJÍEUÛ»—’us¾°Å“r<]Àû¿Ä‰�6=Ý‡õãÂ‡òíóõ¿\A^	    =   ˆl–ß=¿J	Å4Ÿº‚ œP.Ü®6â˜´oŽþD%œp,„Jûn ÏÈ34Ç_ˆI|¥�+y,ÇÆ  "    #include <asm-generic/termbits.h>
  ?   ˆl–Ü4ý(”ÜZÔÍÆÞ¸ )‹Fÿ�þDÛãY²F(ÈY^‘ÐùÊƒ}Á9É_ˆI|¥�+V[(ÉÈ %š    # $Id$

package XML::SAX;

use strict;
use vars qw($VERSION @ISA @EXPORT_OK);

$VERSION = '1.02';

use Exporter ();
@ISA = ('Exporter');

@EXPORT_OK = qw(Namespaces Validation);

use File::Basename qw(dirname);
use File::Spec ();
use Symbol qw(gensym);
use XML::SAX::ParserFactory (); # loaded for simplicity

use constant PARSER_DETAILS => "ParserDetails.ini";

use constant Namespaces => "http://xml.org/sax/features/namespaces";
use constant Validation => "http://xml.org/sax/features/validation";

my $known_parsers = undef;

# load_parsers takes the ParserDetails.ini file out of the same directory
# that XML::SAX is in, and looks at it. Format in POD below

=begin EXAMPLE

[XML::SAX::PurePerl]
http://xml.org/sax/features/namespaces = 1
http://xml.org/sax/features/validation = 0
# a comment

# blank lines ignored

[XML::SAX::AnotherParser]
http://xml.org/sax/features/namespaces = 0
http://xml.org/sax/features/validation = 1

=end EXAMPLE

=cut

sub load_parsers {
    my $class = shift;
    my $dir = shift;
    
    # reset parsers
    $known_parsers = [];
    
    # get directory from wherever XML::SAX is installed
    if (!$dir) {
        $dir = $INC{'XML/SAX.pm'};
        $dir = dirname($dir);
    }
    
    my $fh = gensym();
    if (!open($fh, File::Spec->catfile($dir, "SAX", PARSER_DETAILS))) {
        XML::SAX->do_warn("could not find " . PARSER_DETAILS . " in $dir/SAX\n");
        return $class;
    }

    $known_parsers = $class->_parse_ini_file($fh);

    return $class;
}

sub _parse_ini_file {
    my $class = shift;
    my ($fh) = @_;

    my @config;
    
    my $lineno = 0;
    while (defined(my $line = <$fh>)) {
        $lineno++;
        my $original = $line;
        # strip whitespace
        $line =~ s/\s*$//m;
        $line =~ s/^\s*//m;
        # strip comments
        $line =~ s/[#;].*$//m;
        # ignore blanks
        next if $line =~ /^$/m;
        
        # heading
        if ($line =~ /^\[\s*(.*)\s*\]$/m) {
            push @config, { Name => $1 };
            next;
        }
        
        # instruction
        elsif ($line =~ /^(.*?)\s*?=\s*(.*)$/) {
            unless(@config) {
                push @config, { Name => '' };
            }
            $config[-1]{Features}{$1} = $2;
        }

        # not whitespace, comment, or instruction
        else {
            die "Invalid line in ini: $lineno\n>>> $original\n";
        }
    }

    return \@config;
}

sub parsers {
    my $class = shift;
    if (!$known_parsers) {
        $class->load_parsers();
    }
    return $known_parsers;
}

sub remove_parser {
    my $class = shift;
    my ($parser_module) = @_;

    if (!$known_parsers) {
        $class->load_parsers();
    }
    
    @$known_parsers = grep { $_->{Name} ne $parser_module } @$known_parsers;

    return $class;
}
 
sub add_parser {
    my $class = shift;
    my ($parser_module) = @_;

    if (!$known_parsers) {
        $class->load_parsers();
    }
    
    # first load module, then query features, then push onto known_parsers,
    
    my $parser_file = $parser_module;
    $parser_file =~ s/::/\//g;
    $parser_file .= ".pm";

    require $parser_file;

    my @features = $parser_module->supported_features();
    
    my $new = { Name =>