[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * util/texi-elements-by-size: pass a document in
From: |
Patrice Dumas |
Subject: |
branch master updated: * util/texi-elements-by-size: pass a document in argument of sort_element_counts. |
Date: |
Wed, 25 Oct 2023 03:16:15 -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 e75b4f6127 * util/texi-elements-by-size: pass a document in argument
of sort_element_counts.
e75b4f6127 is described below
commit e75b4f612736daf42dc56985abcd443c4b0e6e2e
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Wed Oct 25 09:16:15 2023 +0200
* util/texi-elements-by-size: pass a document in argument of
sort_element_counts.
---
ChangeLog | 5 +++++
util/texi-elements-by-size | 5 ++---
2 files changed, 7 insertions(+), 3 deletions(-)
diff --git a/ChangeLog b/ChangeLog
index f213069b9d..f6fb769d3c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-10-25 Patrice Dumas <pertusus@free.fr>
+
+ * util/texi-elements-by-size: pass a document in argument of
+ sort_element_counts.
+
2023-10-25 Patrice Dumas <pertusus@free.fr>
* Pod-Simple-Texinfo/lib/Pod/Simple/Texinfo.pm (_protect_*)
diff --git a/util/texi-elements-by-size b/util/texi-elements-by-size
index 01bb57ee61..77d685d33a 100755
--- a/util/texi-elements-by-size
+++ b/util/texi-elements-by-size
@@ -218,11 +218,10 @@ unshift @{$parser_options->{'INCLUDE_DIRECTORIES'}},
@prepend_dirs;
my $error_count = 0;
my $parser = Texinfo::Parser::parser($parser_options);
my $document = $parser->parse_texi_file($input_file_name);
-my $tree = $document->tree();
my $registrar = $parser->registered_errors();
-if (!defined($tree)) {
+if (!defined($document)) {
handle_errors($registrar, $error_count);
exit (1);
}
@@ -232,7 +231,7 @@ $converter_options->{'document'} = $document;
my $converter = Texinfo::Convert::TextContent->converter($converter_options);
my ($sorted_name_counts_array, $formatted_result)
- = $converter->sort_element_counts($tree, $use_sections,
+ = $converter->sort_element_counts($document, $use_sections,
$count_words);
print STDOUT $formatted_result;
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * util/texi-elements-by-size: pass a document in argument of sort_element_counts.,
Patrice Dumas <=
- Prev by Date:
branch master updated: * Pod-Simple-Texinfo/lib/Pod/Simple/Texinfo.pm (_protect_*) (_reference_to_text_in_texi, _normalize_texinfo_name, _prepare_anchor), Pod-Simple-Texinfo/pod2texi.pl (_parsed_manual_tree) (_fix_texinfo_tree): call Texinfo::Structuring::rebuild_document or Texinfo::Structuring::rebuild_tree to rebuild the tree if modified in XS.
- Next by Date:
branch master updated: * tp/Texinfo/Common.pm (import, copy_treeNonXS, copy_contentsNonXS), tp/Texinfo/Structuring.pm (import), tp/Texinfo/XS/structuring_transfo/StructuringTransfo.xs (copy_tree), tp/t/test_tree_copy.t: remove copy_tree from Structuring.pm. Override copy_tree in Common.pm. Let XS copy_tree build the tree and return the perl tree. Add NonXS variants for copy_tree and copy_contents for situations where the XS tree cannot be found or where we want to modify perl trees only. Update callers of co [...]
- Previous by thread:
branch master updated: * Pod-Simple-Texinfo/lib/Pod/Simple/Texinfo.pm (_protect_*) (_reference_to_text_in_texi, _normalize_texinfo_name, _prepare_anchor), Pod-Simple-Texinfo/pod2texi.pl (_parsed_manual_tree) (_fix_texinfo_tree): call Texinfo::Structuring::rebuild_document or Texinfo::Structuring::rebuild_tree to rebuild the tree if modified in XS.
- Next by thread:
branch master updated: * tp/Texinfo/Common.pm (import, copy_treeNonXS, copy_contentsNonXS), tp/Texinfo/Structuring.pm (import), tp/Texinfo/XS/structuring_transfo/StructuringTransfo.xs (copy_tree), tp/t/test_tree_copy.t: remove copy_tree from Structuring.pm. Override copy_tree in Common.pm. Let XS copy_tree build the tree and return the perl tree. Add NonXS variants for copy_tree and copy_contents for situations where the XS tree cannot be found or where we want to modify perl trees only. Update callers of co [...]
- Index(es):