Use '0' instead of NULL

This commit is contained in:
2011-08-14 17:47:16 +02:00
parent c4a88fb459
commit 66a60bf7a6
22 changed files with 67 additions and 67 deletions

View File

@@ -101,7 +101,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
struct parse_opt* l, *r, *op, *op_tmp;
char type = -1;
bool negative = false, number = false;
l = r = op = op_tmp = NULL;
l = r = op = op_tmp = 0;
if (!**expr) return;
@@ -112,7 +112,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
op_tmp = new struct parse_opt;
op_tmp->type = CST;
op_tmp->root = root;
op_tmp->l = op_tmp->r = NULL;
op_tmp->l = op_tmp->r = 0;
(*expr)++;
ParseExp(expr, op_tmp, true);
l = op_tmp;
@@ -184,7 +184,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
l = new struct parse_opt;
l->type = CST;
l->root = root;
l->l = NULL; l->r = NULL;
l->l = 0; l->r = 0;
l->value = atof(temp, *expr-temp);
if (negative)
l->value *= -1.0;
@@ -206,7 +206,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
root->type = CST;
root->value = 0.0;
root->l = NULL ; root->r = NULL;
root->l = 0 ; root->r = 0;
(*expr)++;
ParseExp(expr, root, needParenthesis);
@@ -221,7 +221,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
r = new struct parse_opt;
r->type = CST;
r->root = root;
r->l = NULL; r->r = NULL;
r->l = 0; r->r = 0;
r->value = 0.0;
root->r = r;
@@ -246,7 +246,7 @@ void ParseExp(char** expr, struct parse_opt* root, bool needParenthesis)
else
{
root->type = CST;
root->l = NULL; root->r = NULL;
root->l = 0; root->r = 0;
root->value = atof(temp, *expr-temp);
if (negative)
root->value *= -1.0;