|
63 | 63 | <FormalSpec>path:%String</FormalSpec> |
64 | 64 | <Implementation><![CDATA[ |
65 | 65 | try { |
66 | | - set prev = gd.NULL |
| 66 | + set prev = ..gd.NULL |
67 | 67 |
|
68 | 68 | set argTypes = ##class(%ListOfDataTypes).%New() |
69 | 69 | do argTypes.Insert(..libc.#POINTER) |
|
73 | 73 | set pMode = ..libc.ConvertStringToPointer("wb") |
74 | 74 |
|
75 | 75 | set out = ..libc.CallFunction("fopen", ..libc.#POINTER, argTypes, pPath, pMode) |
76 | | - if (out = libc.NULL) { |
| 76 | + if (out = ..libc.NULL) { |
77 | 77 | write "Can't open file " _ path _ "for writing", ! |
78 | 78 | return |
79 | 79 | } |
|
127 | 127 | do argTypes.Insert(..gd.#POINTER) |
128 | 128 | do ..gd.CallFunction("gdImageGifAnimAdd", ..gd.#VOID, argTypes, im, out, 1, 0, 0, 10, 1, prev) |
129 | 129 | |
130 | | - if (prev '= gd.NULL) { |
| 130 | + if (prev '= ..gd.NULL) { |
131 | 131 | do argTypes.Clear() |
132 | 132 | do argTypes.Insert(..gd.#POINTER) |
133 | 133 | do ..gd.CallFunction("gdImageDestroy", ..gd.#VOID, argTypes, prev) |
|
160 | 160 | do argTypes.Insert(..libc.#POINTER) |
161 | 161 |
|
162 | 162 | set fd = ..libc.CallFunction("fopen", ..libc.#POINTER, argTypes, pPath, rb) |
163 | | - if (fd = libc.NULL) { |
| 163 | + if (fd = ..libc.NULL) { |
164 | 164 | write "Can't open file " _ path _ "for reading", ! |
165 | 165 | return |
166 | 166 | } |
167 | 167 |
|
168 | 168 | do argTypes.Clear() |
169 | 169 | do argTypes.Insert(..gd.#POINTER) |
170 | 170 | set im = ..gd.CallFunction("gdImageCreateFromPng", ..gd.#POINTER, argTypes, fd) |
171 | | - if (im = gd.NULL) { |
| 171 | + if (im = ..gd.NULL) { |
172 | 172 | write "Can't open png " _ path _ ". File may be corrupt or it does not contain PNG image", ! |
173 | 173 | return |
174 | 174 | } |
|
198 | 198 | |
199 | 199 | do argTypes.Insert(..libc.#POINTER) |
200 | 200 | set fd = ..libc.CallFunction("fopen", ..libc.#POINTER, argTypes, out, wb) |
201 | | - if (fd = libc.NULL) { |
| 201 | + if (fd = ..libc.NULL) { |
202 | 202 | write "Can't open file " _ saveTo _ "for writing", ! |
203 | 203 | return |
204 | 204 | } |
|
0 commit comments