From 44a10c71f5d5adc63a15c1d8fb5e8b72de48836f Mon Sep 17 00:00:00 2001 From: Nicholas Clark Date: Thu, 28 Dec 2006 23:57:16 +0000 Subject: [PATCH] Eliminate BmPREVIOUS_set - with the complexity gone from how the datum is stored, there's no need for it. p4raw-id: //depot/perl@29635 --- sv.h | 2 -- util.c | 2 +- 2 files changed, 1 insertion(+), 3 deletions(-) diff --git a/sv.h b/sv.h index 60c606a..f7a7ba0 100644 --- a/sv.h +++ b/sv.h @@ -1464,8 +1464,6 @@ the scalar's value cannot change unless written to. # define BmPREVIOUS(sv) ((XPVGV*) SvANY(sv))->xnv_u.xbm_s.xbm_previous #endif -#define BmPREVIOUS_set(sv, val) \ - STMT_START { BmPREVIOUS(sv) = val; } STMT_END #define FmLINES(sv) ((XPVFM*) SvANY(sv))->xfm_lines diff --git a/util.c b/util.c index 1c64b94..2eded6f 100644 --- a/util.c +++ b/util.c @@ -525,7 +525,7 @@ Perl_fbm_compile(pTHX_ SV *sv, U32 flags) } } BmRARE(sv) = s[rarest]; - BmPREVIOUS_set(sv, rarest); + BmPREVIOUS(sv) = rarest; BmUSEFUL(sv) = 100; /* Initial value */ if (flags & FBMcf_TAIL) SvTAIL_on(sv); -- 2.7.4