nasm/rdoff/collectn.h

23 lines
579 B
C
Raw Normal View History

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