Lines Matching refs:strbuf
203 static char *processInclude(FileState *curfs, char *strbuf, char *includeline, size_t *pMaxSize, si…
208 static char *appendError(FileState *fs, char *msg, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in appendError() argument
211 strbuf = appendBuffer(strbuf, "#error \"", pMaxSize, pCurSize); in appendError()
212 strbuf = appendBuffer(strbuf, fs->fname ? fs->fname : "(unknown)", pMaxSize, pCurSize); in appendError()
213 strbuf = appendBuffer(strbuf, ": ", pMaxSize, pCurSize); in appendError()
215 strbuf = appendBuffer(strbuf, temp, pMaxSize, pCurSize); in appendError()
216 strbuf = appendBuffer(strbuf, ": ", pMaxSize, pCurSize); in appendError()
217 strbuf = appendBuffer(strbuf, msg, pMaxSize, pCurSize); in appendError()
218 strbuf = appendBuffer(strbuf, "\"\n", pMaxSize, pCurSize); in appendError()
219 return strbuf; in appendError()
229 getFile(FileState *fs, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in getFile() argument
263 strbuf = processInclude(fs, strbuf, ptr+8, pMaxSize, pCurSize); in getFile()
265 strbuf = appendBuffer(strbuf, linebuf, pMaxSize, pCurSize); in getFile()
274 strbuf = appendBuffer(strbuf, "\n", pMaxSize, pCurSize); in getFile()
275 return strbuf; in getFile()
282 static char *processInclude(FileState *oldfs, char *strbuf, char *includeline, size_t *pMaxSize, si… in processInclude() argument
295 strbuf = appendError(oldfs, "#includes nested too deeply", strbuf, pMaxSize, pCurSize); in processInclude()
297 return strbuf; in processInclude()
303 strbuf = appendError(oldfs, "expected quote after #include", strbuf, pMaxSize, pCurSize); in processInclude()
304 return strbuf; in processInclude()
310 strbuf = appendError(oldfs, "missing quote at end of #include", strbuf, pMaxSize, pCurSize); in processInclude()
311 return strbuf; in processInclude()
351 strbuf = appendError(oldfs, temp, strbuf, pMaxSize, pCurSize); in processInclude()
353 return strbuf; in processInclude()
359 strbuf = getFile(&fs, strbuf, pCurSize, pMaxSize); in processInclude()
362 return strbuf; in processInclude()