diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:50:46 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 09:52:59 +0300 |
commit | a54bdd76cb34005d07a65c2c3a8198b7b8e8c95a (patch) | |
tree | c30e2477cc3c12b1dd046f4fd12c728114c94563 /source/creator/creator_args.c | |
parent | 223f9310955f6b0d6f1089c16802a57e20fcadb3 (diff) |
ClangFormat: format '#if 0' code
Previous cleanups didn't account for space after '#'.
Diffstat (limited to 'source/creator/creator_args.c')
-rw-r--r-- | source/creator/creator_args.c | 10 |
1 files changed, 4 insertions, 6 deletions
diff --git a/source/creator/creator_args.c b/source/creator/creator_args.c index afe9a135c79..f3e4d976d85 100644 --- a/source/creator/creator_args.c +++ b/source/creator/creator_args.c @@ -274,8 +274,7 @@ static bool parse_int_clamp(const char *str, * that parses a comma separated list of numbers. */ static int *parse_int_relative_clamp_n( - const char *str, int pos, int neg, int min, int max, - int *r_value_len, const char **r_err_msg) + const char *str, int pos, int neg, int min, int max, int *r_value_len, const char **r_err_msg) { const char sep = ','; int len = 1; @@ -293,19 +292,18 @@ static int *parse_int_relative_clamp_n( static const char *msg = "incorrect comma use"; *r_err_msg = msg; goto fail; - } else if (parse_int_relative_clamp(str, str_end, pos, neg, min, max, &values[i], r_err_msg)) { i++; } else { - goto fail; /* error message already set */ + goto fail; /* error message already set */ } - if (str_end) { /* next */ + if (str_end) { /* next */ str = str_end + 1; } - else { /* finished */ + else { /* finished */ break; } } |