Recent versions of Perl issue a warning or error when an unescaped
open curly brace is used in a position where it might introduce a
quantifier in a regular expression. Escape all regexp literal curly
braces in def-check.pl.
(cherry picked from commit
523e4ab050b13404a6929cc56ef873de8023e25c)
ticket: 8677
version_fixed: 1.15.4
next LINE;
}
s/#.*$//;
- if (/^} *$/) {
+ if (/^\} *$/) {
next LINE;
}
# strip comments
if (/^[ \t]*$/) {
next LINE;
}
- if (/^ *extern "C" {/) {
+ if (/^ *extern "C" \{/) {
next LINE;
}
s/KRB5_ATTR_DEPRECATED//;
# elide struct definitions
Struct1:
- if (/{[^}]*}/) {
- s/{[^}]*}/ /g;
+ if (/\{[^}]*\}/) {
+ s/\{[^}]*\}/ /g;
goto Struct1;
}
# multi-line defs
- if (/{/) {
+ if (/\{/) {
$_ .= "\n";
$len1 = length;
$_ .= $h->getline();