test: add Makefile target for elfx32
[nasm.git] / rdoff / collectn.h
blobbcd75b8a3a704c5a459497c83cf6359770bb4de1
1 /*
2 * collectn.h - header file for 'collection' abstract data type.
4 * This file is public domain, and does not come under the NASM license.
5 * It, aint32_t with 'collectn.c' implements what is basically a variable
6 * length array (of pointers).
7 */
9 #ifndef RDOFF_COLLECTN_H
10 #define RDOFF_COLLECTN_H 1
12 typedef struct tagCollection {
13 void *p[32]; /* array of pointers to objects */
15 struct tagCollection *next;
16 } Collection;
18 void collection_init(Collection * c);
19 void **colln(Collection * c, int index);
20 void collection_reset(Collection * c);
22 #endif