Test of XCHG
[nasm.git] / rdoff / rdlib.h
blob17978d415ca0dc4c9bab4aa672ef6eaae9bb0fd0
1 /*
2 * rdlib.h Functions for manipulating libraries of RDOFF object files.
3 */
5 #ifndef RDOFF_RDLIB_H
6 #define RDOFF_RDLIB_H 1
8 struct librarynode {
9 char *name;
10 FILE *fp; /* initialised to NULL - always check */
11 int referenced; /* & open if required. Close afterwards */
12 struct librarynode *next; /* if ! referenced. */
15 extern int rdl_error;
17 #define RDL_EOPEN 1
18 #define RDL_EINVALID 2
19 #define RDL_EVERSION 3
20 #define RDL_ENOTFOUND 4
22 int rdl_verify(const char *filename);
23 int rdl_open(struct librarynode *lib, const char *filename);
24 int rdl_searchlib(struct librarynode *lib, const char *label, rdffile * f);
25 int rdl_openmodule(struct librarynode *lib, int module, rdffile * f);
27 void rdl_perror(const char *apname, const char *filename);
29 #endif