diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:16:10 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-03-27 05:17:30 +0300 |
commit | 9ba948a4859da3308033fa6dc54f74433d7e6a21 (patch) | |
tree | 0bd6e95eb59d9af03aa32d925c68e1cbebecc246 /source/blender/blenlib/intern/expr_pylike_eval.c | |
parent | 337eb8c1de4c57c34520b467d79779153335eecb (diff) |
Cleanup: style, use braces for blenlib
Diffstat (limited to 'source/blender/blenlib/intern/expr_pylike_eval.c')
-rw-r--r-- | source/blender/blenlib/intern/expr_pylike_eval.c | 15 |
1 files changed, 10 insertions, 5 deletions
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c index cd5b43fc224..51a004f846f 100644 --- a/source/blender/blenlib/intern/expr_pylike_eval.c +++ b/source/blender/blenlib/intern/expr_pylike_eval.c @@ -554,28 +554,32 @@ static bool parse_next_token(ExprParseState *state) char *end, *out = state->tokenbuf; bool is_float = false; - while (isdigit(*state->cur)) + while (isdigit(*state->cur)) { *out++ = *state->cur++; + } if (*state->cur == '.') { is_float = true; *out++ = *state->cur++; - while (isdigit(*state->cur)) + while (isdigit(*state->cur)) { *out++ = *state->cur++; + } } if (ELEM(*state->cur, 'e', 'E')) { is_float = true; *out++ = *state->cur++; - if (ELEM(*state->cur, '+', '-')) + if (ELEM(*state->cur, '+', '-')) { *out++ = *state->cur++; + } CHECK_ERROR(isdigit(*state->cur)); - while (isdigit(*state->cur)) + while (isdigit(*state->cur)) { *out++ = *state->cur++; + } } *out = 0; @@ -611,8 +615,9 @@ static bool parse_next_token(ExprParseState *state) if (isalpha(*state->cur) || ELEM(*state->cur, '_')) { char *out = state->tokenbuf; - while (isalnum(*state->cur) || ELEM(*state->cur, '_')) + while (isalnum(*state->cur) || ELEM(*state->cur, '_')) { *out++ = *state->cur++; + } *out = 0; |