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/api.c (reset_parser), *


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/api.c (reset_parser), * tp/Texinfo/XS/xspara.c (xspara_end, xspara__add_next): Add dTHX to allow compilation on MinGW.
Date: Sun, 15 Oct 2023 07:37:53 -0400

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 ec2b1994b9 * tp/Texinfo/XS/parsetexi/api.c (reset_parser), * 
tp/Texinfo/XS/xspara.c (xspara_end, xspara__add_next): Add dTHX to allow 
compilation on MinGW.
ec2b1994b9 is described below

commit ec2b1994b9d7aa9c580b83b527bf465bbb1e30fa
Author: Eli Zaretskii <eliz@gnu.org>
AuthorDate: Sun Oct 15 12:37:43 2023 +0100

    * tp/Texinfo/XS/parsetexi/api.c (reset_parser),
    * tp/Texinfo/XS/xspara.c (xspara_end, xspara__add_next):
    Add dTHX to allow compilation on MinGW.
    
    [Note from Gavin: this may be needed because these functions
    call fprintf.]
---
 ChangeLog                     | 9 +++++++++
 tp/Texinfo/XS/parsetexi/api.c | 2 ++
 tp/Texinfo/XS/xspara.c        | 7 +++++++
 3 files changed, 18 insertions(+)

diff --git a/ChangeLog b/ChangeLog
index 60eca4f72c..2b9d3cbf8d 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,12 @@
+2023-10-15  Eli Zaretskii <eliz@gnu.org>
+
+       * tp/Texinfo/XS/parsetexi/api.c (reset_parser),
+       * tp/Texinfo/XS/xspara.c (xspara_end, xspara__add_next):
+       Add dTHX to allow compilation on MinGW.
+
+       [Note from Gavin: this may be needed because these functions
+       call fprintf.]
+
 2023-10-14  Gavin Smith <gavinsmith0123@gmail.com>
 
        pretest 7.0.94
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index b8720e6b38..08befd6a5c 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -158,6 +158,8 @@ reset_parser_except_conf (void)
 void
 reset_parser (int debug_output)
 {
+  dTHX;
+
   /* NOTE: Do not call 'malloc' or 'free' in this function or in any function
      called in this file.  Since this file (api.c) includes the Perl headers,
      we get the Perl redefinitions, which we do not want, as we don't use
diff --git a/tp/Texinfo/XS/xspara.c b/tp/Texinfo/XS/xspara.c
index efb645f14c..7c6895a7ff 100644
--- a/tp/Texinfo/XS/xspara.c
+++ b/tp/Texinfo/XS/xspara.c
@@ -565,6 +565,8 @@ xspara_get_pending (void)
 void
 xspara__add_pending_word (TEXT *result, int add_spaces)
 {
+  dTHX;
+
   if (state.word.end == 0 && !state.invisible_pending_word && !add_spaces)
     return;
 
@@ -640,6 +642,9 @@ char *
 xspara_end (void)
 {
   static TEXT ret;
+
+  dTHX;
+
   text_reset (&ret);
   state.end_line_count = 0;
 
@@ -686,6 +691,8 @@ xspara_end (void)
 void
 xspara__add_next (TEXT *result, char *word, int word_len, int transparent)
 {
+  dTHX;
+
   int disinhibit = 0;
   if (!word)
     return;



reply via email to

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