summaryrefslogtreecommitdiff
path: root/pp.c
diff options
context:
space:
mode:
authorKarl Williamson <khw@cpan.org>2014-06-12 12:06:02 -0600
committerKarl Williamson <khw@cpan.org>2014-06-12 13:32:54 -0600
commit86a1f7fd89679688cb5ccc6f7c88fbda2eaf7c95 (patch)
treebfecdb42a4a96c398b339a729610387a08ad174b /pp.c
parent7e9572462f6d8949ffd898bb5320541cb2f76b48 (diff)
downloadperl-86a1f7fd89679688cb5ccc6f7c88fbda2eaf7c95.tar.gz
pp.c: Vertically stack ternary operators
This is for comprehensibility and to make a future commit easier.
Diffstat (limited to 'pp.c')
-rw-r--r--pp.c7
1 files changed, 5 insertions, 2 deletions
diff --git a/pp.c b/pp.c
index e3d601f609..9218f5b869 100644
--- a/pp.c
+++ b/pp.c
@@ -3527,8 +3527,11 @@ PP(pp_ucfirst)
if (op_type == OP_LCFIRST) {
/* lower case the first letter: no trickiness for any character */
- *tmpbuf = (IN_LC_RUNTIME(LC_CTYPE)) ? toLOWER_LC(*s) :
- ((IN_UNI_8_BIT) ? toLOWER_LATIN1(*s) : toLOWER(*s));
+ *tmpbuf = (IN_LC_RUNTIME(LC_CTYPE))
+ ? toLOWER_LC(*s)
+ : (IN_UNI_8_BIT)
+ ? toLOWER_LATIN1(*s)
+ : toLOWER(*s);
}
/* is ucfirst() */
else if (IN_LC_RUNTIME(LC_CTYPE)) {