diff options
author | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:17:24 +0300 |
---|---|---|
committer | Campbell Barton <ideasman42@gmail.com> | 2019-04-17 07:21:24 +0300 |
commit | e12c08e8d170b7ca40f204a5b0423c23a9fbc2c1 (patch) | |
tree | 8cf3453d12edb177a218ef8009357518ec6cab6a /source/blender/blenlib/BLI_expr_pylike_eval.h | |
parent | b3dabc200a4b0399ec6b81f2ff2730d07b44fcaa (diff) |
ClangFormat: apply to source, most of intern
Apply clang format as proposed in T53211.
For details on usage and instructions for migrating branches
without conflicts, see:
https://wiki.blender.org/wiki/Tools/ClangFormat
Diffstat (limited to 'source/blender/blenlib/BLI_expr_pylike_eval.h')
-rw-r--r-- | source/blender/blenlib/BLI_expr_pylike_eval.h | 28 |
1 files changed, 14 insertions, 14 deletions
diff --git a/source/blender/blenlib/BLI_expr_pylike_eval.h b/source/blender/blenlib/BLI_expr_pylike_eval.h index 59540d3c623..b8bf88dd85b 100644 --- a/source/blender/blenlib/BLI_expr_pylike_eval.h +++ b/source/blender/blenlib/BLI_expr_pylike_eval.h @@ -33,25 +33,25 @@ typedef struct ExprPyLike_Parsed ExprPyLike_Parsed; /** Expression evaluation return code. */ typedef enum eExprPyLike_EvalStatus { - EXPR_PYLIKE_SUCCESS = 0, - /* Computation errors; result is still set, but may be NaN */ - EXPR_PYLIKE_DIV_BY_ZERO, - EXPR_PYLIKE_MATH_ERROR, - /* Expression dependent errors or bugs; result is 0 */ - EXPR_PYLIKE_INVALID, - EXPR_PYLIKE_FATAL_ERROR, + EXPR_PYLIKE_SUCCESS = 0, + /* Computation errors; result is still set, but may be NaN */ + EXPR_PYLIKE_DIV_BY_ZERO, + EXPR_PYLIKE_MATH_ERROR, + /* Expression dependent errors or bugs; result is 0 */ + EXPR_PYLIKE_INVALID, + EXPR_PYLIKE_FATAL_ERROR, } eExprPyLike_EvalStatus; void BLI_expr_pylike_free(struct ExprPyLike_Parsed *expr); bool BLI_expr_pylike_is_valid(struct ExprPyLike_Parsed *expr); bool BLI_expr_pylike_is_constant(struct ExprPyLike_Parsed *expr); -ExprPyLike_Parsed *BLI_expr_pylike_parse( - const char *expression, - const char **param_names, int param_names_len); -eExprPyLike_EvalStatus BLI_expr_pylike_eval( - struct ExprPyLike_Parsed *expr, - const double *param_values, int param_values_len, - double *r_result); +ExprPyLike_Parsed *BLI_expr_pylike_parse(const char *expression, + const char **param_names, + int param_names_len); +eExprPyLike_EvalStatus BLI_expr_pylike_eval(struct ExprPyLike_Parsed *expr, + const double *param_values, + int param_values_len, + double *r_result); #ifdef __cplusplus } |