Lines Matching refs:mc
277 MetaChunk *mc; in metachunks() local
281 mc = vtmalloc(mb->nindex*sizeof(MetaChunk)); in metachunks()
284 mc[i].offset = U16GET(p); in metachunks()
285 mc[i].size = U16GET(p+2); in metachunks()
286 mc[i].index = i; in metachunks()
290 qsort(mc, mb->nindex, sizeof(MetaChunk), offsetcmp); in metachunks()
297 o = mc[i].offset; in metachunks()
298 n = mc[i].size; in metachunks()
308 return mc; in metachunks()
310 vtfree(mc); in metachunks()
315 mbcompact(MetaBlock *mb, MetaChunk *mc) in mbcompact() argument
322 o = mc[i].offset; in mbcompact()
323 n = mc[i].size; in mbcompact()
326 U16PUT(mb->buf + MetaHeaderSize + mc[i].index*MetaIndexSize, oo); in mbcompact()
339 MetaChunk *mc; in mballoc() local
349 mc = metachunks(mb); in mballoc()
354 if(mc[i].offset - o >= n) { in mballoc()
355 vtfree(mc); in mballoc()
358 o = mc[i].offset + mc[i].size; in mballoc()
362 vtfree(mc); in mballoc()
367 mbcompact(mb, mc); in mballoc()
368 vtfree(mc); in mballoc()