mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-12-09 08:51:18 +08:00
30 lines
803 B
C
30 lines
803 B
C
/*
|
|
* rdlib.h Functions for manipulating libraries of RDOFF object files.
|
|
*/
|
|
|
|
#ifndef RDOFF_RDLIB_H
|
|
#define RDOFF_RDLIB_H 1
|
|
|
|
struct librarynode {
|
|
char *name;
|
|
FILE *fp; /* initialised to NULL - always check */
|
|
int referenced; /* & open if required. Close afterwards */
|
|
struct librarynode *next; /* if ! referenced. */
|
|
};
|
|
|
|
extern int rdl_error;
|
|
|
|
#define RDL_EOPEN 1
|
|
#define RDL_EINVALID 2
|
|
#define RDL_EVERSION 3
|
|
#define RDL_ENOTFOUND 4
|
|
|
|
int rdl_verify(const char *filename);
|
|
int rdl_open(struct librarynode *lib, const char *filename);
|
|
int rdl_searchlib(struct librarynode *lib, const char *label, rdffile * f);
|
|
int rdl_openmodule(struct librarynode *lib, int module, rdffile * f);
|
|
|
|
void rdl_perror(const char *apname, const char *filename);
|
|
|
|
#endif
|