mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
038d861ede
- Remove obsolete types like "uint32"; use "uint32_t" consistently. - Make sure we include <inttypes.h> where needed. - Header file guards should be FOO_H or SUBDIR_FOO_H; _FOO_H infringes on the C implementation's namespace and should only be used when writing libc! - Change a few "int8_t" back to "char" where appropriate. There are a lot more places where that should be done, though. - Clean up the check for getuid/getgid in rdoff/rdlar.h.
23 lines
579 B
C
23 lines
579 B
C
/*
|
|
* collectn.h - header file for 'collection' abstract data type.
|
|
*
|
|
* 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).
|
|
*/
|
|
|
|
#ifndef RDOFF_COLLECTN_H
|
|
#define RDOFF_COLLECTN_H 1
|
|
|
|
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
|