diff options
| author | jackbackrack | 2015-05-07 10:28:50 -0700 |
|---|---|---|
| committer | jackbackrack | 2015-05-07 10:28:50 -0700 |
| commit | e9b4d9ea3ec38db12b37f81994c28b8a28b6f88e (patch) | |
| tree | 44a99c722f65190653c65d54984d8ef95dffacab /bin/filter.cpp | |
| parent | 458ba72d021623c14725c98df7ff3fa6fa5ba550 (diff) | |
add better testing support, better width inference and padding, remove old reduce ops
Diffstat (limited to 'bin/filter.cpp')
| -rw-r--r-- | bin/filter.cpp | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/bin/filter.cpp b/bin/filter.cpp index ce67b8e3..4e805a48 100644 --- a/bin/filter.cpp +++ b/bin/filter.cpp @@ -5,7 +5,11 @@ int main (int argc, char* argv[]) { for (;;) { c = getchar(); if (c == EOF) break; - char nc = (c == '$' || c == '#') ? '_' : c; - putchar(nc); + if (c == '#') + putchar('_'); + else if (c == '$') { + putchar(':'); putchar(':'); + } else + putchar(c); } } |
