Lines Matching refs:in
205 static int ebReadString(ExpandBuf* pBuf, FILE* in) in ebReadString() argument
212 ic = getc(in); in ebReadString()
213 if (feof(in) || ferror(in)) { in ebReadString()
230 static int ebReadData(ExpandBuf* pBuf, FILE* in, size_t count, int eofExpected) in ebReadData() argument
237 actual = fread(pBuf->storage + pBuf->curLen, 1, count, in); in ebReadData()
239 if (eofExpected && feof(in) && !ferror(in)) { in ebReadData()
599 static int filterData(FILE* in, FILE* out, int flags) in filterData() argument
612 if (ebReadString(pBuf, in) != 0) in filterData()
635 if (ebReadData(pBuf, in, 12, FALSE) != 0) in filterData()
650 if (ebReadData(pBuf, in, 1, TRUE) != 0) in filterData()
652 if (feof(in)) in filterData()
656 if (ebReadData(pBuf, in, kRecHdrLen-1, FALSE) != 0) in filterData()
670 if (ebReadData(pBuf, in, length, FALSE) != 0) in filterData()
706 FILE* in = NULL; in main() local
726 if (!in) { in main()
727 in = fopen_or_default(arg, "rb", stdin); in main()
735 if (in == NULL || out == NULL) { in main()
739 res = filterData(in, out, flags); in main()
762 if (in != stdin) in main()
763 fclose(in); in main()