From 6976c98688aafe67a4a8b88a77e48e96b8ea0fb9 Mon Sep 17 00:00:00 2001 From: Yves Orton Date: Mon, 25 Mar 2013 20:08:56 +0100 Subject: Improve how regcomp.pl handles multibits In preparation for future changes. --- regen/regcomp.pl | 23 ++++++++++++++++------- 1 file changed, 16 insertions(+), 7 deletions(-) (limited to 'regen/regcomp.pl') diff --git a/regen/regcomp.pl b/regen/regcomp.pl index 5e1abfb24a..97719b00ec 100644 --- a/regen/regcomp.pl +++ b/regen/regcomp.pl @@ -266,7 +266,8 @@ foreach my $file ("op_reg_common.h", "regexp.h") { if (s/ \# \s* define \s+ ( _? RXf_ \w+ ) \s+ //xi) { chomp; my $define = $1; - s: / \s* \* .*? \* \s* / : :x; # Replace comments by a blank + my $orig= $_; + s{ /\* .*? \*/ }{ }x; # Replace comments by a blank # Replace any prior defined symbols by their values foreach my $key (keys %definitions) { @@ -282,7 +283,12 @@ foreach my $file ("op_reg_common.h", "regexp.h") { next unless $_ =~ /<