From: Ted Lemon Date: Sat, 8 Jan 2000 01:41:08 +0000 (+0000) Subject: - Add switch, case, default and set. X-Git-Tag: V3-BETA-2-PATCH-1~443 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c7b7a5490b3c2bed4bf9350f33e777b429212312;p=thirdparty%2Fdhcp.git - Add switch, case, default and set. - Tweak on so more than one type of event can be set at once. --- diff --git a/includes/statement.h b/includes/statement.h index 0ff7b5366..87514ce14 100644 --- a/includes/statement.h +++ b/includes/statement.h @@ -34,7 +34,11 @@ struct executable_statement { prepend_option_statement, send_option_statement, statements_statement, - on_statement + on_statement, + switch_statement, + case_statement, + default_statement, + set_statement } op; union { struct { @@ -49,9 +53,21 @@ struct executable_statement { struct option_cache *append; struct executable_statement *statements; struct { - enum { expiry, commit, release } evtype; + int evtypes; +# define ON_COMMIT 1 +# define ON_EXPIRY 2 +# define ON_RELEASE 3 struct executable_statement *statements; } on; + struct { + struct expression *expr; + struct executable_statement *statements; + } s_switch; + struct expression *c_case; + struct { + char *name; + struct expression *expr; + } set; } data; };