Lines Matching refs:strbuf

210 static char *processInclude(FileState *curfs, char *strbuf, char *includeline, size_t *pMaxSize, si…
215 static char *appendError(FileState *fs, char *msg, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in appendError() argument
218 strbuf = appendBuffer(strbuf, "#error \"", pMaxSize, pCurSize); in appendError()
219 strbuf = appendBuffer(strbuf, fs->fname ? fs->fname : "(unknown)", pMaxSize, pCurSize); in appendError()
220 strbuf = appendBuffer(strbuf, ": ", pMaxSize, pCurSize); in appendError()
222 strbuf = appendBuffer(strbuf, temp, pMaxSize, pCurSize); in appendError()
223 strbuf = appendBuffer(strbuf, ": ", pMaxSize, pCurSize); in appendError()
224 strbuf = appendBuffer(strbuf, msg, pMaxSize, pCurSize); in appendError()
225 strbuf = appendBuffer(strbuf, "\"\n", pMaxSize, pCurSize); in appendError()
226 return strbuf; in appendError()
236 getFile(FileState *fs, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in getFile() argument
270 strbuf = processInclude(fs, strbuf, ptr+8, pMaxSize, pCurSize); in getFile()
272 strbuf = appendBuffer(strbuf, linebuf, pMaxSize, pCurSize); in getFile()
281 strbuf = appendBuffer(strbuf, "\n", pMaxSize, pCurSize); in getFile()
282 return strbuf; in getFile()
289 static char *processInclude(FileState *oldfs, char *strbuf, char *includeline, size_t *pMaxSize, si… in processInclude() argument
302 strbuf = appendError(oldfs, "#includes nested too deeply", strbuf, pMaxSize, pCurSize); in processInclude()
304 return strbuf; in processInclude()
310 strbuf = appendError(oldfs, "expected quote after #include", strbuf, pMaxSize, pCurSize); in processInclude()
311 return strbuf; in processInclude()
317 strbuf = appendError(oldfs, "missing quote at end of #include", strbuf, pMaxSize, pCurSize); in processInclude()
318 return strbuf; in processInclude()
358 strbuf = appendError(oldfs, temp, strbuf, pMaxSize, pCurSize); in processInclude()
360 return strbuf; in processInclude()
366 strbuf = getFile(&fs, strbuf, pMaxSize, pCurSize); in processInclude()
369 return strbuf; in processInclude()