diff options
author | Karl Williamson <public@khwilliamson.com> | 2011-11-11 10:13:28 -0700 |
---|---|---|
committer | Karl Williamson <public@khwilliamson.com> | 2011-11-11 13:30:59 -0700 |
commit | 06b5486afd6f58eb7fdf8c5c8cdb8520a4c87f40 (patch) | |
tree | 29db966a29a27ea1cbf68099c1b8792d28ca2c96 /pp.c | |
parent | cbcd5ab57a4aefcf531cdd93217554a9b21babab (diff) | |
download | perl-06b5486afd6f58eb7fdf8c5c8cdb8520a4c87f40.tar.gz |
pp.c: White-space only
This outdents and reflows comments as a result of the removal of a
surrounding block
Diffstat (limited to 'pp.c')
-rw-r--r-- | pp.c | 47 |
1 files changed, 23 insertions, 24 deletions
@@ -4111,36 +4111,35 @@ PP(pp_lc) U8 tmpbuf[UTF8_MAXBYTES_CASE+1]; while (s < send) { - const STRLEN u = UTF8SKIP(s); - STRLEN ulen; + const STRLEN u = UTF8SKIP(s); + STRLEN ulen; - toLOWER_utf8(s, tmpbuf, &ulen); + toLOWER_utf8(s, tmpbuf, &ulen); - /* Here is where we would do context-sensitive actions. See - * the commit message for this comment for why there isn't any - */ + /* Here is where we would do context-sensitive actions. See the + * commit message for this comment for why there isn't any */ - if (ulen > u && (SvLEN(dest) < (min += ulen - u))) { + if (ulen > u && (SvLEN(dest) < (min += ulen - u))) { - /* If the eventually required minimum size outgrows the - * available space, we need to grow. */ - const UV o = d - (U8*)SvPVX_const(dest); + /* If the eventually required minimum size outgrows the + * available space, we need to grow. */ + const UV o = d - (U8*)SvPVX_const(dest); - /* If someone lowercases one million U+0130s we SvGROW() - * one million times. Or we could try guessing how much to - * allocate without allocating too much. Such is life. - * Another option would be to grow an extra byte or two - * more each time we need to grow, which would cut down the - * million to 500K, with little waste */ - SvGROW(dest, min); - d = (U8*)SvPVX(dest) + o; - } + /* If someone lowercases one million U+0130s we SvGROW() one + * million times. Or we could try guessing how much to + * allocate without allocating too much. Such is life. + * Another option would be to grow an extra byte or two more + * each time we need to grow, which would cut down the million + * to 500K, with little waste */ + SvGROW(dest, min); + d = (U8*)SvPVX(dest) + o; + } - /* Copy the newly lowercased letter to the output buffer we're - * building */ - Copy(tmpbuf, d, ulen, U8); - d += ulen; - s += u; + /* Copy the newly lowercased letter to the output buffer we're + * building */ + Copy(tmpbuf, d, ulen, U8); + d += ulen; + s += u; } /* End of looping through the source string */ SvUTF8_on(dest); *d = '\0'; |