File tree 2 files changed +4
-20
lines changed
2 files changed +4
-20
lines changed Original file line number Diff line number Diff line change @@ -107,12 +107,7 @@ module XML
107
107
end
108
108
109
109
protected def self.with_indent_tree_output (indent : Bool , & )
110
- ptr = {% if flag?(:win32 ) % }
111
- LibXML .__xmlIndentTreeOutput
112
- {% else % }
113
- pointerof (LibXML .xmlIndentTreeOutput)
114
- {% end % }
115
-
110
+ ptr = LibXML .__xmlIndentTreeOutput
116
111
old, ptr.value = ptr.value, indent ? 1 : 0
117
112
begin
118
113
yield
@@ -122,12 +117,7 @@ module XML
122
117
end
123
118
124
119
protected def self.with_tree_indent_string (string : String , & )
125
- ptr = {% if flag?(:win32 ) % }
126
- LibXML .__xmlTreeIndentString
127
- {% else % }
128
- pointerof (LibXML .xmlTreeIndentString)
129
- {% end % }
130
-
120
+ ptr = LibXML .__xmlTreeIndentString
131
121
old, ptr.value = ptr.value, string.to_unsafe
132
122
begin
133
123
yield
Original file line number Diff line number Diff line change @@ -13,14 +13,8 @@ lib LibXML
13
13
14
14
fun xmlInitParser
15
15
16
- # TODO: check if other platforms also support per-thread globals
17
- {% if flag?(:win32 ) % }
18
- fun __xmlIndentTreeOutput : Int *
19
- fun __xmlTreeIndentString : UInt8 **
20
- {% else % }
21
- $xmlIndentTreeOutput : Int
22
- $xmlTreeIndentString : UInt8 *
23
- {% end % }
16
+ fun __xmlIndentTreeOutput : Int *
17
+ fun __xmlTreeIndentString : UInt8 **
24
18
25
19
alias Dtd = Void *
26
20
alias Dict = Void *
You can’t perform that action at this time.
0 commit comments