summaryrefslogtreecommitdiff
path: root/regexec.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2015-02-08 23:04:18 -0700
committerKarl Williamson <khw@cpan.org>2015-02-19 22:55:01 -0700
commitaa38344828be7d6b6a4fb83bedc3ca2a8eb43bdd (patch)
treef09b4bf4d2613272d990265ca3677b93e36a028b /regexec.c
parent64935bc6975bb01af403817752e88d6540c8711d (diff)
downloadperl-aa38344828be7d6b6a4fb83bedc3ca2a8eb43bdd.tar.gz
regexec.c: White-space only
Add indentation, as the previous commit added a switch{} around these.
Diffstat (limited to 'regexec.c')
-rw-r--r--regexec.c27
1 files changed, 13 insertions, 14 deletions
diff --git a/regexec.c b/regexec.c
index 95dae10cae..4819b89e9a 100644
--- a/regexec.c
+++ b/regexec.c
@@ -4910,14 +4910,13 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
bound_utf8:
switch((bound_type) FLAGS(scan)) {
case TRADITIONAL_BOUND:
- ln = (locinput == reginfo->strbeg)
- ? isWORDCHAR_L1('\n')
- : isWORDCHAR_utf8(reghop3((U8*)locinput, -1,
- (U8*)(reginfo->strbeg)));
- n = (NEXTCHR_IS_EOS)
- ? isWORDCHAR_L1('\n')
- : isWORDCHAR_utf8((U8*)locinput);
-
+ ln = (locinput == reginfo->strbeg)
+ ? isWORDCHAR_L1('\n')
+ : isWORDCHAR_utf8(reghop3((U8*)locinput, -1,
+ (U8*)(reginfo->strbeg)));
+ n = (NEXTCHR_IS_EOS)
+ ? isWORDCHAR_L1('\n')
+ : isWORDCHAR_utf8((U8*)locinput);
match = ln != n;
break;
case GCB_BOUND:
@@ -4942,12 +4941,12 @@ S_regmatch(pTHX_ regmatch_info *reginfo, char *startpos, regnode *prog)
else { /* Not utf8 target */
switch((bound_type) FLAGS(scan)) {
case TRADITIONAL_BOUND:
- ln = (locinput == reginfo->strbeg)
- ? isWORDCHAR_L1('\n')
- : isWORDCHAR_L1(UCHARAT(locinput - 1));
- n = (NEXTCHR_IS_EOS)
- ? isWORDCHAR_L1('\n')
- : isWORDCHAR_L1(nextchr);
+ ln = (locinput == reginfo->strbeg)
+ ? isWORDCHAR_L1('\n')
+ : isWORDCHAR_L1(UCHARAT(locinput - 1));
+ n = (NEXTCHR_IS_EOS)
+ ? isWORDCHAR_L1('\n')
+ : isWORDCHAR_L1(nextchr);
match = ln != n;
break;