Lines Matching refs:filename
80 processStream(const XML_Char *filename, XML_Parser parser);
83 reportError(XML_Parser parser, const XML_Char *filename) in reportError() argument
93 filename, in reportError()
98 ftprintf(stderr, T("%s: (unknown message %d)\n"), filename, code); in reportError()
104 const XML_Char *filename, void *args) in processFile() argument
109 reportError(parser, filename); in processFile()
165 const XML_Char *filename; in externalEntityRefFilemap() local
171 filename = resolveSystemId(base, systemId, &s); in externalEntityRefFilemap()
172 XML_SetBase(entParser, filename); in externalEntityRefFilemap()
173 filemapRes = filemap(filename, processFile, &args); in externalEntityRefFilemap()
180 T(", switching to streaming\n"), filename); in externalEntityRefFilemap()
181 result = processStream(filename, entParser); in externalEntityRefFilemap()
190 processStream(const XML_Char *filename, XML_Parser parser) in processStream() argument
195 if (filename != NULL) { in processStream()
196 fd = topen(filename, O_BINARY|O_RDONLY); in processStream()
198 tperror(filename); in processStream()
206 if (filename != NULL) in processStream()
209 filename != NULL ? filename : T("xmlwf")); in processStream()
214 tperror(filename != NULL ? filename : T("STDIN")); in processStream()
215 if (filename != NULL) in processStream()
220 reportError(parser, filename != NULL ? filename : T("STDIN")); in processStream()
221 if (filename != NULL) in processStream()
226 if (filename != NULL) in processStream()
242 const XML_Char *filename; in externalEntityRefStream() local
245 filename = resolveSystemId(base, systemId, &s); in externalEntityRefStream()
246 XML_SetBase(entParser, filename); in externalEntityRefStream()
247 ret = processStream(filename, entParser); in externalEntityRefStream()
255 const XML_Char *filename, in XML_ProcessFile() argument
260 if (!XML_SetBase(parser, filename)) { in XML_ProcessFile()
261 ftprintf(stderr, T("%s: out of memory"), filename); in XML_ProcessFile()
275 filemapRes = filemap(filename, processFile, &args); in XML_ProcessFile()
282 T(", switching to streaming\n"), filename); in XML_ProcessFile()
283 result = processStream(filename, parser); in XML_ProcessFile()
288 result = processStream(filename, parser); in XML_ProcessFile()