summaryrefslogtreecommitdiff
path: root/nasmlib.c
diff options
context:
space:
mode:
authorH. Peter Anvin <hpa@zytor.com>2016-03-03 17:11:28 -0800
committerH. Peter Anvin <hpa@zytor.com>2016-03-03 17:18:38 -0800
commit3a27b17c7fea3845c63864e11008edf8cebd7e17 (patch)
tree4e8ab085247347eddf76fe242b76198d8e6332c1 /nasmlib.c
parenta9a1b5c318e7bcb7680483c51933c6f3d6c69cd9 (diff)
downloadnasm-ctype.tar.gz
Replace external dependencies on <ctype.h> with an internal tablectype
Don't rely on the platform <ctype.h>; hopefully this can avoid problems. Signed-off-by: H. Peter Anvin <hpa@zytor.com>
Diffstat (limited to 'nasmlib.c')
-rw-r--r--nasmlib.c16
1 files changed, 0 insertions, 16 deletions
diff --git a/nasmlib.c b/nasmlib.c
index a1a3191f..d9315f7c 100644
--- a/nasmlib.c
+++ b/nasmlib.c
@@ -40,7 +40,6 @@
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
-#include <ctype.h>
#include <errno.h>
#include <inttypes.h>
@@ -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;