Lines Matching refs:Merge_t
49 } Merge_t;
127 static int mgrefresh(Rs_t* rs, Merge_t* mg)
131 Merge_t* mg;
365 static int mgclose(Rs_t* rs, Merge_t* mg)
369 Merge_t* mg;
390 static Merge_t* mgopen(Rs_t* rs, Sfio_t* f, int pos)
392 static Merge_t* mgopen(rs, f, pos)
398 reg Merge_t* mg;
407 if(!(mg = (Merge_t*)vmresize(Vmheap,NIL(Void_t*),sizeof(Merge_t),VM_RSZERO)) )
408 return NIL(Merge_t*);
413 return NIL(Merge_t*);
423 mg->equi = NIL(Merge_t*);
439 return NIL(Merge_t*);
501 static int mginsert(Rs_t* rs, Merge_t** list, int n, Merge_t* mg)
505 Merge_t** list;
507 Merge_t* mg;
511 reg Merge_t **l, **r, **m, *p, *h;
540 { for(p = NIL(Merge_t*), h = *l;; )
550 *l = mg; mg->equi = NIL(Merge_t*);
559 static int mgmove(reg Rs_t* rs, reg Merge_t* mg, ssize_t n)
563 reg Merge_t* mg;
837 static int mgwrite(reg Rs_t* rs, reg Merge_t* mg, reg int n)
841 reg Merge_t* mg; /* stream being output */
895 static int mgerror(Rs_t* rs, Merge_t** list, int n)
899 Merge_t** list;
904 reg Merge_t *mg, *e;
932 reg Merge_t *mg, **list;
933 reg Merge_t *p, *m;
950 if(!(list = (Merge_t**)vmalloc(Vmheap,n*sizeof(Merge_t*))) )
1043 { for(p = NIL(Merge_t*), m = list[k];; )