diff options
author | Tavian Barnes <tavianator@gmail.com> | 2010-07-01 23:46:18 -0600 |
---|---|---|
committer | Tavian Barnes <tavianator@gmail.com> | 2010-07-01 23:46:18 -0600 |
commit | 88945f769f5311eb080f451103fb1ced32b0fbe6 (patch) | |
tree | 577ea589ef921a96ed37f44f7eb6bde333627c32 /dimension/parse.c | |
parent | d21ccd4d088d3cacfdb8ca6e65c5d675773e92f8 (diff) | |
download | dimension-88945f769f5311eb080f451103fb1ced32b0fbe6.tar.xz |
Code formatting fixes.
Diffstat (limited to 'dimension/parse.c')
-rw-r--r-- | dimension/parse.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/dimension/parse.c b/dimension/parse.c index 3216962..fc067cf 100644 --- a/dimension/parse.c +++ b/dimension/parse.c @@ -562,7 +562,7 @@ dmnsn_eval_zeroary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) { dmnsn_astnode ret = dmnsn_copy_astnode(astnode); - switch(astnode.type) { + switch (astnode.type) { case DMNSN_AST_PI: dmnsn_make_ast_float(&ret, 4*atan(1.0)); break; @@ -688,7 +688,7 @@ dmnsn_eval_unary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) long n = *(long *)rhs.ptr; ret = dmnsn_copy_astnode(astnode); - switch(astnode.type) { + switch (astnode.type) { case DMNSN_AST_DOT_X: case DMNSN_AST_DOT_Y: case DMNSN_AST_DOT_Z: @@ -792,7 +792,7 @@ dmnsn_eval_unary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) double n = *(double *)rhs.ptr; ret = dmnsn_copy_astnode(astnode); - switch(astnode.type) { + switch (astnode.type) { case DMNSN_AST_DOT_X: case DMNSN_AST_DOT_Y: case DMNSN_AST_DOT_Z: @@ -895,7 +895,7 @@ dmnsn_eval_unary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) } else if (rhs.type == DMNSN_AST_STRING) { ret = dmnsn_copy_astnode(astnode); - switch(astnode.type) { + switch (astnode.type) { case DMNSN_AST_ASC: dmnsn_make_ast_integer(&ret, ((char *)rhs.ptr)[0]); break; @@ -1571,7 +1571,7 @@ dmnsn_eval_ternary(dmnsn_astnode astnode, dmnsn_symbol_table *symtable) dmnsn_array_get(astnode.children, 2, &iffalse); test = dmnsn_eval_scalar(test, symtable); - switch(astnode.type) { + switch (astnode.type) { case DMNSN_AST_TERNARY: dmnsn_assert(test.type == DMNSN_AST_INTEGER, "Conditional expression evaluated to non-integer."); |