nasm/rdoff/collectn.h

23 lines
579 B
C
Raw Normal View History

/*
* 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.
* It, aint32_t with 'collectn.c' implements what is basically a variable
* length array (of pointers).
2002-05-01 04:51:32 +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 */
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