File: Fix-declaration-of-libxml-error-handler.patch

package info (click to toggle)
tclxml 1%3A3.2.7-10
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 2,028 kB
  • sloc: ansic: 11,995; tcl: 6,842; sh: 463; makefile: 12
file content (36 lines) | stat: -rw-r--r-- 1,332 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
From: Ole Streicher <olebole@debian.org>
Date: Sun, 28 Jul 2024 17:19:54 +0200
Subject: Fix declaration of libxml error handler

Closes: #1075554, #1106632
---
 docObj.c                                     | 2 +-
 include/tclxml-libxml2/tclxml-libxml2Decls.h | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)

diff --git a/docObj.c b/docObj.c
index b91ab1f..7825fbf 100644
--- a/docObj.c
+++ b/docObj.c
@@ -1731,7 +1731,7 @@ ErrorCodeToString(code)
 void
 TclXML_libxml2_ErrorHandler (ctx, error)
      void *ctx; /* ignore - depends on context */
-     xmlErrorPtr error;
+     const struct _xmlError * error;
 {
   ThreadSpecificData *tsdPtr = Tcl_GetThreadData(&dataKey, sizeof(ThreadSpecificData));
   Tcl_Obj *objPtr;
diff --git a/include/tclxml-libxml2/tclxml-libxml2Decls.h b/include/tclxml-libxml2/tclxml-libxml2Decls.h
index 187b159..2ee621d 100644
--- a/include/tclxml-libxml2/tclxml-libxml2Decls.h
+++ b/include/tclxml-libxml2/tclxml-libxml2Decls.h
@@ -55,7 +55,7 @@ EXTERN void		TclXML_libxml2_DocKeep _ANSI_ARGS_((Tcl_Obj * objPtr,
 				TclXML_libxml2_DocumentHandling keep));
 /* 10 */
 EXTERN void		TclXML_libxml2_ErrorHandler _ANSI_ARGS_((void * ctx, 
-				xmlErrorPtr error));
+				const struct _xmlError * error));
 /* 11 */
 EXTERN void		TclXML_libxml2_ResetError _ANSI_ARGS_((
 				Tcl_Interp * interp));