summaryrefslogtreecommitdiff
path: root/rdoff/v1/collectn.h
blob: 2dc786eb6e0daa4c4ba196e81113a05ebe4a5898 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
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