summaryrefslogtreecommitdiff
path: root/doop.c
diff options
context:
space:
mode:
authorTomasz Konojacki <me@xenu.pl>2019-10-29 17:33:00 +0100
committerTony Cook <tony@develop-help.com>2019-10-30 15:11:58 +1100
commit17d445953201af33b64e278caa974aeae05a2c95 (patch)
treed9b1e8ea53d5a10e9991fd8441ea88d80bddaba7 /doop.c
parentd398c6bff9ffeadd64017079aea6fd0967884bf4 (diff)
downloadperl-17d445953201af33b64e278caa974aeae05a2c95.tar.gz
remove CONSERVATIVE and LIBERAL
These constants were undocumented and don't do anything useful. Saving a few kilobytes of memory doesn't justify the complexity caused by adding a new build flag. All platforms except 64-bit Windows were using LIBERAL. It's not clear why win64 was using -DCONSERVATIVE, but removing it doesn't break anything. [gh #17232]
Diffstat (limited to 'doop.c')
-rw-r--r--doop.c5
1 files changed, 1 insertions, 4 deletions
diff --git a/doop.c b/doop.c
index 9827bfcae1..a01fc04723 100644
--- a/doop.c
+++ b/doop.c
@@ -1005,11 +1005,9 @@ Perl_do_vecset(pTHX_ SV *sv)
void
Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
{
-#ifdef LIBERAL
long *dl;
long *ll;
long *rl;
-#endif
char *dc;
STRLEN leftlen;
STRLEN rightlen;
@@ -1115,7 +1113,6 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
dc = SvPVX(sv); /* sv_usepvn() calls Renew() */
}
-#ifdef LIBERAL
if (len >= sizeof(long)*4 &&
!(PTR2nat(dc) % sizeof(long)) &&
!(PTR2nat(lc) % sizeof(long)) &&
@@ -1160,7 +1157,7 @@ Perl_do_vop(pTHX_ I32 optype, SV *sv, SV *left, SV *right)
len = remainder;
}
-#endif
+
switch (optype) {
case OP_BIT_AND:
while (len--)