1: # include <ingres.h> 2: # include <access.h> 3: # include <sccs.h> 4: 5: SCCSID(@(#)acc_addbuf.c 8.2 2/8/85) 6: 7: /* 8: ** ACC_ADDBUF - add access buffers to the usage list 9: ** 10: ** Parameters: 11: ** bufs - buffers to add 12: ** cnt - number of buffers to add 13: ** 14: ** Side Effects: 15: ** Buffers are added to the list pointed 16: ** to by Acc_tail 17: ** 18: ** Called by: 19: ** init_decomp() 20: ** 21: */ 22: acc_addbuf(bufs, cnt) 23: struct accbuf bufs[]; 24: int cnt; 25: { 26: register struct accbuf *b, *end; 27: 28: b = bufs; 29: end = &b[cnt -1]; 30: acc_init(); 31: 32: for ( ; b <= end; b++) 33: { 34: b->bufstatus = 0; 35: resetacc(b); 36: Acc_tail->modf = b; 37: b->modb = Acc_tail; 38: b->modf = NULL; 39: Acc_tail = b; 40: } 41: }