Lines Matching refs:pfile

114 uint8   read_uint8(const file_t *pfile);
115 uint16 read_uint16(const file_t *pfile);
116 uint32 read_uint32(const file_t *pfile);
117 void skip_bytes(const file_t *pfile, const size_t nnum);
147 read_uint8(const file_t *pfile) in read_uint8() argument
152 nread = fread(&ndata, sizeof(uint8), 1, pfile->pfs); in read_uint8()
154 fclose(pfile->pfs); in read_uint8()
155 err_quit("%s: truncated class file", pfile->pname); in read_uint8()
161 read_uint16(const file_t *pfile) in read_uint16() argument
166 nread = fread(&ndata, sizeof(uint16), 1, pfile->pfs); in read_uint16()
168 fclose(pfile->pfs); in read_uint16()
169 err_quit("%s: truncated class file", pfile->pname); in read_uint16()
176 read_uint32(const file_t *pfile) in read_uint32() argument
181 nread = fread(&ndata, sizeof(uint32), 1, pfile->pfs); in read_uint32()
183 fclose(pfile->pfs); in read_uint32()
184 err_quit("%s: truncated class file", pfile->pname); in read_uint32()
191 read_utf8(const file_t *pfile) in read_utf8() argument
205 a_utf8.nlen = read_uint16(pfile); in read_utf8()
208 nread = fread(a_utf8.pdata, a_utf8.nlen*sizeof(char), 1, pfile->pfs); in read_utf8()
210 fclose(pfile->pfs); in read_utf8()
211 err_quit("%s: truncated class file", pfile->pname); in read_utf8()
253 skip_bytes(const file_t *pfile, const size_t nnumber) in skip_bytes() argument
256 if ( fseek(pfile->pfs, nnumber, SEEK_CUR) == -1 ) in skip_bytes()
257 err_quit("%s: %s", pfile->pname, strerror(errno)); in skip_bytes()
789 FILE *pfile = fopen(++parg, "r"); local
790 if ( !pfile )
792 while ( !feof(pfile) ) {
795 if ( fgets(buffer, RES_FILE_BUF, pfile) ) {;
803 fclose(pfile);