Subversion Repositories filter_foundry

Compare Revisions

Regard whitespace Rev 184 → Rev 185

/trunk/node.c
169,7 → 169,7
case '*': return eval(root->child[0]) * eval(root->child[1]);
case '/': t = eval(root->child[1]); return t ? eval(root->child[0]) / t : 0;
case '%': t = eval(root->child[1]); return t ? eval(root->child[0]) % t : 0;
case EXP: return pow(eval(root->child[0]),eval(root->child[1]));
case EXP: return (value_type)(pow(eval(root->child[0]), eval(root->child[1])));
 
case EQ: return eval(root->child[0]) == eval(root->child[1]);
case NE: return eval(root->child[0]) != eval(root->child[1]);
194,7 → 194,11
case ',': eval(root->child[0]); return eval(root->child[1]);
}
}
#ifdef FP_VALUE
return 0.;
#else
return 0;
#endif
}
 
/* free the memory for a tree's nodes */