summaryrefslogtreecommitdiff
path: root/macros/texinfo/texinfo/tp/Texinfo/Parser.pm
blob: 9cad7405c116bb018d0d78a5a085bb3748437416 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
# Copyright 2014-2019 Free Software Foundation, Inc.
#
# This program is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License,
# or (at your option) any later version.
# 
# This program is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
# GNU General Public License for more details.
# 
# You should have received a copy of the GNU General Public License
# along with this program.  If not, see <http://www.gnu.org/licenses/>.

package Texinfo::Parser;

# same as texi2any.pl
use 5.00405;
use strict;
use warnings;

our $VERSION = '7.0.1';

use Texinfo::XSLoader;

BEGIN {
  our $warning_message = undef;
  our $fatal_message = undef;

  my $xs_package = "Texinfo::Parser";
  if (defined $ENV{TEXINFO_XS_PARSER}
      and $ENV{TEXINFO_XS_PARSER} eq '0') {
    undef $xs_package;
  }

  my $package = Texinfo::XSLoader::init (
      $xs_package,
      "Texinfo::ParserNonXS",
      "Parsetexi",
      "Texinfo::XS::parsetexi::Parsetexi",
      0,
      $warning_message,
      $fatal_message
  );
}


# NB Don't add more functions down here, because this can cause an error
# with some versions of Perl, connected with any typeglob assignments done
# above.  ("Can't call mro_method_changed_in() on anonymous symbol table").
#
# See http://perl5.git.perl.org/perl.git/commitdiff/03d9f026ae253e9e69212a3cf6f1944437e9f070?hp=ac73ea1ec401df889d312b067f78b618f7ffecc3
#
# (change to Perl interpreter on 22 Oct 2011)


1;
__END__

The POD documentation of Texinfo::Parser is in Texinfo::ParserNonXS.