Eliminate BmPREVIOUS_set - with the complexity gone from how the datum
Nicholas Clark [Thu, 28 Dec 2006 23:57:16 +0000 (23:57 +0000)]
is stored, there's no need for it.

p4raw-id: //depot/perl@29635

sv.h
util.c

diff --git a/sv.h b/sv.h
index 60c606a..f7a7ba0 100644 (file)
--- 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 (file)
--- 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);