mirror of
https://github.com/Interlisp/maiko.git
synced 2026-02-05 16:04:45 +00:00
Switch s_char uses to signed char. Remove s_char alias. (#208)
This commit is contained in:
@@ -38,12 +38,12 @@
|
||||
/* For getting a signed byte */
|
||||
#ifndef BYTESWAP
|
||||
/* in the unswapped case, the type of the argument carries through to the result */
|
||||
#define Get_SBYTE_PCMAC0 GETBYTE((s_char *)PCMAC)
|
||||
#define Get_SBYTE_PCMAC1 GETBYTE((s_char *)PCMAC+1)
|
||||
#define Get_SBYTE_PCMAC0 GETBYTE((int8_t *)PCMAC)
|
||||
#define Get_SBYTE_PCMAC1 GETBYTE((int8_t *)PCMAC+1)
|
||||
#else
|
||||
/* cf. GETBYTE in lsptypes.h */
|
||||
#define Get_SBYTE_PCMAC0 (* (s_char *) (3^(UNSIGNED)(PCMAC)))
|
||||
#define Get_SBYTE_PCMAC1 (* (s_char *) (3^(UNSIGNED)(PCMAC+1)))
|
||||
#define Get_SBYTE_PCMAC0 (* (int8_t *) (3^(UNSIGNED)(PCMAC)))
|
||||
#define Get_SBYTE_PCMAC1 (* (int8_t *) (3^(UNSIGNED)(PCMAC+1)))
|
||||
#endif
|
||||
|
||||
/* for getting an atom number, e.g., for FNx or DTEST */
|
||||
|
||||
@@ -217,16 +217,6 @@ error Must specify RELEASE to build Medley.
|
||||
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
#ifdef sun
|
||||
typedef signed char s_char;
|
||||
#endif /* sun */
|
||||
|
||||
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
@@ -255,23 +245,12 @@ typedef signed char s_char;
|
||||
/********************************************************/
|
||||
#ifdef LINUX
|
||||
/* LINUX, the free POSIX-compliant Unix */
|
||||
typedef signed char s_char;
|
||||
|
||||
#undef UNALIGNED_FETCH_OK
|
||||
#endif /* LINUX */
|
||||
|
||||
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
#if defined(MACOSX) || defined(FREEBSD) || defined(OPENBSD)
|
||||
/* MacOS X, FreeBSD - mostly POSIX-compliant Unix */
|
||||
typedef signed char s_char;
|
||||
#endif /* MACOSX || FREEBSD */
|
||||
|
||||
|
||||
/********************************************************/
|
||||
/* */
|
||||
/********************************************************/
|
||||
@@ -286,7 +265,6 @@ typedef signed char s_char;
|
||||
#ifdef DOS
|
||||
typedef unsigned char u_char;
|
||||
typedef unsigned long u_int;
|
||||
typedef signed char s_char;
|
||||
typedef unsigned short u_short;
|
||||
#undef UNALIGNED_FETCH_OK
|
||||
#undef HAS_GETHOSTID
|
||||
|
||||
Reference in New Issue
Block a user