Esempio n. 1
0
static __inline__ HDR *
getFromFreeList( BlockList *l )
{
    list_entry_t	e;

    e = delist_head_strong(&l->free);
    xIfTrace(alloc, TR_FULL_TRACE) {
	dispList(l);
    }
Esempio n. 2
0
/* ハッシュ表からリスト構造で並んでいる様子を表示する */
void disp(void)
{
	int i = 0;
	struct character *current_addr;
	for( i = 0; i < HASH_SIZE; i++ ) {
		printf("-|%d|",i);
		printf("%2ld|-",(long)HashTable[i]);
		if( HashTable[i] != NULL && HashTable[i] != DELETED ) {
			dispList( i, HashTable[i] );
		}
		printf("\n");
	}
}