summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2011-02-16 10:38:55 +1100
committerTony Cook <tony@develop-help.com>2011-02-16 10:38:55 +1100
commit26ecd6782dd578b8e5db8e71a209f1af139f5877 (patch)
treeea5cbb133919aaee4a16b7ccb0bd864002909766 /regexec.c
parent5e6b238927a6bd1b080b1a2f0ec23e491575355b (diff)
downloadperl-26ecd6782dd578b8e5db8e71a209f1af139f5877.tar.gz
fix C++ builds and make the comment on initializers clearer
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/regexec.c b/regexec.c
index 8d3ec68257..93de2cfe07 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4039,17 +4039,19 @@ S_regmatch(pTHX_ regmatch_info *reginfo, regnode *prog)
named buffers just convert to the equivalent numbered and
pretend they were called as the corresponding numbered buffer
op. */
- /* don't initialize these, it makes C++ unhappy */
+ /* don't initialize these in the declaration, it makes C++
+ unhappy */
char *s;
char type;
re_fold_t folder;
const U8 *fold_array;
- UV utf8_fold_flags = 0;
+ UV utf8_fold_flags;
PL_reg_flags |= RF_tainted;
folder = foldEQ_locale;
fold_array = PL_fold_locale;
type = REFFL;
+ utf8_fold_flags = 0;
goto do_nref;
case NREFFA: