mirror of
https://github.com/netwide-assembler/nasm.git
synced 2024-11-21 03:14:19 +08:00
038d861ede
- Remove obsolete types like "uint32"; use "uint32_t" consistently. - Make sure we include <inttypes.h> where needed. - Header file guards should be FOO_H or SUBDIR_FOO_H; _FOO_H infringes on the C implementation's namespace and should only be used when writing libc! - Change a few "int8_t" back to "char" where appropriate. There are a lot more places where that should be done, though. - Clean up the check for getuid/getgid in rdoff/rdlar.h.
30 lines
813 B
C
30 lines
813 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 int8_t *filename);
|
|
int rdl_open(struct librarynode *lib, const int8_t *filename);
|
|
int rdl_searchlib(struct librarynode *lib, const int8_t *label, rdffile * f);
|
|
int rdl_openmodule(struct librarynode *lib, int module, rdffile * f);
|
|
|
|
void rdl_perror(const int8_t *apname, const int8_t *filename);
|
|
|
|
#endif
|