From 88945f769f5311eb080f451103fb1ced32b0fbe6 Mon Sep 17 00:00:00 2001 From: Tavian Barnes Date: Thu, 1 Jul 2010 23:46:18 -0600 Subject: Code formatting fixes. --- dimension/parse.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'dimension/parse.c') 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."); -- cgit v1.2.3