Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
ISC Open Source Projects
dhcp
Commits
0bcad761
Commit
0bcad761
authored
Mar 18, 2000
by
Ted Lemon
Browse files
Add the numeric operators to is_numeric_expression.
parent
d1f925a1
Changes
1
Hide whitespace changes
Inline
Side-by-side
common/tree.c
View file @
0bcad761
...
...
@@ -43,7 +43,7 @@
#ifndef lint
static
char
copyright
[]
=
"$Id: tree.c,v 1.8
0
2000/03/18 0
2:15:37
mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
"$Id: tree.c,v 1.8
1
2000/03/18 0
3:32:53
mellon Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.
\n
"
;
#endif
/* not lint */
#include
"dhcpd.h"
...
...
@@ -2709,7 +2709,12 @@ int is_numeric_expression (expr)
expr
->
op
==
expr_extract_int32
||
expr
->
op
==
expr_const_int
||
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
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment