summaryrefslogtreecommitdiff
path: root/rdoff/rdlib.h
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2007-04-12 16:54:50 +0000
committerH. Peter Anvin <hpa@zytor.com>2007-04-12 16:54:50 +0000
commit038d861eded9bfc75529e23ba8d5d6edd5e3ef98 (patch)
tree8383e607cb9bdcba3beef5d831e8a0f6e175f28c /rdoff/rdlib.h
parent2030bd21f4923d4ddd4c093f8756451fc35220f8 (diff)
downloadnasm-038d861eded9bfc75529e23ba8d5d6edd5e3ef98.tar.gz
Remove obsolete types; add <inttypes.h> where needed; header fixes
- 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.
Diffstat (limited to 'rdoff/rdlib.h')
-rw-r--r--rdoff/rdlib.h7
1 files changed, 6 insertions, 1 deletions
diff --git a/rdoff/rdlib.h b/rdoff/rdlib.h
index 0ca34ae9..c051da73 100644
--- a/rdoff/rdlib.h
+++ b/rdoff/rdlib.h
@@ -2,8 +2,11 @@
* rdlib.h Functions for manipulating libraries of RDOFF object files.
*/
+#ifndef RDOFF_RDLIB_H
+#define RDOFF_RDLIB_H 1
+
struct librarynode {
- int8_t *name;
+ char *name;
FILE *fp; /* initialised to NULL - always check */
int referenced; /* & open if required. Close afterwards */
struct librarynode *next; /* if ! referenced. */
@@ -22,3 +25,5 @@ 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