summaryrefslogtreecommitdiff
path: root/dist/Data-Dumper
diff options
context:
space:
mode:
authorTony Cook <tony@develop-help.com>2013-07-10 14:19:17 +1000
committerTony Cook <tony@develop-help.com>2013-07-17 10:45:19 +1000
commitf1c459431a0f7a1dabba8b8a2b063a110f2f6284 (patch)
tree6d76e3e3d4d4cbdeea17fa49134e5b6869fdedb7 /dist/Data-Dumper
parent9baac1a3613bd641a847683d7877b3cfab3244bc (diff)
downloadperl-f1c459431a0f7a1dabba8b8a2b063a110f2f6284.tar.gz
adjust indentation to match other DD code
Diffstat (limited to 'dist/Data-Dumper')
-rw-r--r--dist/Data-Dumper/Dumper.xs47
1 files changed, 23 insertions, 24 deletions
diff --git a/dist/Data-Dumper/Dumper.xs b/dist/Data-Dumper/Dumper.xs
index 2a19097ee9..60fe404951 100644
--- a/dist/Data-Dumper/Dumper.xs
+++ b/dist/Data-Dumper/Dumper.xs
@@ -237,31 +237,30 @@ esc_q_utf8(pTHX_ SV* sv, const char *src, STRLEN slen, I32 do_utf8, I32 useqq)
if (useqq && (k <= 31 || k == 127 || (!do_utf8 && k > 127))) {
*r++ = '\\';
switch (k) {
- case 7: *r++ = 'a'; break;
- case 8: *r++ = 'b'; break;
- case 9: *r++ = 't'; break;
- case 10: *r++ = 'n'; break;
- case 12: *r++ = 'f'; break;
- case 13: *r++ = 'r'; break;
- case 27: *r++ = 'e'; break;
- default:
- /* faster than
- * r = r + my_sprintf(r, "%o", k);
- */
- if (k <= 7) {
- *r++ = (char)k + '0';
- } else if (k <= 63) {
- *r++ = (char)(k>>3) + '0';
- *r++ = (char)(k&7) + '0';
- } else {
- *r++ = (char)(k>>6) + '0';
- *r++ = (char)((k&63)>>3) + '0';
- *r++ = (char)(k&7) + '0';
- }
+ case 7: *r++ = 'a'; break;
+ case 8: *r++ = 'b'; break;
+ case 9: *r++ = 't'; break;
+ case 10: *r++ = 'n'; break;
+ case 12: *r++ = 'f'; break;
+ case 13: *r++ = 'r'; break;
+ case 27: *r++ = 'e'; break;
+ default:
+ /* faster than
+ * r = r + my_sprintf(r, "%o", k);
+ */
+ if (k <= 7) {
+ *r++ = (char)k + '0';
+ } else if (k <= 63) {
+ *r++ = (char)(k>>3) + '0';
+ *r++ = (char)(k&7) + '0';
+ } else {
+ *r++ = (char)(k>>6) + '0';
+ *r++ = (char)((k&63)>>3) + '0';
+ *r++ = (char)(k&7) + '0';
+ }
}
- }
- else
- if (k < 0x80)
+ }
+ else if (k < 0x80)
#endif
*r++ = (char)k;
else {