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
|
2007-12-29 09:44:23 -05:00
|
|
|
* redistributable under the license given in the file "LICENSE"
|
2002-04-30 20:51:32 +00:00
|
|
|
* distributed in the NASM archive.
|
|
|
|
*/
|
|
|
|
|
2007-04-12 16:54:50 +00:00
|
|
|
#ifndef RDOFF_SYMTAB_H
|
|
|
|
#define RDOFF_SYMTAB_H 1
|
|
|
|
|
|
|
|
#include <inttypes.h>
|
|
|
|
|
2002-04-30 20:51:32 +00:00
|
|
|
typedef struct {
|
2007-04-13 16:47:53 +00:00
|
|
|
char *name;
|
2005-01-15 22:15:51 +00:00
|
|
|
int segment;
|
2007-04-12 02:40:54 +00:00
|
|
|
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);
|
2007-04-13 16:47:53 +00:00
|
|
|
symtabEnt *symtabFind(void *symtab, const char *name);
|
2005-01-15 22:15:51 +00:00
|
|
|
void symtabDump(void *symtab, FILE * of);
|
2007-04-12 16:54:50 +00:00
|
|
|
|
|
|
|
#endif
|