diff options
Diffstat (limited to 'rdoff/v1/collectn.h')
-rw-r--r-- | rdoff/v1/collectn.h | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/rdoff/v1/collectn.h b/rdoff/v1/collectn.h new file mode 100644 index 00000000..2dc786eb --- /dev/null +++ b/rdoff/v1/collectn.h @@ -0,0 +1,22 @@ +/* collectn.h Header file for 'collection' abstract data type + * + * This file is public domain, and does not come under the NASM license. + * It, along with 'collectn.c' implements what is basically a variable + * length array (of pointers) + */ + +#ifndef _COLLECTN_H +#define _COLLECTN_H + +typedef struct tagCollection { + void *p[32]; /* array of pointers to objects */ + + struct tagCollection *next; +} Collection; + +void collection_init(Collection * c); +void ** colln(Collection * c, int index); +void collection_reset(Collection * c); + +#endif + |