From 3a27b17c7fea3845c63864e11008edf8cebd7e17 Mon Sep 17 00:00:00 2001 From: "H. Peter Anvin" Date: Thu, 3 Mar 2016 17:11:28 -0800 Subject: Replace external dependencies on with an internal table Don't rely on the platform ; hopefully this can avoid problems. Signed-off-by: H. Peter Anvin --- nasmlib.c | 16 ---------------- 1 file changed, 16 deletions(-) (limited to 'nasmlib.c') diff --git a/nasmlib.c b/nasmlib.c index a1a3191f..d9315f7c 100644 --- a/nasmlib.c +++ b/nasmlib.c @@ -40,7 +40,6 @@ #include #include #include -#include #include #include @@ -54,21 +53,6 @@ vefunc nasm_verror; /* Global error handling function */ /* Uninitialized -> all zero by C spec */ const uint8_t zero_buffer[ZERO_BUF_SIZE]; -/* - * Prepare a table of tolower() results. This avoids function calls - * on some platforms. - */ - -unsigned char nasm_tolower_tab[256]; - -void tolower_init(void) -{ - int i; - - for (i = 0; i < 256; i++) - nasm_tolower_tab[i] = tolower(i); -} - void nasm_error(int severity, const char *fmt, ...) { va_list ap; -- cgit v1.2.1