From cb002e7b8407a66b4195a2ef15473e630708141a Mon Sep 17 00:00:00 2001 From: Calvin Rose Date: Tue, 19 Feb 2019 21:28:22 -0500 Subject: [PATCH] Update generating tools to produce stylish code. Really small whitespace changes in generated code. --- src/boot/boot.janet | 2 +- tools/xxd.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/boot/boot.janet b/src/boot/boot.janet index 3f3ec3e9..9d1f31fc 100644 --- a/src/boot/boot.janet +++ b/src/boot/boot.janet @@ -36,7 +36,7 @@ (def str (string ;(interpose ", " (map (partial string/format "0x%.2X") line)))) (file/write image-file " " str ",\n")) (file/write image-file - "0};\n\n" + " 0\n};\n\n" "const unsigned char *janet_core_image = janet_core_image_bytes;\n" "size_t janet_core_image_size = sizeof(janet_core_image_bytes);\n") (file/close image-file)) diff --git a/tools/xxd.c b/tools/xxd.c index de64bd68..6d68e255 100644 --- a/tools/xxd.c +++ b/tools/xxd.c @@ -73,7 +73,7 @@ int main(int argc, const char **argv) { if (lineIndex++ == 0) { if (line++) fputc(',', out); - fputs("\n\t", out); + fputs("\n ", out); } else { fputs(", ", out); }