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-18 18:17:32 +0300
committerCampbell Barton <ideasman42@gmail.com>2019-04-18 18:19:44 +0300
commit4439e5d0ba3ffde3841ec44405a9bcaf800be279 (patch)
treed0955d8e18d854603da54bed39c46ef9627c4736 /source/blender/blenlib
parent098f75897e3ddf4bb93f64cecb322d7370127419 (diff)
Cleanup: add trailing commas to avoid right shift
Diffstat (limited to 'source/blender/blenlib')
-rw-r--r--source/blender/blenlib/intern/expr_pylike_eval.c58
1 files changed, 31 insertions, 27 deletions
diff --git a/source/blender/blenlib/intern/expr_pylike_eval.c b/source/blender/blenlib/intern/expr_pylike_eval.c
index 40df9711ef1..6dc0203ead2 100644
--- a/source/blender/blenlib/intern/expr_pylike_eval.c
+++ b/source/blender/blenlib/intern/expr_pylike_eval.c
@@ -356,27 +356,29 @@ typedef struct BuiltinOpDef {
void *funcptr;
} BuiltinOpDef;
-static BuiltinOpDef builtin_ops[] = {{"radians", OPCODE_FUNC1, op_radians},
- {"degrees", OPCODE_FUNC1, op_degrees},
- {"abs", OPCODE_FUNC1, fabs},
- {"fabs", OPCODE_FUNC1, fabs},
- {"floor", OPCODE_FUNC1, floor},
- {"ceil", OPCODE_FUNC1, ceil},
- {"trunc", OPCODE_FUNC1, trunc},
- {"int", OPCODE_FUNC1, trunc},
- {"sin", OPCODE_FUNC1, sin},
- {"cos", OPCODE_FUNC1, cos},
- {"tan", OPCODE_FUNC1, tan},
- {"asin", OPCODE_FUNC1, asin},
- {"acos", OPCODE_FUNC1, acos},
- {"atan", OPCODE_FUNC1, atan},
- {"atan2", OPCODE_FUNC2, atan2},
- {"exp", OPCODE_FUNC1, exp},
- {"log", OPCODE_FUNC1, log},
- {"sqrt", OPCODE_FUNC1, sqrt},
- {"pow", OPCODE_FUNC2, pow},
- {"fmod", OPCODE_FUNC2, fmod},
- {NULL, OPCODE_CONST, NULL}};
+static BuiltinOpDef builtin_ops[] = {
+ {"radians", OPCODE_FUNC1, op_radians},
+ {"degrees", OPCODE_FUNC1, op_degrees},
+ {"abs", OPCODE_FUNC1, fabs},
+ {"fabs", OPCODE_FUNC1, fabs},
+ {"floor", OPCODE_FUNC1, floor},
+ {"ceil", OPCODE_FUNC1, ceil},
+ {"trunc", OPCODE_FUNC1, trunc},
+ {"int", OPCODE_FUNC1, trunc},
+ {"sin", OPCODE_FUNC1, sin},
+ {"cos", OPCODE_FUNC1, cos},
+ {"tan", OPCODE_FUNC1, tan},
+ {"asin", OPCODE_FUNC1, asin},
+ {"acos", OPCODE_FUNC1, acos},
+ {"atan", OPCODE_FUNC1, atan},
+ {"atan2", OPCODE_FUNC2, atan2},
+ {"exp", OPCODE_FUNC1, exp},
+ {"log", OPCODE_FUNC1, log},
+ {"sqrt", OPCODE_FUNC1, sqrt},
+ {"pow", OPCODE_FUNC2, pow},
+ {"fmod", OPCODE_FUNC2, fmod},
+ {NULL, OPCODE_CONST, NULL},
+};
/** \} */
@@ -413,12 +415,14 @@ typedef struct KeywordTokenDef {
short token;
} KeywordTokenDef;
-static KeywordTokenDef keyword_list[] = {{"and", TOKEN_AND},
- {"or", TOKEN_OR},
- {"not", TOKEN_NOT},
- {"if", TOKEN_IF},
- {"else", TOKEN_ELSE},
- {NULL, TOKEN_ID}};
+static KeywordTokenDef keyword_list[] = {
+ {"and", TOKEN_AND},
+ {"or", TOKEN_OR},
+ {"not", TOKEN_NOT},
+ {"if", TOKEN_IF},
+ {"else", TOKEN_ELSE},
+ {NULL, TOKEN_ID},
+};
typedef struct ExprParseState {
int param_names_len;