Fix memory management issues with expanded %include
[nasm/avx512.git] / rdoff / symtab.h
blobe0924958b659295d488f06084c9af92810961341
1 /* symtab.h Header file for symbol table manipulation routines
3 * The Netwide Assembler is copyright (C) 1996 Simon Tatham and
4 * Julian Hall. All rights reserved. The software is
5 * redistributable under the license given in the file "LICENSE"
6 * distributed in the NASM archive.
7 */
9 #ifndef RDOFF_SYMTAB_H
10 #define RDOFF_SYMTAB_H 1
12 #include <inttypes.h>
14 typedef struct {
15 char *name;
16 int segment;
17 int32_t offset;
18 int32_t flags;
19 } symtabEnt;
21 void *symtabNew(void);
22 void symtabDone(void *symtab);
23 void symtabInsert(void *symtab, symtabEnt * ent);
24 symtabEnt *symtabFind(void *symtab, const char *name);
25 void symtabDump(void *symtab, FILE * of);
27 #endif