Home | History | Annotate | Download | only in sort

Lines Matching defs:flist

198 	struct mfile *flistb[MERGE_FNUM], **flist = flistb, *cfile;
228 if (insert(flist, cfile, nfiles, !DELETE))
232 flist[0] = cfile;
251 cfile = flist[0];
259 /* (Moving base 'flist' saves copying everything!) */
260 flist++;
280 c = insert(flist, cfile, nfiles, DELETE);
281 if (c != 0 || (UNIQUE && cfile == flist[0]
301 * if delete: inserts rec in flist, deletes flist[0];
302 * otherwise just inserts *rec in flist.
306 insert(struct mfile **flist, struct mfile *rec, int ttop, int delete)
311 cmpv = cmp(rec->rec, flist[mid]->rec);
323 * record from each file (+ flist[0] which never
326 cmpv = rec < flist[mid] ? -1 : 1;
336 /* At this point we haven't yet compared against flist[0] */
339 /* flist[0] is ourselves, only the caller knows the old data */
341 memmove(flist, flist + 1, bot * sizeof(MFILE *));
342 flist[bot] = rec;
350 /* Doesn't match flist[1], must compare with flist[0] */
351 cmpv = cmp(rec->rec, flist[0]->rec);
359 memmove(flist + bot + 1, flist + bot, (ttop - bot) * sizeof(MFILE *));
360 flist[bot] = rec;