texinfo-commits
[Top][All Lists]
Advanced

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

branch master updated: * tp/Texinfo/XS/convert/call_html_perl_function.c


From: Patrice Dumas
Subject: branch master updated: * tp/Texinfo/XS/convert/call_html_perl_function.c (call_stage_handler), tp/Texinfo/XS/convert/convert_html.c (html_run_stage_handlers): set status to 1 in call_stage_handler if error status is set. Set the call_status in html_run_stage_handlers, to a positive value.
Date: Tue, 29 Oct 2024 11:37:02 -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 1d86921720 * tp/Texinfo/XS/convert/call_html_perl_function.c 
(call_stage_handler), tp/Texinfo/XS/convert/convert_html.c 
(html_run_stage_handlers): set status to 1 in call_stage_handler if error 
status is set.  Set the call_status in html_run_stage_handlers, to a positive 
value.
1d86921720 is described below

commit 1d8692172027b0fd16726f007d7c0224d4fb7dfd
Author: Patrice Dumas <pertusus@free.fr>
AuthorDate: Tue Oct 29 16:36:51 2024 +0100

    * tp/Texinfo/XS/convert/call_html_perl_function.c
    (call_stage_handler), tp/Texinfo/XS/convert/convert_html.c
    (html_run_stage_handlers): set status to 1 in call_stage_handler if
    error status is set.  Set the call_status in html_run_stage_handlers,
    to a positive value.
---
 ChangeLog                                       | 8 ++++++++
 tp/Texinfo/XS/convert/call_html_perl_function.c | 2 +-
 tp/Texinfo/XS/convert/convert_html.c            | 2 ++
 3 files changed, 11 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index ce7689ac89..6963d4633e 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,11 @@
+2024-10-29  Patrice Dumas  <pertusus@free.fr>
+
+       * tp/Texinfo/XS/convert/call_html_perl_function.c
+       (call_stage_handler), tp/Texinfo/XS/convert/convert_html.c
+       (html_run_stage_handlers): set status to 1 in call_stage_handler if
+       error status is set.  Set the call_status in html_run_stage_handlers,
+       to a positive value.
+
 2024-10-29  Patrice Dumas  <pertusus@free.fr>
 
        * tp/Makefile.am (test_files), tp/t/init/stage_handler_bad_return.pm,
diff --git a/tp/Texinfo/XS/convert/call_html_perl_function.c 
b/tp/Texinfo/XS/convert/call_html_perl_function.c
index 6545baa5f9..577f48fd9b 100644
--- a/tp/Texinfo/XS/convert/call_html_perl_function.c
+++ b/tp/Texinfo/XS/convert/call_html_perl_function.c
@@ -2396,7 +2396,7 @@ call_stage_handler (CONVERTER *self, void 
*stage_handler_sv,
   result_sv = POPs;
   if (!SvOK (result_sv) || SvROK (result_sv) || !looks_like_number(result_sv))
     {
-      status = -self->conf->HANDLER_FATAL_ERROR_LEVEL.o.integer - 1;
+      status = 1;
       *error_status = 1;
     }
   else
diff --git a/tp/Texinfo/XS/convert/convert_html.c 
b/tp/Texinfo/XS/convert/convert_html.c
index de12e22941..2aec97aa3b 100644
--- a/tp/Texinfo/XS/convert/convert_html.c
+++ b/tp/Texinfo/XS/convert/convert_html.c
@@ -732,6 +732,8 @@ html_run_stage_handlers (CONVERTER *self,
                                                    self->conf, 0,
                  "handler %d of stage %s priority %s: non-numeric status",
                               (int) i+1, stage_name, stage_handler->priority);
+                  call_status = self->conf->HANDLER_FATAL_ERROR_LEVEL.o.integer
+                                 +1;
                 }
 
               if (call_status != 0)



reply via email to

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