Replace <ctype.h> includes with "nctype.h"

For almost everything we should use "nctype.h". Right now we don't
have a nasm_toupper() to use <ctype.h> for things that need toupper().

Signed-off-by: H. Peter Anvin <hpa@zytor.com>
This commit is contained in:
H. Peter Anvin 2018-12-27 12:37:25 -08:00
parent bd2803964e
commit c2f3f26015
22 changed files with 24 additions and 22 deletions

View File

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

View File

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

View File

@ -37,7 +37,7 @@
#include "compiler.h"
#include <ctype.h>
#include "nctype.h"
#include <stdio.h>
#include <stdlib.h>

View File

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

View File

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

View File

@ -179,7 +179,7 @@ if ($what eq 'c') {
die if ($n & ($n-1));
print OUT "#include \"compiler.h\"\n";
print OUT "#include <ctype.h>\n";
print OUT "#include \"nctype.h\"\n";
print OUT "#include \"nasmlib.h\"\n";
print OUT "#include \"hashtbl.h\"\n";
print OUT "#include \"preproc.h\"\n";

View File

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

View File

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

View File

@ -66,7 +66,7 @@
#include <stdarg.h>
#include <stdlib.h>
#include <stddef.h>
#include <ctype.h>
#include "nctype.h"
#include <limits.h>
#include "nasm.h"

View File

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

View File

@ -40,7 +40,7 @@
#include <stdio.h>
#include <stdarg.h>
#include <stdlib.h>
#include <ctype.h>
#include "nctype.h"
#include <errno.h>
#include "insns.h"

View File

@ -37,7 +37,7 @@
#include "compiler.h"
#include <ctype.h>
#include "nctype.h"
#include "nasmlib.h"
#include "error.h"

View File

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

View File

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

View File

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

View File

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

View File

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

View File

@ -71,7 +71,8 @@
#include <stdlib.h>
#include <time.h>
#include <stdarg.h> /* Note: we need the ANSI version of stdarg.h */
#include <ctype.h>
#include <ctype.h> /* For toupper() */
#include "nctype.h"
#include "nasm.h"
#include "nasmlib.h"

View File

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

View File

@ -40,7 +40,8 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include <ctype.h> /* For toupper() */
#include "nctype.h"
#include <limits.h>
#include "nasm.h"

View File

@ -41,7 +41,7 @@
#include <stdio.h>
#include <stdlib.h>
#include <ctype.h>
#include "nctype.h"
#include <assert.h>
#include "nasm.h"

View File

@ -34,7 +34,7 @@
#ifndef STABS_H_
#define STABS_H_
#include <ctype.h>
#include "nctype.h"
#include "compiler.h"
#include "nasmlib.h"