Commit 0bcad761 authored by Ted Lemon's avatar Ted Lemon
Browse files

Add the numeric operators to is_numeric_expression.

parent d1f925a1
...@@ -43,7 +43,7 @@ ...@@ -43,7 +43,7 @@
#ifndef lint #ifndef lint
static char copyright[] = static char copyright[] =
"$Id: tree.c,v 1.80 2000/03/18 02:15:37 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n"; "$Id: tree.c,v 1.81 2000/03/18 03:32:53 mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */ #endif /* not lint */
#include "dhcpd.h" #include "dhcpd.h"
...@@ -2709,7 +2709,12 @@ int is_numeric_expression (expr) ...@@ -2709,7 +2709,12 @@ int is_numeric_expression (expr)
expr -> op == expr_extract_int32 || expr -> op == expr_extract_int32 ||
expr -> op == expr_const_int || expr -> op == expr_const_int ||
expr -> op == expr_lease_time || expr -> op == expr_lease_time ||
expr -> op == expr_dns_transaction); expr -> op == expr_dns_transaction ||
expr -> op == expr_add ||
expr -> op == expr_subtract ||
expr -> op == expr_multiply ||
expr -> op == expr_divide ||
expr -> op == expr_remainder);
} }
int is_compound_expression (expr) int is_compound_expression (expr)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment