texinfo-commits
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

branch master updated: * util/texi-elements-by-size: use $parser->regist


From: Patrice Dumas
Subject: branch master updated: * util/texi-elements-by-size: use $parser->registered_errors().
Date: Wed, 01 Sep 2021 10:10:09 -0400

This is an automated email from the git hooks/post-receive script.

pertusus pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new 6880f3d  * util/texi-elements-by-size: use 
$parser->registered_errors().
6880f3d is described below

commit 6880f3dd44bc441407b11c5b815a0de71f85ac6a
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Sep 1 16:09:59 2021 +0200

    * util/texi-elements-by-size: use $parser->registered_errors().
---
 ChangeLog                  | 4 ++++
 util/texi-elements-by-size | 4 +++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 1f7ed62..a76d5e8 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,9 @@
 2021-09-01  Patrice Dumas  <pertusus@free.fr>
 
+       * util/texi-elements-by-size: use $parser->registered_errors().
+
+2021-09-01  Patrice Dumas  <pertusus@free.fr>
+
        * tp/Texinfo/Common.pm (%default_parser_customization_values)
        (@variable_other_settables, locate_include_file)
        (_convert_text_options),
diff --git a/util/texi-elements-by-size b/util/texi-elements-by-size
index 4fd62df..b568f8c 100755
--- a/util/texi-elements-by-size
+++ b/util/texi-elements-by-size
@@ -219,8 +219,10 @@ my $error_count = 0;
 my $parser = Texinfo::Parser::parser($parser_options);
 my $tree = $parser->parse_texi_file($input_file_name);
 
+my $registrar = $parser->registered_errors();
+
 if (!defined($tree)) {
-  handle_errors($parser, $error_count);
+  handle_errors($registrar, $error_count);
   exit (1);
 }
 



reply via email to

[Prev in Thread] Current Thread [Next in Thread]