nasm/rdoff/symtab.h

28 lines
673 B
C
Raw Permalink Normal View History

2002-04-30 20:51:32 +00:00
/* symtab.h Header file for symbol table manipulation routines
*
* The Netwide Assembler is copyright (C) 1996 Simon Tatham and
* Julian Hall. All rights reserved. The software is
* redistributable under the license given in the file "LICENSE"
2002-04-30 20:51:32 +00:00
* distributed in the NASM archive.
*/
#ifndef RDOFF_SYMTAB_H
#define RDOFF_SYMTAB_H 1
#include <inttypes.h>
2002-04-30 20:51:32 +00:00
typedef struct {
char *name;
2005-01-15 22:15:51 +00:00
int segment;
int32_t offset;
int32_t flags;
2002-04-30 20:51:32 +00:00
} symtabEnt;
void *symtabNew(void);
void symtabDone(void *symtab);
2005-01-15 22:15:51 +00:00
void symtabInsert(void *symtab, symtabEnt * ent);
symtabEnt *symtabFind(void *symtab, const char *name);
2005-01-15 22:15:51 +00:00
void symtabDump(void *symtab, FILE * of);
#endif