Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCampbell Barton <ideasman42@gmail.com>2019-04-17 09:50:46 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-17 09:52:59 +0300
commita54bdd76cb34005d07a65c2c3a8198b7b8e8c95a (patch)
treec30e2477cc3c12b1dd046f4fd12c728114c94563 /source/creator
parent223f9310955f6b0d6f1089c16802a57e20fcadb3 (diff)
ClangFormat: format '#if 0' code
Previous cleanups didn't account for space after '#'.
Diffstat (limited to 'source/creator')
-rw-r--r--source/creator/creator.c4
-rw-r--r--source/creator/creator_args.c10
2 files changed, 6 insertions, 8 deletions
diff --git a/source/creator/creator.c b/source/creator/creator.c
index 713ebdaadec..b257564519a 100644
--- a/source/creator/creator.c
+++ b/source/creator/creator.c
@@ -447,8 +447,8 @@ int main(int argc,
/* TODO - U.pythondir */
#else
printf(
- "\n* WARNING * - Blender compiled without Python!\nthis is not intended for typical "
- "usage\n\n");
+ "\n* WARNING * - Blender compiled without Python!\n"
+ "this is not intended for typical usage\n\n");
#endif
CTX_py_init_set(C, 1);
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;
}
}