change
if (linebreak) {
decl;
....
}
to
decl;
if (!linebreak)
break;
{
....
}
shouldn't change the meaning of the code but will allow us to remove one
level of indentation and begin to reuse that block of code
{
const bool oneline = fpc[-1] == FF_LINESNGL;
const char *s = item = SvPV_const(sv, len);
+ const char *const send = s + len;
+ STRLEN to_copy = len;
+ const U8 *source = (const U8 *) s;
+ U8 *tmp = NULL;
+
item_is_utf8 = DO_UTF8(sv);
itemsize = len;
- if (itemsize) {
- STRLEN to_copy = itemsize;
- const char *const send = s + len;
- const U8 *source = (const U8 *) s;
- U8 *tmp = NULL;
-
+ if (!itemsize)
+ break;
+ {
gotsome = TRUE;
chophere = s + itemsize;
while (s < send) {