Skip to content

Commit b605820

Browse files
authored
Patch libxslt (#82)
Release-as: libxslt/v1.0.2
1 parent 70cde81 commit b605820

File tree

4 files changed

+13
-13
lines changed

4 files changed

+13
-13
lines changed

libxslt/go.mod

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,5 +4,5 @@ go 1.20
44

55
require (
66
github.com/goplus/lib v0.2.0
7-
github.com/goplus/llpkg/libxml2 v1.0.1
7+
github.com/goplus/llpkg/libxml2 v1.0.2
88
)

libxslt/go.sum

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
github.com/goplus/lib v0.2.0 h1:AjqkN1XK5H23wZMMlpaUYAMCDAdSBQ2NMFrLtSh7W4g=
22
github.com/goplus/lib v0.2.0/go.mod h1:SgJv3oPqLLHCu0gcL46ejOP3x7/2ry2Jtxu7ta32kp0=
3-
github.com/goplus/llpkg/libxml2 v1.0.1 h1:Eg9i7QSr5zJbawNoN/hSxt6/LUoZY8wF2VvlNxcn1Yc=
4-
github.com/goplus/llpkg/libxml2 v1.0.1/go.mod h1:5YXQ8OhzQeH+udVb1NPEryxH7hAiJ75p6+f5QBy7BpM=
3+
github.com/goplus/llpkg/libxml2 v1.0.2 h1:6Z8/lZwKBCweKA1q+U2ESMVFUiZWJiiOArAJ0PR7T4g=
4+
github.com/goplus/llpkg/libxml2 v1.0.2/go.mod h1:5YXQ8OhzQeH+udVb1NPEryxH7hAiJ75p6+f5QBy7BpM=

libxslt/llcppg.cfg

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@
3030
],
3131
"trimPrefixes": ["XSLT_","xslt"],
3232
"cplusplus": false,
33-
"deps": ["c/os","github.com/goplus/llpkg/[email protected].1"],
33+
"deps": ["c/os","github.com/goplus/llpkg/[email protected].2"],
3434
"symMap":{
3535
"xsltSetCtxtLocaleHandlers":"-"
3636
}

libxslt/xsltInternals.go

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ const MAX_SORT = 15
1010

1111
type X_xsltRuntimeExtra struct {
1212
Info c.Pointer
13-
Deallocate c.Pointer
13+
Deallocate libxml2.FreeFunc
1414
Val struct {
1515
Ptr c.Pointer
1616
}
@@ -200,9 +200,9 @@ type X_xsltTransformContext struct {
200200
Extras RuntimeExtraPtr
201201
StyleList DocumentPtr
202202
Sec c.Pointer
203-
Error c.Pointer
203+
Error libxml2.GenericErrorFunc
204204
Errctx c.Pointer
205-
Sortfunc c.Pointer
205+
Sortfunc SortFunc
206206
TmpRVT libxml2.DocPtr
207207
PersistRVT libxml2.DocPtr
208208
Ctxtflags c.Int
@@ -232,19 +232,19 @@ type X_xsltTransformContext struct {
232232
OpCount c.Ulong
233233
SourceDocDirty c.Int
234234
CurrentId c.Ulong
235-
NewLocale c.Pointer
236-
FreeLocale c.Pointer
237-
GenSortKey c.Pointer
235+
NewLocale NewLocaleFunc
236+
FreeLocale FreeLocaleFunc
237+
GenSortKey GenSortKeyFunc
238238
}
239239
type TransformContext X_xsltTransformContext
240240
type TransformContextPtr *TransformContext
241241

242242
type X_xsltElemPreComp struct {
243243
Next ElemPreCompPtr
244244
Type StyleType
245-
Func c.Pointer
245+
Func TransformFunction
246246
Inst libxml2.NodePtr
247-
Free c.Pointer
247+
Free ElemPreCompDeallocator
248248
}
249249
type ElemPreComp X_xsltElemPreComp
250250
type ElemPreCompPtr *ElemPreComp
@@ -287,7 +287,7 @@ type ElemPreCompDeallocator func(ElemPreCompPtr)
287287
type X_xsltStylePreComp struct {
288288
Next ElemPreCompPtr
289289
Type StyleType
290-
Func c.Pointer
290+
Func TransformFunction
291291
Inst libxml2.NodePtr
292292
Stype *libxml2.Char
293293
HasStype c.Int

0 commit comments

Comments
 (0)