diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-03-08 12:14:55 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-03-08 12:20:02 -0800 |
commit | 3ef4f00d5a14000b91851f4c5e4ca5e701550528 (patch) | |
tree | 1b13efa1992915f017c7e3437e19015ba74ad3b6 /rdoff | |
parent | 7ab5595347d70ec9da736a0cedc9675a63356da3 (diff) | |
download | nasm-3ef4f00d5a14000b91851f4c5e4ca5e701550528.tar.gz |
lib: split library into stdlib and nasmlib; header handling fixes
Split lib/ into nasmlib/ (for nasm-specific functions) and stdlib/
(for replacements for C library functions which may be missing.)
Rename the ersatz inttypes.h to nasmint.h so we can use a simple test
in compiler.h instead of dealing with include path magic.
Remove tests in configure.in for ancient missing functions (which will
break the build anyway.)
Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'rdoff')
-rw-r--r-- | rdoff/hash.h | 1 | ||||
-rw-r--r-- | rdoff/ldsegs.h | 1 | ||||
-rw-r--r-- | rdoff/rdflib.c | 2 | ||||
-rw-r--r-- | rdoff/rdlar.h | 1 | ||||
-rw-r--r-- | rdoff/rdoff.c | 1 | ||||
-rw-r--r-- | rdoff/rdoff.h | 1 | ||||
-rw-r--r-- | rdoff/segtab.h | 1 | ||||
-rw-r--r-- | rdoff/symtab.h | 1 |
8 files changed, 0 insertions, 9 deletions
diff --git a/rdoff/hash.h b/rdoff/hash.h index a6920e70..0379305f 100644 --- a/rdoff/hash.h +++ b/rdoff/hash.h @@ -11,7 +11,6 @@ #ifndef RDOFF_HASH_H #define RDOFF_HASH_H 1 -#include <inttypes.h> uint32_t hash(const char *name); diff --git a/rdoff/ldsegs.h b/rdoff/ldsegs.h index fcecdf67..7dccaace 100644 --- a/rdoff/ldsegs.h +++ b/rdoff/ldsegs.h @@ -6,7 +6,6 @@ #ifndef RDOFF_LDSEGS_H #define RDOFF_LDSEGS_H 1 -#include <inttypes.h> struct segconfig { uint16_t typelow, typehi; /* range of seg nos for which this is valid */ diff --git a/rdoff/rdflib.c b/rdoff/rdflib.c index 06cce3c7..0844e6ce 100644 --- a/rdoff/rdflib.c +++ b/rdoff/rdflib.c @@ -62,9 +62,7 @@ #include <stdlib.h> #include <errno.h> #include <string.h> -#include <inttypes.h> #include <time.h> -#include <inttypes.h> /* functions supported: * create a library (no extra operands required) diff --git a/rdoff/rdlar.h b/rdoff/rdlar.h index ee00f2e8..16633a11 100644 --- a/rdoff/rdlar.h +++ b/rdoff/rdlar.h @@ -5,7 +5,6 @@ #ifndef RDOFF_RDLAR_H #define RDOFF_RDLAR_H 1 -#include <inttypes.h> #ifdef HAVE_CONFIG_H #include "config.h" diff --git a/rdoff/rdoff.c b/rdoff/rdoff.c index f451ce12..126a110a 100644 --- a/rdoff/rdoff.c +++ b/rdoff/rdoff.c @@ -46,7 +46,6 @@ #include <stdlib.h> #include <string.h> #include <errno.h> -#include <inttypes.h> #define RDOFF_UTILS diff --git a/rdoff/rdoff.h b/rdoff/rdoff.h index 1451c6ea..019d012d 100644 --- a/rdoff/rdoff.h +++ b/rdoff/rdoff.h @@ -38,7 +38,6 @@ #ifndef RDOFF_RDOFF_H #define RDOFF_RDOFF_H 1 -#include <inttypes.h> /* * RDOFF definitions. They are used by RDOFF utilities and by NASM's diff --git a/rdoff/segtab.h b/rdoff/segtab.h index 87ef0171..e5e87931 100644 --- a/rdoff/segtab.h +++ b/rdoff/segtab.h @@ -34,7 +34,6 @@ #ifndef RDOFF_SEGTAB_H #define RDOFF_SEGTAB_H 1 -#include <inttypes.h> typedef void *segtab; diff --git a/rdoff/symtab.h b/rdoff/symtab.h index 0dc8c7b1..efd1b68e 100644 --- a/rdoff/symtab.h +++ b/rdoff/symtab.h @@ -38,7 +38,6 @@ #ifndef RDOFF_SYMTAB_H #define RDOFF_SYMTAB_H 1 -#include <inttypes.h> typedef struct { char *name; |