summaryrefslogtreecommitdiff
path: root/utf8.c
diff options
context:
space:
mode:
authorKarl Williamson <public@khwilliamson.com>2013-12-26 14:01:49 -0700
committerKarl Williamson <public@khwilliamson.com>2013-12-31 08:27:23 -0700
commit1784d2f935ff888bd85e2072b1d2486e159c6caf (patch)
tree365e004418faed5943db2f55d8765e9b8b765050 /utf8.c
parent31aa6e0befef7d9d5586b53de01cc20ca71f9a4b (diff)
downloadperl-1784d2f935ff888bd85e2072b1d2486e159c6caf.tar.gz
White-space only
This indents various newly-formed blocks (by the previous commit) in these three files, and reflows lines to fit into 79 columns
Diffstat (limited to 'utf8.c')
-rw-r--r--utf8.c56
1 files changed, 28 insertions, 28 deletions
diff --git a/utf8.c b/utf8.c
index 818efb11e6..45ea2339ba 100644
--- a/utf8.c
+++ b/utf8.c
@@ -4167,39 +4167,39 @@ Perl__swash_to_invlist(pTHX_ SV* const swash)
}
else {
- /* Scan the input to count the number of lines to preallocate array size
- * based on worst possible case, which is each line in the input creates 2
- * elements in the inversion list: 1) the beginning of a range in the list;
- * 2) the beginning of a range not in the list. */
- while ((loc = (strchr(loc, '\n'))) != NULL) {
- elements += 2;
- loc++;
- }
-
- /* If the ending is somehow corrupt and isn't a new line, add another
- * element for the final range that isn't in the inversion list */
- if (! (*lend == '\n'
- || (*lend == '\0' && (lcur == 0 || *(lend - 1) == '\n'))))
- {
- elements++;
- }
+ /* Scan the input to count the number of lines to preallocate array
+ * size based on worst possible case, which is each line in the input
+ * creates 2 elements in the inversion list: 1) the beginning of a
+ * range in the list; 2) the beginning of a range not in the list. */
+ while ((loc = (strchr(loc, '\n'))) != NULL) {
+ elements += 2;
+ loc++;
+ }
- invlist = _new_invlist(elements);
+ /* If the ending is somehow corrupt and isn't a new line, add another
+ * element for the final range that isn't in the inversion list */
+ if (! (*lend == '\n'
+ || (*lend == '\0' && (lcur == 0 || *(lend - 1) == '\n'))))
+ {
+ elements++;
+ }
- /* Now go through the input again, adding each range to the list */
- while (l < lend) {
- UV start, end;
- UV val; /* Not used by this function */
+ invlist = _new_invlist(elements);
- l = S_swash_scan_list_line(aTHX_ l, lend, &start, &end, &val,
- cBOOL(octets), typestr);
+ /* Now go through the input again, adding each range to the list */
+ while (l < lend) {
+ UV start, end;
+ UV val; /* Not used by this function */
- if (l > lend) {
- break;
- }
+ l = S_swash_scan_list_line(aTHX_ l, lend, &start, &end, &val,
+ cBOOL(octets), typestr);
- invlist = _add_range_to_invlist(invlist, start, end);
- }
+ if (l > lend) {
+ break;
+ }
+
+ invlist = _add_range_to_invlist(invlist, start, end);
+ }
}
/* Invert if the data says it should be */