[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
branch master updated: * tp/Texinfo/ParserNonXS.pm (%parser_state_initia
From: |
Patrice Dumas |
Subject: |
branch master updated: * tp/Texinfo/ParserNonXS.pm (%parser_state_initialization): initialize 'internal_references'. |
Date: |
Tue, 16 Apr 2024 10:38:06 -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 0620a6d284 * tp/Texinfo/ParserNonXS.pm (%parser_state_initialization):
initialize 'internal_references'.
0620a6d284 is described below
commit 0620a6d2846a88868cd1d6d3b41ff456219d2d09
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Apr 16 16:37:49 2024 +0200
* tp/Texinfo/ParserNonXS.pm (%parser_state_initialization): initialize
'internal_references'.
---
ChangeLog | 5 +++++
tp/Texinfo/Common.pm | 4 ++++
tp/Texinfo/ParserNonXS.pm | 4 ++++
3 files changed, 13 insertions(+)
diff --git a/ChangeLog b/ChangeLog
index 30e9bdd14b..072002ba8a 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2024-04-16 Patrice Dumas <pertusus@free.fr>
+
+ * tp/Texinfo/ParserNonXS.pm (%parser_state_initialization): initialize
+ 'internal_references'.
+
2024-04-16 Patrice Dumas <pertusus@free.fr>
* Pod-Simple-Texinfo/lib/Pod/Simple/Texinfo.pm
diff --git a/tp/Texinfo/Common.pm b/tp/Texinfo/Common.pm
index fc7252c770..28dd559338 100644
--- a/tp/Texinfo/Common.pm
+++ b/tp/Texinfo/Common.pm
@@ -1400,6 +1400,10 @@ sub remove_from_array($$)
my $array = shift;
my $element = shift;
+ #if (!defined($array)) {
+ # cluck();
+ #}
+
for (my $index = 0; $index < scalar(@$array); $index++) {
if ($array->[$index] eq $element) {
return splice(@$array, $index, 1);
diff --git a/tp/Texinfo/ParserNonXS.pm b/tp/Texinfo/ParserNonXS.pm
index fea1001430..728e54e65d 100644
--- a/tp/Texinfo/ParserNonXS.pm
+++ b/tp/Texinfo/ParserNonXS.pm
@@ -144,6 +144,10 @@ my %parser_state_initialization = (
'identifiers_target' => {}, # keys are normalized label names, as described
# in the `HTML Xref' node. Value should be
# a node/anchor or float in the tree.
+ 'internal_references' => [], # list of elements source of cross-references,
+ # commands like @ref without books or external
+ # manual files, and menu entries without
+ # external manual.
'macros' => {}, # the key is the user-defined macro name. The
# value is the reference on a macro element
# as obtained by parsing the @macro
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- branch master updated: * tp/Texinfo/ParserNonXS.pm (%parser_state_initialization): initialize 'internal_references'.,
Patrice Dumas <=