Lines Matching refs:fs
208 static char *appendError(FileState *fs, char *msg, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in appendError() argument
212 strbuf = appendBuffer(strbuf, fs->fname ? fs->fname : "(unknown)", pMaxSize, pCurSize); in appendError()
214 sprintf_s(temp, sizeof(temp), "%d", fs->linenum); in appendError()
229 getFile(FileState *fs, char *strbuf, size_t *pMaxSize, size_t *pCurSize) in getFile() argument
233 FILE *fp = fs->fp; in getFile()
263 strbuf = processInclude(fs, strbuf, ptr+8, pMaxSize, pCurSize); in getFile()
269 fs->linenum++; in getFile()
289 FileState fs; in processInclude() local
355 fs.fname = fullfname; in processInclude()
356 fs.linenum = 1; in processInclude()
357 fs.fp = fp; in processInclude()
359 strbuf = getFile(&fs, strbuf, pCurSize, pMaxSize); in processInclude()
368 FileState fs; in AppendShaderSource() local
405 fs.fp = fp; in AppendShaderSource()
406 fs.linenum = 1; in AppendShaderSource()
407 fs.fname = pFilename; in AppendShaderSource()
408 *ppSource = getFile(&fs, *ppSource, &curLen, &totalLen); in AppendShaderSource()