summaryrefslogtreecommitdiff
path: root/pp_pack.c
diff options
context:
space:
mode:
authorNicholas Clark <nick@ccl4.org>2013-05-03 15:26:34 +0200
committerNicholas Clark <nick@ccl4.org>2013-05-20 21:19:42 +0200
commit5fa237154915dfcb787e0c5403e6260482a5fb3e (patch)
tree4bd0741aff605918f76ed23cd4eaa0fb3827b93e /pp_pack.c
parent39ecab1c690aee1a1fdeefb6c706448af5d2981f (diff)
downloadperl-5fa237154915dfcb787e0c5403e6260482a5fb3e.tar.gz
Eliminate pre-5.9.x conditional code for PERL_PACK_CAN_BYTEORDER
PERL_PACK_CAN_BYTEORDER has been unconditionally defined for versions 5.9.x and greater, and undefined for 5.8.x. As we are never going to need to port changes back to maint-5.8 any more, eliminate all the 5.8.x related code, and the macro that supports it.
Diffstat (limited to 'pp_pack.c')
-rw-r--r--pp_pack.c25
1 files changed, 0 insertions, 25 deletions
diff --git a/pp_pack.c b/pp_pack.c
index b41ec78467..92952dc460 100644
--- a/pp_pack.c
+++ b/pp_pack.c
@@ -83,7 +83,6 @@ typedef union {
#endif
#if PERL_VERSION >= 9
-# define PERL_PACK_CAN_BYTEORDER
# define PERL_PACK_CAN_SHRIEKSIGN
#endif
@@ -243,26 +242,6 @@ S_mul128(pTHX_ SV *sv, U8 m)
# define SHRIEKING_ALLOWED_TYPES "sSiIlLxX"
#endif
-#ifndef PERL_PACK_CAN_BYTEORDER
-/* Put "can't" first because it is shorter */
-# define TYPE_ENDIANNESS(t) 0
-# define TYPE_NO_ENDIANNESS(t) (t)
-
-# define ENDIANNESS_ALLOWED_TYPES ""
-
-# define DO_BO_UNPACK(var, type)
-# define DO_BO_PACK(var, type)
-# define DO_BO_UNPACK_PTR(var, type, pre_cast, post_cast)
-# define DO_BO_PACK_PTR(var, type, pre_cast, post_cast)
-# define DO_BO_UNPACK_N(var, type)
-# define DO_BO_PACK_N(var, type)
-# define DO_BO_UNPACK_P(var)
-# define DO_BO_PACK_P(var)
-# define DO_BO_UNPACK_PC(var)
-# define DO_BO_PACK_PC(var)
-
-#else /* PERL_PACK_CAN_BYTEORDER */
-
# define TYPE_ENDIANNESS(t) ((t) & TYPE_ENDIANNESS_MASK)
# define TYPE_NO_ENDIANNESS(t) ((t) & ~TYPE_ENDIANNESS_MASK)
@@ -383,8 +362,6 @@ S_mul128(pTHX_ SV *sv, U8 m)
# define DO_BO_PACK_N(var, type) BO_CANT_DOIT(pack, type)
# endif
-#endif /* PERL_PACK_CAN_BYTEORDER */
-
#define PACK_SIZE_CANNOT_CSUM 0x80
#define PACK_SIZE_UNPREDICTABLE 0x40 /* Not a fixed size element */
#define PACK_SIZE_MASK 0x3F
@@ -781,7 +758,6 @@ S_next_symbol(pTHX_ tempsym_t* symptr )
modifier = TYPE_IS_SHRIEKING;
allowed = SHRIEKING_ALLOWED_TYPES;
break;
-#ifdef PERL_PACK_CAN_BYTEORDER
case '>':
modifier = TYPE_IS_BIG_ENDIAN;
allowed = ENDIANNESS_ALLOWED_TYPES;
@@ -790,7 +766,6 @@ S_next_symbol(pTHX_ tempsym_t* symptr )
modifier = TYPE_IS_LITTLE_ENDIAN;
allowed = ENDIANNESS_ALLOWED_TYPES;
break;
-#endif /* PERL_PACK_CAN_BYTEORDER */
default:
allowed = "";
modifier = 0;