texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/parsetexi/handle_commands.c (pars


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/handle_commands.c (parse_line_command_args): Reference regions stack correctly. Report from Patrice.
Date: Wed, 15 Feb 2023 14:40:20 -0500

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

gavin pushed a commit to branch master
in repository texinfo.

The following commit(s) were added to refs/heads/master by this push:
     new d84b9450d7 * tp/Texinfo/XS/parsetexi/handle_commands.c 
(parse_line_command_args): Reference regions stack correctly.  Report from 
Patrice.
d84b9450d7 is described below

commit d84b9450d70636ff27b48af75937c63be2e11478
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Wed Feb 15 19:40:10 2023 +0000

    * tp/Texinfo/XS/parsetexi/handle_commands.c (parse_line_command_args):
    Reference regions stack correctly.  Report from Patrice.
---
 ChangeLog                          | 5 +++++
 tp/Texinfo/XS/parsetexi/end_line.c | 3 ++-
 2 files changed, 7 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 915ac9559f..a06286e4da 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2023-02-15  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/parsetexi/handle_commands.c (parse_line_command_args):
+       Reference regions stack correctly.  Report from Patrice.
+
 2023-02-15  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Makefile.tres, tp/t/languages.t: rename simple as
diff --git a/tp/Texinfo/XS/parsetexi/end_line.c 
b/tp/Texinfo/XS/parsetexi/end_line.c
index 53d5c87522..b09c89cf54 100644
--- a/tp/Texinfo/XS/parsetexi/end_line.c
+++ b/tp/Texinfo/XS/parsetexi/end_line.c
@@ -617,7 +617,8 @@ parse_line_command_args (ELEMENT *line_command)
                       ("printing an index `%s' merged in another one, `%s'",
                        arg, i2->name);
                   }
-                if (!current_node && !current_section && !current_region ())
+                if (!current_node && !current_section
+                      && nesting_context.regions_stack.top == 0)
                   {
                     line_warn ("printindex before document beginning: "
                                 "@printindex %s", arg);



reply via email to

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