outrdf2.c now uses the same definitions of RDOFF2 format that RDOFF utils.
[platform/upstream/nasm.git] / rdoff / collectn.h
1 /*
2  * collectn.h - header file for 'collection' abstract data type.
3  *
4  * This file is public domain, and does not come under the NASM license.
5  * It, along with 'collectn.c' implements what is basically a variable
6  * length array (of pointers).
7  */
8
9 #ifndef _COLLECTN_H
10 #define _COLLECTN_H
11
12 typedef struct tagCollection {
13     void *p[32];        /* array of pointers to objects */
14   
15     struct tagCollection *next;
16 } Collection;
17
18 void    collection_init(Collection * c);
19 void ** colln(Collection * c, int index);
20 void    collection_reset(Collection * c);
21
22 #endif