Move <string.h> inclusion to compiler.h

There is absolutely no reason not to include <string.h> globally, and
with the inline function for mempcpy() we need it there anyway.

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2018-12-26 06:32:37 -08:00
parent 0a2b1c3498
commit 2e53f27e9d
46 changed files with 1 additions and 45 deletions

View File

@ -178,7 +178,6 @@
#include "compiler.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "nasm.h"

View File

@ -38,7 +38,6 @@
#include "compiler.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <ctype.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "nasm.h"
#include "float.h"

View File

@ -38,7 +38,6 @@
#include "compiler.h"
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include "compiler.h"
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>

View File

@ -42,7 +42,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>
#include <time.h>

View File

@ -66,7 +66,6 @@
#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>

View File

@ -37,7 +37,6 @@
#include "compiler.h"
#include <string.h>
#include <inttypes.h>
#include "nasmlib.h"

View File

@ -35,7 +35,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -38,7 +38,6 @@
#include "compiler.h"
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>

View File

@ -82,6 +82,7 @@
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <limits.h>
#ifdef HAVE_SYS_TYPES_H

View File

@ -4,7 +4,6 @@
#include "compiler.h"
#include "ilog2.h"
#include <string.h>
#include "iflaggen.h"

View File

@ -42,7 +42,6 @@
#include "bytesex.h"
#include <stdio.h>
#include <string.h>
#ifdef HAVE_STRINGS_H
# include <strings.h>
#endif

View File

@ -14,7 +14,6 @@
#include <fcntl.h>
#include <unistd.h>
#include <stdbool.h>
#include <string.h>
#include <sys/mman.h>
#include <sys/stat.h>

View File

@ -8,7 +8,6 @@
#include <inttypes.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <unistd.h>
static uint8_t get_random_byte(void)

View File

@ -37,7 +37,6 @@
#include "compiler.h"
#include <string.h>
#include "nasmlib.h"

View File

@ -39,7 +39,6 @@
#include "compiler.h"
#include <string.h>
#include "nasm.h"
#include "hashtbl.h"

View File

@ -16,7 +16,6 @@
*/
#include "md5.h"
#include <string.h> /* for memcpy() */
#ifdef WORDS_LITTLEENDIAN
#define byteReverse(buf, len) /* Nothing */

View File

@ -32,7 +32,6 @@
* ----------------------------------------------------------------------- */
#include <stdlib.h>
#include <string.h>
#include "ver.h"
#include "version.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -77,7 +77,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <time.h>

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>

View File

@ -41,7 +41,6 @@
#include "compiler.h"
#include <stdio.h>
#include <string.h>
#define BUILD_DRIVERS_ARRAY
#include "outform.h"

View File

@ -69,7 +69,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <time.h>
#include <stdarg.h> /* Note: we need the ANSI version of stdarg.h */
#include <ctype.h>

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include "nasm.h"

View File

@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <limits.h>

View File

@ -41,7 +41,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <ctype.h>
#include <assert.h>

View File

@ -54,7 +54,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rdfutils.h"
#include "symtab.h"

View File

@ -39,7 +39,6 @@
#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <ctype.h>
#include <errno.h>

View File

@ -39,7 +39,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rdfutils.h"

View File

@ -62,7 +62,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <errno.h>
#include <string.h>
#include <time.h>
/* functions supported:

View File

@ -46,7 +46,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rdfload.h"
#include "symtab.h"

View File

@ -41,7 +41,6 @@
#include <stdlib.h>
#include <ctype.h>
#include <stdarg.h>
#include <string.h>
#include <errno.h>
#include <time.h>
#include <sys/types.h>

View File

@ -39,7 +39,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "rdfutils.h"
#include "rdlib.h"

View File

@ -44,7 +44,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <errno.h>
#include "rdfutils.h"

View File

@ -41,7 +41,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include "symtab.h"
#include "hash.h"

View File

@ -32,7 +32,6 @@
* ----------------------------------------------------------------------- */
#include "compiler.h"
#include <string.h>
#ifndef HAVE_STRNLEN

View File

@ -32,7 +32,6 @@
* ----------------------------------------------------------------------- */
#include "compiler.h"
#include <string.h>
#ifndef HAVE_STRRCHRNUL

View File

@ -10,7 +10,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <stdarg.h>
#include <string.h>
#include "nasmlib.h"
#include "error.h"