gv_fetchpv, gv_fetchpvn and gv_fetchsv take a bitmask of flags, rather
[p5sagit/p5-mst-13.2.git] / regcomp.c
index 7d5d8a3..18b2abf 100644 (file)
--- a/regcomp.c
+++ b/regcomp.c
@@ -5822,8 +5822,9 @@ Perl_regprop(pTHX_ SV *sv, const regnode *o)
     else if (k == ANYOF) {
        int i, rangestart = -1;
        const U8 flags = ANYOF_FLAGS(o);
-       const char * const anyofs[] = { /* Should be synchronized with
-                                        * ANYOF_ #xdefines in regcomp.h */
+
+       /* Should be synchronized with * ANYOF_ #xdefines in regcomp.h */
+       static const char * const anyofs[] = {
            "\\w",
            "\\W",
            "\\s",
@@ -6224,7 +6225,7 @@ Perl_save_re_context(pTHX)
                GV *mgv;
                char digits[TYPE_CHARS(long)];
                const STRLEN len = my_sprintf(digits, "%lu", (long)i);
-               if ((mgv = gv_fetchpvn_flags(digits, len, FALSE, SVt_PV)))
+               if ((mgv = gv_fetchpvn_flags(digits, len, 0, SVt_PV)))
                    save_scalar(mgv);
            }
        }