sizeof(char) is always 1

POSIX and ANSI specify that char is always 1 byte, and I'm almost
certain that no systems violate this. Regardless, the SIZEOF_CHAR macro
is never used.
This commit is contained in:
Michael McConville 2016-02-24 12:04:04 -05:00 committed by Matthew Flatt
parent 50ddbee87f
commit 596c571ab1
4 changed files with 0 additions and 17 deletions

View File

@ -26,12 +26,8 @@
#endif /* WINDOWS_DYNAMIC_LOAD */ #endif /* WINDOWS_DYNAMIC_LOAD */
#if !defined(WINDOWS_DYNAMIC_LOAD) || defined(__MINGW32__) #if !defined(WINDOWS_DYNAMIC_LOAD) || defined(__MINGW32__)
# if SIZEOF_CHAR == 1
typedef signed char Tsint8; typedef signed char Tsint8;
typedef unsigned char Tuint8; typedef unsigned char Tuint8;
# else
# error "configuration error, please contact PLT (int8)"
# endif
# if SIZEOF_SHORT == 2 # if SIZEOF_SHORT == 2
typedef signed short Tsint16; typedef signed short Tsint16;

View File

@ -29,13 +29,6 @@ exec racket "$0" > `echo "$0" | sed 's/rktc$/c/'` "$0"
} }
@@@IF{!defined(WINDOWS_DYNAMIC_LOAD) || defined(__MINGW32__)}{ @@@IF{!defined(WINDOWS_DYNAMIC_LOAD) || defined(__MINGW32__)}{
# if SIZEOF_CHAR == 1
typedef signed char Tsint8;
typedef unsigned char Tuint8;
# else
# error "configuration error, please contact PLT (int8)"
# endif
# if SIZEOF_SHORT == 2 # if SIZEOF_SHORT == 2
typedef signed short Tsint16; typedef signed short Tsint16;
typedef unsigned short Tuint16; typedef unsigned short Tuint16;

View File

@ -4,9 +4,6 @@
#ifndef __MZSCHEME_CONFIGURATION_INFO__ #ifndef __MZSCHEME_CONFIGURATION_INFO__
#define __MZSCHEME_CONFIGURATION_INFO__ #define __MZSCHEME_CONFIGURATION_INFO__
/* The size of a `char', as computed by sizeof. */
#undef SIZEOF_CHAR
/* The size of a `int', as computed by sizeof. */ /* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT #undef SIZEOF_INT

View File

@ -10,9 +10,6 @@
/* Undefined items are not used on Windows. */ /* Undefined items are not used on Windows. */
/* The size of a `char', as computed by sizeof. */
#undef SIZEOF_CHAR
/* The size of a `int', as computed by sizeof. */ /* The size of a `int', as computed by sizeof. */
#undef SIZEOF_INT #undef SIZEOF_INT