]> git.ipfire.org Git - thirdparty/dhcp.git/blob - includes/statement.h
Make Digital Unix C compiler happy.
[thirdparty/dhcp.git] / includes / statement.h
1 /* statement.h
2
3 Definitions for executable statements... */
4
5 /*
6 * Copyright (c) 1996-1999 Internet Software Consortium.
7 * Use is subject to license terms which appear in the file named
8 * ISC-LICENSE that should have accompanied this file when you
9 * received it. If a file named ISC-LICENSE did not accompany this
10 * file, or you are not sure the one you have is correct, you may
11 * obtain an applicable copy of the license at:
12 *
13 * http://www.isc.org/isc-license-1.0.html.
14 *
15 * This file is part of the ISC DHCP distribution. The documentation
16 * associated with this file is listed in the file DOCUMENTATION,
17 * included in the top-level directory of this release.
18 *
19 * Support and other services are available for ISC products - see
20 * http://www.isc.org for more information.
21 */
22
23 struct executable_statement {
24 int refcnt;
25 struct executable_statement *next;
26 enum statement_op {
27 if_statement,
28 add_statement,
29 eval_statement,
30 break_statement,
31 default_option_statement,
32 supersede_option_statement,
33 append_option_statement,
34 prepend_option_statement,
35 send_option_statement,
36 statements_statement,
37 on_statement
38 } op;
39 union {
40 struct {
41 struct executable_statement *true, *false;
42 struct expression *expr;
43 } ie;
44 struct expression *eval;
45 struct class *add;
46 struct option_cache *option;
47 struct option_cache *supersede;
48 struct option_cache *prepend;
49 struct option_cache *append;
50 struct executable_statement *statements;
51 struct {
52 enum { expiry, commit, release } evtype;
53 struct executable_statement *statements;
54 } on;
55 } data;
56 };
57