Lines Matching refs:freelist
330 static struct action *freelist = 0; in Action_new() local
333 if( freelist==0 ){ in Action_new()
336 freelist = (struct action *)malloc( sizeof(struct action)*amt ); in Action_new()
337 if( freelist==0 ){ in Action_new()
341 for(i=0; i<amt-1; i++) freelist[i].next = &freelist[i+1]; in Action_new()
342 freelist[amt-1].next = 0; in Action_new()
344 new = freelist; in Action_new()
345 freelist = freelist->next; in Action_new()
1031 static struct config *freelist = 0; /* List of free configurations */ variable
1040 if( freelist==0 ){ in newconfig()
1043 freelist = (struct config *)malloc( sizeof(struct config)*amt ); in newconfig()
1044 if( freelist==0 ){ in newconfig()
1048 for(i=0; i<amt-1; i++) freelist[i].next = &freelist[i+1]; in newconfig()
1049 freelist[amt-1].next = 0; in newconfig()
1051 new = freelist; in newconfig()
1052 freelist = freelist->next; in newconfig()
1060 old->next = freelist;
1061 freelist = old;