summaryrefslogtreecommitdiff
path: root/tools/slang-embed/slang-embed.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'tools/slang-embed/slang-embed.cpp')
-rw-r--r--tools/slang-embed/slang-embed.cpp22
1 files changed, 16 insertions, 6 deletions
diff --git a/tools/slang-embed/slang-embed.cpp b/tools/slang-embed/slang-embed.cpp
index 5910e00f8..eb493be4b 100644
--- a/tools/slang-embed/slang-embed.cpp
+++ b/tools/slang-embed/slang-embed.cpp
@@ -167,10 +167,18 @@ struct App
{
// The common C escape sequencs are handled directly.
//
- case '"': fprintf(outputFile, "\\\""); break;
- case '\n': fprintf(outputFile, "\\n"); break;
- case '\t': fprintf(outputFile, "\\t"); break;
- case '\\': fprintf(outputFile, "\\\\"); break;
+ case '"':
+ fprintf(outputFile, "\\\"");
+ break;
+ case '\n':
+ fprintf(outputFile, "\\n");
+ break;
+ case '\t':
+ fprintf(outputFile, "\\t");
+ break;
+ case '\\':
+ fprintf(outputFile, "\\\\");
+ break;
default:
// For all other cases, we detect if the byte
// is in the printable ASCII range, and emit
@@ -252,8 +260,10 @@ struct App
{
switch (*cursor)
{
- default: break;
- case '-': *cursor = '_';
+ default:
+ break;
+ case '-':
+ *cursor = '_';
}
}