diff options
author | H. Peter Anvin <hpa@zytor.com> | 2016-03-03 17:11:28 -0800 |
---|---|---|
committer | H. Peter Anvin <hpa@zytor.com> | 2016-03-03 17:18:38 -0800 |
commit | 3a27b17c7fea3845c63864e11008edf8cebd7e17 (patch) | |
tree | 4e8ab085247347eddf76fe242b76198d8e6332c1 /nasmlib.c | |
parent | a9a1b5c318e7bcb7680483c51933c6f3d6c69cd9 (diff) | |
download | nasm-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.c | 16 |
1 files changed, 0 insertions, 16 deletions
@@ -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; |