diff options
| author | 2019-02-19 20:51:34 -0500 | |
|---|---|---|
| committer | 2019-02-19 20:51:34 -0500 | |
| commit | 9d4effc02ec4876877d8ea116a20b5e6486c25a4 (patch) | |
| tree | adb504feefea28d60077c6f2b627ff995ded4df6 /tools | |
| parent | Merge pull request #49 from boardwalk/fix_indentation (diff) | |
Add make format to format code.
A consistent style should help with contributors and
readability. We use astyle as the formatter as can make a pretty
good approximation of the current style and my preferred style.
Astyle can be found at http://astyle.sourceforge.net/astyle.html
Diffstat (limited to 'tools')
| -rw-r--r-- | tools/symcharsgen.c | 34 | ||||
| -rw-r--r-- | tools/xxd.c | 4 |
2 files changed, 19 insertions, 19 deletions
diff --git a/tools/symcharsgen.c b/tools/symcharsgen.c index c56d57e4..92fcb83f 100644 --- a/tools/symcharsgen.c +++ b/tools/symcharsgen.c @@ -29,23 +29,23 @@ static int is_symbol_char_gen(uint8_t c) { if (c >= 'A' && c <= 'Z') return 1; if (c >= '0' && c <= '9') return 1; return (c == '!' || - c == '$' || - c == '%' || - c == '&' || - c == '*' || - c == '+' || - c == '-' || - c == '.' || - c == '/' || - c == ':' || - c == '<' || - c == '?' || - c == '=' || - c == '>' || - c == '@' || - c == '^' || - c == '_' || - c == '|'); + c == '$' || + c == '%' || + c == '&' || + c == '*' || + c == '+' || + c == '-' || + c == '.' || + c == '/' || + c == ':' || + c == '<' || + c == '?' || + c == '=' || + c == '>' || + c == '@' || + c == '^' || + c == '_' || + c == '|'); } int main() { diff --git a/tools/xxd.c b/tools/xxd.c index 7a740406..de64bd68 100644 --- a/tools/xxd.c +++ b/tools/xxd.c @@ -86,9 +86,9 @@ int main(int argc, const char **argv) { lineIndex = 0; } - } + } - /* Write the tail */ + /* Write the tail */ fputs("\n};\n\n", out); fprintf(out, "const unsigned char *%s = bytes_%s;\n\n", argv[3], argv[3]); |
