2004-09-15 14:54:34 +08:00
|
|
|
/*
|
|
|
|
* collectn.h - header file for 'collection' abstract data type.
|
2002-05-01 04:51:32 +08:00
|
|
|
*
|
|
|
|
* This file is public domain, and does not come under the NASM license.
|
2007-04-12 10:40:54 +08:00
|
|
|
* It, aint32_t with 'collectn.c' implements what is basically a variable
|
2004-09-15 14:54:34 +08:00
|
|
|
* length array (of pointers).
|
2002-05-01 04:51:32 +08:00
|
|
|
*/
|
|
|
|
|
2007-04-13 00:54:50 +08:00
|
|
|
#ifndef RDOFF_COLLECTN_H
|
|
|
|
#define RDOFF_COLLECTN_H 1
|
2002-05-01 04:51:32 +08:00
|
|
|
|
|
|
|
typedef struct tagCollection {
|
2005-01-16 06:15:51 +08:00
|
|
|
void *p[32]; /* array of pointers to objects */
|
|
|
|
|
2004-09-15 14:54:34 +08:00
|
|
|
struct tagCollection *next;
|
2002-05-01 04:51:32 +08:00
|
|
|
} Collection;
|
|
|
|
|
2005-01-16 06:15:51 +08:00
|
|
|
void collection_init(Collection * c);
|
|
|
|
void **colln(Collection * c, int index);
|
|
|
|
void collection_reset(Collection * c);
|
2002-05-01 04:51:32 +08:00
|
|
|
|
|
|
|
#endif
|