Apply Nindent to all .c and .h files
[nasm/avx512.git] / rdoff / rdlib.h
blob36438bdf27f57877cad7c5cc25eb4e8b1147cd21
1 /*
2 * rdlib.h Functions for manipulating libraries of RDOFF object files.
3 */
5 struct librarynode {
6 char *name;
7 FILE *fp; /* initialised to NULL - always check */
8 int referenced; /* & open if required. Close afterwards */
9 struct librarynode *next; /* if ! referenced. */
12 extern int rdl_error;
14 #define RDL_EOPEN 1
15 #define RDL_EINVALID 2
16 #define RDL_EVERSION 3
17 #define RDL_ENOTFOUND 4
19 int rdl_verify(const char *filename);
20 int rdl_open(struct librarynode *lib, const char *filename);
21 int rdl_searchlib(struct librarynode *lib, const char *label, rdffile * f);
22 int rdl_openmodule(struct librarynode *lib, int module, rdffile * f);
24 void rdl_perror(const char *apname, const char *filename);