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

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

1990/0928/sys/src/9/gnot/malloc.h:1,151993/0501/sys/src/9/gnot/malloc.h:0 (short | long)
Deleted.
rsc Mon Mar 7 10:21:50 2005
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)