Lines Matching refs:idx
16 size_t idx = 0; in bb_get_chunk_from_file() local
21 if (!(idx & 0xff)) { in bb_get_chunk_from_file()
22 if (idx == ((size_t)-1) - 0xff) in bb_get_chunk_from_file()
24 linebuf = xrealloc(linebuf, idx + 0x100); in bb_get_chunk_from_file()
26 linebuf[idx++] = (char) ch; in bb_get_chunk_from_file()
33 *end = idx; in bb_get_chunk_from_file()
41 linebuf = xrealloc(linebuf, idx + 1); in bb_get_chunk_from_file()
42 linebuf[idx] = '\0'; in bb_get_chunk_from_file()
126 int idx = 0;
132 linebuf = xrealloc(linebuf, idx + 0x100);
133 r = fgets(&linebuf[idx], 0x100, file);
137 linebuf[idx] = '\0';
141 len = strlen(&linebuf[idx]);
142 idx += len;
143 if (len != 0xff || linebuf[idx - 1] == '\n')
146 *sizep = idx;
147 if (idx) {