Lines Matching refs:fs
215 static char *appendError(FileState *fs, char *msg, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in appendError() argument
219 strbuf = appendBuffer(strbuf, fs->fname ? fs->fname : "(unknown)", pMaxSize, pCurSize); in appendError()
221 sprintf_s(temp, sizeof(temp), "%d", fs->linenum); in appendError()
236 getFile(FileState *fs, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in getFile() argument
240 FILE *fp = fs->fp; in getFile()
270 strbuf = processInclude(fs, strbuf, ptr+8, pMaxSize, pCurSize); in getFile()
276 fs->linenum++; in getFile()
296 FileState fs; in processInclude() local
362 fs.fname = fullfname; in processInclude()
363 fs.linenum = 1; in processInclude()
364 fs.fp = fp; in processInclude()
366 strbuf = getFile(&fs, strbuf, pMaxSize, pCurSize); in processInclude()
375 FileState fs; in AppendShaderSource() local
412 fs.fp = fp; in AppendShaderSource()
413 fs.linenum = 1; in AppendShaderSource()
414 fs.fname = pFilename; in AppendShaderSource()
415 *ppSource = getFile(&fs, *ppSource, &totalLen, &curLen); in AppendShaderSource()