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 (Root): Declare a


From: Gavin D. Smith
Subject: branch master updated: * tp/Texinfo/XS/parsetexi/api.c (Root): Declare as a static pointer. For some reason, even though the symbol was undefined in the XS library, the program still ran, although much slower.
Date: Fri, 14 Apr 2023 16:29:41 -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 b4e176d45a * tp/Texinfo/XS/parsetexi/api.c (Root): Declare as a static 
pointer.  For some reason, even though the symbol was undefined in the XS 
library, the program still ran, although much slower.
b4e176d45a is described below

commit b4e176d45a8c97e39e9b526c6ed92f8a084566ff
Author: Gavin Smith <gavinsmith0123@gmail.com>
AuthorDate: Fri Apr 14 21:29:29 2023 +0100

    * tp/Texinfo/XS/parsetexi/api.c (Root): Declare as a static
    pointer.  For some reason, even though the symbol was undefined
    in the XS library, the program still ran, although much slower.
---
 ChangeLog                     | 6 ++++++
 tp/Texinfo/XS/parsetexi/api.c | 2 ++
 tp/Texinfo/XS/parsetexi/api.h | 1 -
 3 files changed, 8 insertions(+), 1 deletion(-)

diff --git a/ChangeLog b/ChangeLog
index 8564d87c1c..985eb44a8c 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+2023-04-14  Gavin Smith <gavinsmith0123@gmail.com>
+
+       * tp/Texinfo/XS/parsetexi/api.c (Root): Declare as a static
+       pointer.  For some reason, even though the symbol was undefined
+       in the XS library, the program still ran, although much slower.
+
 2023-04-14  Gavin Smith <gavinsmith0123@gmail.com>
 
        * tp/Texinfo/XS/parsetexi/api.c (reset_parser_except_conf):
diff --git a/tp/Texinfo/XS/parsetexi/api.c b/tp/Texinfo/XS/parsetexi/api.c
index a6a5db32ad..56b4aa120a 100644
--- a/tp/Texinfo/XS/parsetexi/api.c
+++ b/tp/Texinfo/XS/parsetexi/api.c
@@ -113,6 +113,8 @@ reset_floats ()
   floats_number = 0;
 }
 
+static ELEMENT *Root;
+
 void
 reset_parser_except_conf (void)
 {
diff --git a/tp/Texinfo/XS/parsetexi/api.h b/tp/Texinfo/XS/parsetexi/api.h
index f0b2fc03bf..96fe3f3eb0 100644
--- a/tp/Texinfo/XS/parsetexi/api.h
+++ b/tp/Texinfo/XS/parsetexi/api.h
@@ -1,7 +1,6 @@
 /* api.h - declarations for api.c */
 #ifndef API_H
 #define API_H
-extern ELEMENT *Root;
 
 int init (int texinfo_uninstalled, char *srcdir_in);
 



reply via email to

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