2
0
mirror of https://gitlab.isc.org/isc-projects/dhcp synced 2025-08-31 14:25:41 +00:00

Added binary operators: & | ^.

This commit is contained in:
Damien Neil
2000-08-28 21:22:41 +00:00
parent 1b234d446f
commit 3c98e80b46
4 changed files with 122 additions and 7 deletions

View File

@@ -43,7 +43,7 @@
#ifndef lint
static char copyright[] =
"$Id: parse.c,v 1.80 2000/08/28 19:36:31 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
"$Id: parse.c,v 1.81 2000/08/28 21:22:34 neild Exp $ Copyright (c) 1995-2000 The Internet Software Consortium. All rights reserved.\n";
#endif /* not lint */
#include "dhcpd.h"
@@ -3652,6 +3652,18 @@ int parse_expression (expr, cfile, lose, context, plhs, binop)
next_op = expr_remainder;
break;
case AMPERSAND:
next_op = expr_binary_and;
break;
case PIPE:
next_op = expr_binary_or;
break;
case CARET:
next_op = expr_binary_xor;
break;
default:
next_op = expr_none;
}