plan 9 kernel history: overview | file list | diff list

1990/0928/gnot/malloc.h (diff list | history)

gnot/malloc.h on 1990/0928
1990/0928    
struct tbl_entry { 
	struct tbl_entry *next;		/* free list */ 
	int *data;			/* data */ 
}; 
 
struct table { 
	int size;			/* # entries */ 
	struct tbl_entry *entries;	/* the entries */ 
	struct tbl_entry *free;		/* the free list */ 
}; 
 
void *tbl_alloc(struct table *, int); 
void tbl_free(struct table *, void *); 
int tbl_index(struct table *, void *); 
void *tbl_data(struct table *, int); 


source code copyright © 1990-2005 Lucent Technologies; see license
Plan 9 distribution
comments to russ cox (rsc@swtch.com)