From a5cabdbc747bfd13216bf45f50ec36ad28cfed53 Mon Sep 17 00:00:00 2001 From: François Tigeot Date: Fri, 25 Nov 2011 14:42:10 +0100 Subject: BIG_ENDIAN was never set Remove its conditional code --- rsc/source/rscpp/cpp5.c | 8 -------- rsc/source/rscpp/cppdef.h | 11 ----------- 2 files changed, 19 deletions(-) (limited to 'rsc/source') diff --git a/rsc/source/rscpp/cpp5.c b/rsc/source/rscpp/cpp5.c index 4eb3183b5a86..24b13b944ffe 100644 --- a/rsc/source/rscpp/cpp5.c +++ b/rsc/source/rscpp/cpp5.c @@ -750,19 +750,11 @@ evalchar(int skip) * We warn on multi-byte constants and try to hack * (big|little)endian machines. */ -#if BIG_ENDIAN - count = 0; -#endif while ((c = get()) != '\'' && c != EOF_CHAR && c != '\n') { if (!skip) ciwarn("multi-byte constant '%c' isn't portable", c); -#if BIG_ENDIAN - count += BITS_CHAR; - value += (c << count); -#else value <<= BITS_CHAR; value += c; -#endif } instring = FALSE; return (value); diff --git a/rsc/source/rscpp/cppdef.h b/rsc/source/rscpp/cppdef.h index 2490f1df7d7b..29b5d922ba8f 100644 --- a/rsc/source/rscpp/cppdef.h +++ b/rsc/source/rscpp/cppdef.h @@ -219,17 +219,6 @@ #define BITS_CHAR 8 #endif -/* - * BIG_ENDIAN is set TRUE on machines (such as the IBM 360 series) - * where 'ab' stores 'a' in the high-bits and 'b' in the low-bits. - * It is set FALSE on machines (such as the PDP-11 and Vax-11) - * where 'ab' stores 'a' in the low-bits and 'b' in the high-bits. - * (Or is it the other way around?) -- Warning: BIG_ENDIAN code is untested. - */ -#ifndef BIG_ENDIAN -#define BIG_ENDIAN FALSE -#endif - /* * COMMENT_INVISIBLE may be defined to allow "old-style" comment * processing, whereby the comment becomes a zero-length token -- cgit