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

Add !=, null, defined, variable reference, new contexts, binding struct.

This commit is contained in:
Ted Lemon
2000-01-08 01:42:09 +00:00
parent c7b7a5490b
commit 8de80e36ec

View File

@@ -92,12 +92,14 @@ enum expr_op {
expr_lease_time, expr_lease_time,
expr_dns_transaction, expr_dns_transaction,
expr_static, expr_static,
expr_updated_dns_rr, expr_ns_add,
expr_ns_update,
expr_ns_delete, expr_ns_delete,
expr_ns_exists, expr_ns_exists,
expr_ns_not_exists, expr_ns_not_exists,
expr_not_equal expr_not_equal,
expr_null,
expr_variable_exists,
expr_variable_reference
}; };
struct expression { struct expression {
@@ -156,14 +158,14 @@ struct expression {
struct expression *rrname; struct expression *rrname;
struct expression *rrdata; struct expression *rrdata;
struct expression *ttl; struct expression *ttl;
} ns_update; } ns_add;
struct { struct {
unsigned rrclass; unsigned rrclass;
unsigned rrtype; unsigned rrtype;
struct expression *rrname; struct expression *rrname;
struct expression *rrdata; struct expression *rrdata;
} ns_delete, ns_exists, ns_not_exists; } ns_delete, ns_exists, ns_not_exists;
struct expression *updated_dns_rr; char *variable;
} data; } data;
int flags; int flags;
# define EXPR_EPHEMERAL 1 # define EXPR_EPHEMERAL 1
@@ -224,5 +226,12 @@ enum expression_context {
context_boolean, context_boolean,
context_data, context_data,
context_numeric, context_numeric,
context_dns context_dns,
context_data_or_numeric
};
struct binding {
struct binding *next;
char *name;
struct data_string value;
}; };